public class MultiTileBclParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
picard.illumina.parser.PerTileCycleParser.CycleFilesParser<ILLUMINA_DATA>
CycleFileParsers iterate through the clusters of a file and populate an IlluminaData object with a single cycle's
value.
|
Modifier and Type | Field and Description |
---|---|
protected BclQualityEvaluationStrategy |
bclQualityEvaluationStrategy |
protected int |
currentTile
The current tile number
|
static byte |
MASKING_QUALITY |
Constructor and Description |
---|
MultiTileBclParser(java.io.File directory,
int lane,
picard.illumina.parser.CycleIlluminaFileMap tilesToCycleFiles,
OutputMapping outputMapping,
boolean applyEamssFilter,
BclQualityEvaluationStrategy bclQualityEvaluationStrategy,
TileIndex tileIndex) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getTileOfNextCluster()
Returns the tile of the next cluster that will be returned by PerTilePerCycleParser and therefore should be called before
next() if you want to know the tile for the data returned by next()
|
boolean |
hasNext()
Is there a DATA_TYPE object for another cluster remaining.
|
void |
initialize() |
protected picard.illumina.parser.PerTileCycleParser.CycleFilesParser<BclData> |
makeCycleFileParser(java.util.List<java.io.File> files)
Create a Bcl parser for an individual cycle and wrap it with the CycleFilesParser interface which populates
the correct cycle in BclData.
|
protected picard.illumina.parser.PerTileCycleParser.CycleFilesParser<BclData> |
makeCycleFileParser(java.util.List<java.io.File> files,
picard.illumina.parser.PerTileCycleParser.CycleFilesParser<BclData> cycleFilesParser)
For a given cycle, return a CycleFilesParser.
|
BclData |
next()
Return the data for the next cluster by:
1.
|
void |
remove() |
protected static void |
runEamssForReadInPlace(byte[] bases,
byte[] qualities)
EAMSS is an Illumina Developed Algorithm for detecting reads whose quality has deteriorated towards
their end and revising the quality to the masking quality (2) if this is the case.
|
void |
seekToTile(int tile)
Clear the current set of cycleFileParsers and replace them with the ones for the tile indicated by oneBasedTileNumber
|
java.util.Set<IlluminaDataType> |
supportedTypes() |
void |
verifyData(java.util.List<java.lang.Integer> tiles,
int[] cycles)
Given the expected tiles and cycles for this run, make sure this parser can provide data for
all tiles/cycles or throws an exception if it's missing any required data or data structures
it relies on do not disagree with the provided tiles/cycles
|
public static final byte MASKING_QUALITY
protected final BclQualityEvaluationStrategy bclQualityEvaluationStrategy
protected int currentTile
public MultiTileBclParser(java.io.File directory, int lane, picard.illumina.parser.CycleIlluminaFileMap tilesToCycleFiles, OutputMapping outputMapping, boolean applyEamssFilter, BclQualityEvaluationStrategy bclQualityEvaluationStrategy, TileIndex tileIndex)
public void initialize()
protected picard.illumina.parser.PerTileCycleParser.CycleFilesParser<BclData> makeCycleFileParser(java.util.List<java.io.File> files, picard.illumina.parser.PerTileCycleParser.CycleFilesParser<BclData> cycleFilesParser)
files
- The file to parsecycleFilesParser
- The previous cycle file parser, null otherwise.protected picard.illumina.parser.PerTileCycleParser.CycleFilesParser<BclData> makeCycleFileParser(java.util.List<java.io.File> files)
files
- The files to parse.public java.util.Set<IlluminaDataType> supportedTypes()
public BclData next()
protected static void runEamssForReadInPlace(byte[] bases, byte[] qualities)
bases
- Bases for a single read in the cluster ( not the entire cluster )qualities
- Qualities for a single read in the cluster ( not the entire cluster )public void seekToTile(int tile)
tile
- requested tilepublic boolean hasNext()
public int getTileOfNextCluster()
public void verifyData(java.util.List<java.lang.Integer> tiles, int[] cycles)
tiles
- The number of tiles in the current runcycles
- The number of cycles in the current runpublic void remove()
public void close()