Package htsjdk.variant.variantcontext
Enum GenotypeType
- java.lang.Object
-
- java.lang.Enum<GenotypeType>
-
- htsjdk.variant.variantcontext.GenotypeType
-
- All Implemented Interfaces:
Serializable
,Comparable<GenotypeType>
public enum GenotypeType extends Enum<GenotypeType>
Summary types for Genotype objects- Since:
- Date created
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HET
The sample is heterozygous, with at least one ref and at least one one alt in any orderHOM_REF
The sample is homozygous referenceHOM_VAR
All alleles are non-referenceMIXED
Some chromosomes are NO_CALL and others are calledNO_CALL
The sample is no-called (all alleles are NO_CALLUNAVAILABLE
There is no allele data availble for this sample (alleles.isEmpty)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GenotypeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GenotypeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_CALL
public static final GenotypeType NO_CALL
The sample is no-called (all alleles are NO_CALL
-
HOM_REF
public static final GenotypeType HOM_REF
The sample is homozygous reference
-
HET
public static final GenotypeType HET
The sample is heterozygous, with at least one ref and at least one one alt in any order
-
HOM_VAR
public static final GenotypeType HOM_VAR
All alleles are non-reference
-
UNAVAILABLE
public static final GenotypeType UNAVAILABLE
There is no allele data availble for this sample (alleles.isEmpty)
-
MIXED
public static final GenotypeType MIXED
Some chromosomes are NO_CALL and others are called
-
-
Method Detail
-
values
public static GenotypeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GenotypeType c : GenotypeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenotypeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-