public interface IGenotypes extends java.lang.Iterable<Genotype>
基因型对象
,
基因型对应的等位基因含义由 Variant 类定义
限定符和类型 | 方法和说明 |
---|---|
IGenotypes |
asModifiable()
转为可变的基因型序列类型
|
IGenotypes |
asUnmodifiable()
转为不可变的基因型序列类型
|
default void |
clear()
重设基因型序列
|
edu.sysu.pmglab.container.ByteCode |
encode()
基因型编码方法
|
default void |
format(edu.sysu.pmglab.container.VolumeByteStream cache,
byte separator)
格式化基因型
|
default void |
format(edu.sysu.pmglab.container.VolumeByteStream cache,
edu.sysu.pmglab.container.ByteCode separator)
格式化基因型
|
default int |
getAC()
获取等位基因计数 (allele count)
非 .
|
default int |
getAC(int index)
获取指定等位基因索引的等位基因计数
|
default float |
getAF()
获取等位基因频率 (allele frequency)
非 .
|
default float |
getAF(int index)
获取指定等位基因索引的等位基因频率
|
default int |
getAN()
获取等位基因总数 (allele number)
非 .
|
Genotype |
getGenotype(int genotypeIndex)
获取基因型
|
default java.util.Map<Genotype,java.lang.Integer> |
getGenotypeCounts()
获取基因型计数值
|
int |
getGenotypeNum()
获取基因型序列长度
|
default int |
getLeftGenotype(int genotypeIndex)
获取左侧基因型
|
default int[] |
getLeftGenotypes()
获取左侧基因型序列
|
default int |
getMissingGenotypeNum()
获取基因型序列长度
|
default int |
getRightGenotype(int genotypeIndex)
获取右侧基因型
|
default int[] |
getRightGenotypes()
获取右侧基因型序列
|
default boolean |
isMissingGenotype(int genotypeIndex)
是否为缺失基因型
|
boolean |
isModifiable()
当前基因型序列类型是否可修改的
|
boolean |
isPhased()
基因型是否有向
|
default java.util.Iterator<Genotype> |
iterator() |
static IGenotypes |
load(boolean phased,
int genotypeNum)
基因型解码方法
加载一个不包含任何基因型的基因型对象, 通常它用于缺失位点的占位
|
static IGenotypes |
load(edu.sysu.pmglab.container.ByteCode encodedSequence)
基因型解码方法
解码后的基因型储存在 CacheGenotypes 中
|
static IGenotypes |
load(Variant variant)
从 Variant 对象中获取基因型序列
|
default IGenotypes |
setGenotype(int genotypeIndex,
Genotype genotype)
设置基因型
|
default IGenotypes |
subGenotypes(edu.sysu.pmglab.container.array.BaseArray<java.lang.Integer> indexes)
获取子基因型序列
|
default IGenotypes |
subGenotypes(int[] indexes)
获取子基因型序列
|
default IGenotypes |
toBiallelic(int refAlleleIndex,
int altAlleleIndex)
转为二等位基因位点
指定的 refAlleleIndex 作为 0, altAlleleIndex 作为 1, 包含了其他值的基因型会被替换为 ./.
|
default IGenotypes |
toPhased()
转为 Phased 基因型
|
default IGenotypes |
toPhased(boolean phased)
转换基因型向型
|
default IGenotypes |
toUnPhased()
转为 unPhased 基因型
|
boolean isPhased()
int getGenotypeNum()
default int getMissingGenotypeNum()
Genotype getGenotype(int genotypeIndex)
genotypeIndex
- 基因型索引default IGenotypes setGenotype(int genotypeIndex, Genotype genotype)
genotypeIndex
- 基因型索引genotype
- 基因型default int getLeftGenotype(int genotypeIndex)
genotypeIndex
- 基因型索引default int getRightGenotype(int genotypeIndex)
genotypeIndex
- 基因型索引default int[] getLeftGenotypes()
default int[] getRightGenotypes()
default boolean isMissingGenotype(int genotypeIndex)
genotypeIndex
- 基因型索引default java.util.Iterator<Genotype> iterator()
iterator
在接口中 java.lang.Iterable<Genotype>
default int getAC()
default int getAN()
default float getAF()
default int getAC(int index)
index
- 等位基因索引default float getAF(int index)
index
- 等位基因索引default java.util.Map<Genotype,java.lang.Integer> getGenotypeCounts()
default void clear()
default IGenotypes toUnPhased()
default IGenotypes toPhased()
default IGenotypes toPhased(boolean phased)
phased
- 向型default IGenotypes toBiallelic(int refAlleleIndex, int altAlleleIndex)
refAlleleIndex
- 设置参考基因型的索引altAlleleIndex
- 设置替代基因型的索引static IGenotypes load(Variant variant)
variant
- 变异位点对象static IGenotypes load(edu.sysu.pmglab.container.ByteCode encodedSequence)
encodedSequence
- 编码流static IGenotypes load(boolean phased, int genotypeNum)
phased
- 向型genotypeNum
- 基因型序列长度edu.sysu.pmglab.container.ByteCode encode()
default void format(edu.sysu.pmglab.container.VolumeByteStream cache, byte separator)
cache
- 格式化容器separator
- 连接符default void format(edu.sysu.pmglab.container.VolumeByteStream cache, edu.sysu.pmglab.container.ByteCode separator)
cache
- 格式化容器separator
- 连接符IGenotypes asUnmodifiable()
IGenotypes asModifiable()
default IGenotypes subGenotypes(int[] indexes)
indexes
- 基因型索引default IGenotypes subGenotypes(edu.sysu.pmglab.container.array.BaseArray<java.lang.Integer> indexes)
indexes
- 基因型索引boolean isModifiable()