public class OpticalDuplicateFinder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
OpticalDuplicateFinder.PhysicalLocation
Small interface that provides access to the physical location information about a cluster.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_OPTICAL_DUPLICATE_DISTANCE |
static java.lang.String |
DEFAULT_READ_NAME_REGEX |
int |
opticalDuplicatePixelDistance |
java.lang.String |
readNameRegex |
| Constructor and Description |
|---|
OpticalDuplicateFinder() |
OpticalDuplicateFinder(int opticalDuplicatePixelDistance) |
OpticalDuplicateFinder(java.lang.String readNameRegex) |
OpticalDuplicateFinder(java.lang.String readNameRegex,
int opticalDuplicatePixelDistance) |
OpticalDuplicateFinder(java.lang.String readNameRegex,
int opticalDuplicatePixelDistance,
htsjdk.samtools.util.Log log) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLocationInformation(java.lang.String readName,
OpticalDuplicateFinder.PhysicalLocation loc)
Method used to extract tile/x/y from the read name and add it to the PhysicalLocation so that it
can be used later to determine optical duplication
|
boolean[] |
findOpticalDuplicates(java.util.List<? extends OpticalDuplicateFinder.PhysicalLocation> list)
Finds which reads within the list of duplicates are likely to be optical duplicates of
one another.
|
public static final java.lang.String DEFAULT_READ_NAME_REGEX
public static final int DEFAULT_OPTICAL_DUPLICATE_DISTANCE
public java.lang.String readNameRegex
public int opticalDuplicatePixelDistance
public OpticalDuplicateFinder()
public OpticalDuplicateFinder(int opticalDuplicatePixelDistance)
public OpticalDuplicateFinder(java.lang.String readNameRegex)
public OpticalDuplicateFinder(java.lang.String readNameRegex,
int opticalDuplicatePixelDistance)
public OpticalDuplicateFinder(java.lang.String readNameRegex,
int opticalDuplicatePixelDistance,
htsjdk.samtools.util.Log log)
public boolean addLocationInformation(java.lang.String readName,
OpticalDuplicateFinder.PhysicalLocation loc)
readName - the name of the read/clusterloc - the object to add tile/x/y topublic boolean[] findOpticalDuplicates(java.util.List<? extends OpticalDuplicateFinder.PhysicalLocation> list)
list - a list of reads that are determined to be duplicates of one another