Simple Variant
data class SimpleVariant(val contig: String, val start: Int, val end: Int, val refAllele: String, val altAlleles: List<String>, val samples: List<String>, val genotypes: List<String>, val originalText: String? = null) : Comparable<SimpleVariant>
Data class to represent a simple VCF variant
Constructors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Function to get the genotype of a sample. The returned list of integers are the allele indices for each ploidy. Allele index 0 is the reference allele, and the rest are the alternate alleles. If the genotype is missing, the value will be -1.
Link copied to clipboard