public class Genotype
extends java.lang.Object
最多支持 255 种等位基因形式
限定符和类型 | 字段和说明 |
---|---|
static int |
MAX_GENOTYPE_CODE
最大基因型值
|
static int |
MIN_GENOTYPE_CODE
最小基因型值
|
static Genotype |
MISS_GENOTYPE
缺失基因型
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAC() |
int |
getAN() |
byte |
getBEGCode_1Byte()
编码该基因型为 1 字节 BEG 编码
|
edu.sysu.pmglab.container.ByteCode |
getBEGCode_2Byte()
编码该基因型为 2 字节 BEG 编码
|
int |
getLeftGenotype() |
edu.sysu.pmglab.container.ByteCode |
getPhasedString() |
int |
getRightGenotype() |
edu.sysu.pmglab.container.ByteCode |
getUnPhasedString() |
int |
hashCode()
以 BEG 编码作为其 hashcode
|
boolean |
isHeterozygous() |
boolean |
isHomozygous() |
boolean |
isMissingGenotype() |
static Genotype |
of(byte begCode)
根据 BEG 编码值解码基因型对象
|
static Genotype |
of(byte[] cache,
int offset,
int length)
为字节序列编码
|
static Genotype |
of(edu.sysu.pmglab.container.ByteCode bytecode)
为字节序列编码
|
static Genotype |
of(int begCode)
根据 BEG 编码值解码基因型对象
|
static Genotype |
of(int i,
int j)
获取基因型对象 i|j
|
static Genotype |
of(short begCode)
根据 BEG 编码值解码基因型对象
|
Genotype |
reverse() |
java.lang.String |
toString() |
Genotype |
toUnPhased() |
public static final int MIN_GENOTYPE_CODE
public static final int MAX_GENOTYPE_CODE
public static final Genotype MISS_GENOTYPE
public static Genotype of(int i, int j)
i
- 左侧基因型编码值j
- 右侧基因型编码值public static Genotype of(edu.sysu.pmglab.container.ByteCode bytecode)
bytecode
- 变异位点字节序列public static Genotype of(byte[] cache, int offset, int length)
cache
- 字节码数组offset
- 偏移量length
- 长度public static Genotype of(byte begCode)
begCode
- BEG 编码值public static Genotype of(short begCode)
begCode
- BEG 编码值public static Genotype of(int begCode)
begCode
- BEG 编码值public byte getBEGCode_1Byte()
public edu.sysu.pmglab.container.ByteCode getBEGCode_2Byte()
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public edu.sysu.pmglab.container.ByteCode getPhasedString()
public edu.sysu.pmglab.container.ByteCode getUnPhasedString()
public int getAC()
public int getAN()
public int getLeftGenotype()
public int getRightGenotype()
public boolean isMissingGenotype()
public boolean isHomozygous()
public boolean isHeterozygous()
public Genotype toUnPhased()
public Genotype reverse()
public java.lang.String toString()
toString
在类中 java.lang.Object