public interface VCFReader extends java.io.Closeable, java.lang.Iterable<VariantContext>
Modifier and Type | Method and Description |
---|---|
VCFHeader |
getHeader()
Returns the VCFHeader associated with this VCFReader.
|
boolean |
isQueryable()
A method to check if the reader is query-able, i.e.
|
CloseableIterator<VariantContext> |
iterator() |
default CloseableIterator<VariantContext> |
query(Locatable locatable)
Queries for records overlapping the
Locatable specified. |
CloseableIterator<VariantContext> |
query(java.lang.String chrom,
int start,
int end)
Queries for records overlapping the region specified.
|
VCFHeader getHeader()
CloseableIterator<VariantContext> query(java.lang.String chrom, int start, int end)
chrom
- the chomosome to querystart
- query interval startend
- query interval enddefault CloseableIterator<VariantContext> query(Locatable locatable)
Locatable
specified.
Note that this method requires VCF files with an associated index. If no index exists a TribbleException will be thrown.boolean isQueryable()
VCFFileReader.query(String, int, int)
can be successfulCloseableIterator<VariantContext> iterator()
iterator
in interface java.lang.Iterable<VariantContext>