public enum Genotype extends Enum<Genotype>
| Enum Constant and Description |
|---|
HEMIZYGOUS_REFERENCE |
HEMIZYGOUS_VARIANT |
HETEROZYGOUS_WITH_REFERENCE |
HETEROZYGOUS_WITH_VARIANT |
HOMOZYGOUS_REFERENCE |
HOMOZYGOUS_VARIANT |
UNDEFINED |
| Modifier and Type | Method and Description |
|---|---|
static Genotype |
extractFor(int alleleNumber,
String genotype)
Allows to extract zygosity value from genotype format field (see VCFv4.2 specification for more details)
|
static Genotype |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Genotype[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Genotype UNDEFINED
public static final Genotype HOMOZYGOUS_REFERENCE
public static final Genotype HETEROZYGOUS_WITH_REFERENCE
public static final Genotype HETEROZYGOUS_WITH_VARIANT
public static final Genotype HOMOZYGOUS_VARIANT
public static final Genotype HEMIZYGOUS_VARIANT
public static final Genotype HEMIZYGOUS_REFERENCE
public static Genotype[] values()
for (Genotype c : Genotype.values()) System.out.println(c);
public static Genotype valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static final Genotype extractFor(int alleleNumber, String genotype)
alleleNumber - Allele number to extract zygosity information for (0 is for reference allele, 1,2.. are for alternate specified in ALT column)genotype - Genotype format field value to extract zygosity information fromGenotype for specified allele numberCopyright © 2017. All rights reserved.