VCFReader
data class VCFReader(val filename: String, val altHeaders: Map<String, AltHeaderMetaData>, val samples: List<String>, variants: Channel<Deferred<LinkedList<SimpleVariant>>>, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))
Constructors
Link copied to clipboard
constructor(filename: String, altHeaders: Map<String, AltHeaderMetaData>, samples: List<String>, variants: Channel<Deferred<LinkedList<SimpleVariant>>>, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))
Functions
Link copied to clipboard
Function to advance to the next variant in the VCF file. Use this in conjunction with variant() to get the next variant.
Link copied to clipboard
Function to get the current variant in the VCF file. This doesn't advance to the next variant. Every call to this function will return the same variant until advanceVariant is called. Returns null if there are no more variants for this reader.