public class FilterApplyingVariantIterator extends Object implements htsjdk.samtools.util.CloseableIterator<htsjdk.variant.variantcontext.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<htsjdk.variant.variantcontext.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() |
htsjdk.variant.variantcontext.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, wait
forEachRemaining
public static final String ALL_GTS_FILTERED
public static final String PASS_FILTER
public FilterApplyingVariantIterator(Iterator<htsjdk.variant.variantcontext.VariantContext> iterator, Collection<VariantFilter> filters, Collection<GenotypeFilter> gtFilters)
public htsjdk.variant.variantcontext.VariantContext next()
public boolean hasNext()
public void close()
close
in interface htsjdk.samtools.util.CloseableIterator<htsjdk.variant.variantcontext.VariantContext>
close
in interface Closeable
close
in interface AutoCloseable