Package org.snpsift.annotate.mem
Enum Class VariantCategory
- All Implemented Interfaces:
Serializable,Comparable<VariantCategory>,Constable
The `VariantCategory` enum represents different categories of genetic variants.
It provides a method to categorize a given `Variant` object based on its type.
Categories include:
- SNP_A, SNP_C, SNP_G, SNP_T - Single Nucleotide Polymorphisms (SNPs) for each nucleotide base
- INS - Insertions
- DEL - Deletions
- MNP - Multiple Nucleotide Polymorphisms
- MIXED - Mixed variants
- OTHER - Any other type of variant not covered by the above categories
The `of` method determines the category of a given `Variant` by checking its type and,
in the case of SNPs, the specific nucleotide base involved.
The `size` method returns the total number of variant categories defined in this enum.
Usage example:
```
Variant variant = ...; // Obtain a Variant object
VariantCategory category = VariantCategory.of(variant);
System.out.println("Variant category: " + category);
```
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic VariantCategoryof(org.snpeff.interval.Variant variant) static intsize()static VariantCategoryReturns the enum constant of this class with the specified name.static VariantCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SNP_A
-
SNP_C
-
SNP_G
-
SNP_T
-
INS
-
DEL
-
MNP
-
MIXED
-
OTHER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
of
-
size
public static int size()
-