public class FilterApplyingVariantIterator extends Object implements CloseableIterator<VariantContext>
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_GTS_FILTERED
Filter string that is used to filter a Variant when all variant genotypes are filtered out.
|
static String |
PASS_FILTER
The "PASS"ing filter String.
|
| Constructor and Description |
|---|
FilterApplyingVariantIterator(Iterator<VariantContext> iterator,
Collection<VariantFilter> filters,
Collection<GenotypeFilter> gtFilters)
Constructs an iterator from an underlying iterator and the provided (possibly empty)
collections of variant and genotype filters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
VariantContext |
next()
Provides the next record from the underlying iterator after applying filter strings generated
by the set of filters in use by the iterator.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static final String ALL_GTS_FILTERED
public static final String PASS_FILTER
public FilterApplyingVariantIterator(Iterator<VariantContext> iterator, Collection<VariantFilter> filters, Collection<GenotypeFilter> gtFilters)
public VariantContext next()
next in interface Iterator<VariantContext>public boolean hasNext()
hasNext in interface Iterator<VariantContext>public void close()
close in interface CloseableIterator<VariantContext>close in interface Closeableclose in interface AutoCloseablepublic void remove()
remove in interface Iterator<VariantContext>