class GenomicsDBFeatureReader.GenomicsDBFeatureIterator extends Object implements htsjdk.tribble.CloseableTribbleIterator<T>
VariantContext objects.
Uses GenomicsDBQueryStream to obtain combined gVCF records
(as BCF2) from TileDB/GenomicsDB| Modifier and Type | Field and Description |
|---|---|
private boolean |
mClosedBefore |
private htsjdk.tribble.FeatureCodec<T,SOURCE> |
mCodec |
private SOURCE |
mSource |
private GenomicsDBQueryStream |
mStream |
private GenomicsDBTimer |
mTimer |
| Constructor and Description |
|---|
GenomicsDBFeatureIterator(String loaderJSONFile,
String queryJSONFile,
htsjdk.tribble.FeatureCodec<T,SOURCE> codec)
Constructor
|
GenomicsDBFeatureIterator(String loaderJSONFile,
String queryJSONFile,
htsjdk.tribble.FeatureCodec<T,SOURCE> codec,
String chr,
int start,
int end)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
GenomicsDBFeatureReader.GenomicsDBFeatureIterator |
iterator() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorprivate GenomicsDBQueryStream mStream
private SOURCE mSource
private GenomicsDBTimer mTimer
private boolean mClosedBefore
public GenomicsDBFeatureIterator(String loaderJSONFile, String queryJSONFile, htsjdk.tribble.FeatureCodec<T,SOURCE> codec) throws IOException
loaderJSONFile - GenomicsDB loader JSON configuration filequeryJSONFile - GenomicsDB query JSON configuration filecodec - FeatureCodec, currently only
BCF2Codec is testedIOException - when data cannot be read from the streampublic GenomicsDBFeatureIterator(String loaderJSONFile, String queryJSONFile, htsjdk.tribble.FeatureCodec<T,SOURCE> codec, String chr, int start, int end) throws IOException
loaderJSONFile - GenomicsDB loader JSON configuration filequeryJSONFile - GenomicsDB query JSON configuration filecodec - FeatureCodec, currently only BCF2Codec
is testedchr - contig namestart - start position (1-based)end - end position, inclusive (1-based)IOException - when data cannot be read from the streampublic boolean hasNext()
public void close()
close in interface htsjdk.samtools.util.CloseableIterator<T extends htsjdk.tribble.Feature>close in interface Closeableclose in interface AutoCloseablepublic GenomicsDBFeatureReader.GenomicsDBFeatureIterator iterator()
Copyright © 2017. All rights reserved.