public class Genotypes extends java.lang.Object implements IGenotypes
基因型对象,
基因型对应的等位基因含义由 Variant 类定义| 限定符和类型 | 方法和说明 |
|---|---|
IGenotypes |
asModifiable()
转为可变的基因型序列类型
|
IGenotypes |
asUnmodifiable()
转为不可变的基因型序列类型
|
void |
clear()
重设基因型序列
|
edu.sysu.pmglab.container.ByteCode |
encode()
基因型编码方法
|
boolean |
equals(java.lang.Object obj) |
int |
getAC()
获取等位基因计数 (allele count)
非 .
|
int |
getAN()
获取等位基因总数 (allele number)
非 .
|
Genotype |
getGenotype(int genotypeIndex)
获取基因型
|
int |
getGenotypeNum()
获取基因型总数
|
boolean |
isModifiable()
当前基因型序列类型是否可修改的
|
boolean |
isPhased()
基因型是否有向
|
Genotypes |
setGenotype(int genotypeIndex,
Genotype genotype)
设置基因型
|
IGenotypes |
toBiallelic(int refAlleleIndex,
int altAlleleIndex)
转为二等位基因位点
指定的 refAlleleIndex 作为 0, altAlleleIndex 作为 1, 包含了其他值的基因型会被替换为 ./.
|
Genotypes |
toPhased()
转为 Phased 基因型
|
java.lang.String |
toString() |
Genotypes |
toUnPhased()
转为 unPhased 基因型
|
format, format, getAC, getAF, getAF, getGenotypeCounts, getLeftGenotype, getLeftGenotypes, getMissingGenotypeNum, getRightGenotype, getRightGenotypes, isMissingGenotype, iterator, load, load, load, subGenotypes, subGenotypes, toPhasedpublic Genotypes(int genotypeNum)
genotypeNum - 基因型数public Genotypes(boolean phased,
int genotypeNum)
phased - 向型genotypeNum - 基因型数public boolean isPhased()
isPhased 在接口中 IGenotypespublic int getGenotypeNum()
getGenotypeNum 在接口中 IGenotypespublic Genotype getGenotype(int genotypeIndex)
getGenotype 在接口中 IGenotypesgenotypeIndex - 基因型索引public Genotypes setGenotype(int genotypeIndex, Genotype genotype)
setGenotype 在接口中 IGenotypesgenotypeIndex - 基因型索引genotype - 基因型public int getAC()
getAC 在接口中 IGenotypespublic int getAN()
getAN 在接口中 IGenotypespublic void clear()
clear 在接口中 IGenotypespublic Genotypes toUnPhased()
toUnPhased 在接口中 IGenotypespublic Genotypes toPhased()
toPhased 在接口中 IGenotypespublic IGenotypes toBiallelic(int refAlleleIndex, int altAlleleIndex)
IGenotypestoBiallelic 在接口中 IGenotypesrefAlleleIndex - 设置参考基因型的索引altAlleleIndex - 设置替代基因型的索引public IGenotypes asModifiable()
IGenotypesasModifiable 在接口中 IGenotypespublic IGenotypes asUnmodifiable()
IGenotypesasUnmodifiable 在接口中 IGenotypespublic boolean isModifiable()
IGenotypesisModifiable 在接口中 IGenotypespublic edu.sysu.pmglab.container.ByteCode encode()
IGenotypesencode 在接口中 IGenotypespublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Object