Package org.broadinstitute.hellbender.utils.downsampling
package org.broadinstitute.hellbender.utils.downsampling
-
ClassDescriptionThe purpose of this set of utilities is to downsample a set of reads to remove contamination.Downsampler<T>The basic downsampler API, with no reads-specific operations.Type of downsampling method to invoke.Describes the method for downsampling reads at a given locus.Fractional Downsampler: selects a specified fraction of the reads for inclusion.Leveling Downsampler: Given a set of Lists of arbitrary items and a target size, removes items from the Lists in an even fashion until the total size of all Lists is <= the target size.Pass-Through Downsampler: Implementation of the ReadsDownsampler interface that does no downsampling whatsoever, and instead simply "passes-through" all the reads it's given.PositionalDownsampler: Downsample each stack of reads at each alignment start to a size <= a target coverage using a
ReservoirDownsampler
.An extension of the basic downsampler API with reads-specific operationsIterator wrapper around our generic {@link ReadsDownsampler)} interface.Reservoir Downsampler: Selects n reads out of a stream whose size is not known in advance, with every read in the stream having an equal chance of being selected for inclusion.