public enum DiploidGenotype extends java.lang.Enum<DiploidGenotype>
Modifier and Type | Method and Description |
---|---|
static DiploidGenotype |
fromBases(byte[] bases)
Converts a pair of bases into a DiploidGenotype regardless of base order or case
|
static DiploidGenotype |
fromBases(byte base1,
byte base2)
Converts a pair of bases into a DiploidGenotype regardless of base order or case
|
byte |
getAllele1() |
byte |
getAllele2() |
boolean |
isHeterozygous() |
boolean |
isHomomozygous() |
static boolean |
isValidBase(byte base) |
static DiploidGenotype |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiploidGenotype[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiploidGenotype AA
public static final DiploidGenotype AC
public static final DiploidGenotype AG
public static final DiploidGenotype AT
public static final DiploidGenotype CC
public static final DiploidGenotype CG
public static final DiploidGenotype CT
public static final DiploidGenotype GG
public static final DiploidGenotype GT
public static final DiploidGenotype TT
public static DiploidGenotype[] values()
for (DiploidGenotype c : DiploidGenotype.values()) System.out.println(c);
public static DiploidGenotype valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static DiploidGenotype fromBases(byte[] bases)
public static DiploidGenotype fromBases(byte base1, byte base2)
public static boolean isValidBase(byte base)
public byte getAllele1()
public byte getAllele2()
public boolean isHeterozygous()
public boolean isHomomozygous()