public class PerTilePerCycleFileUtil extends ParameterizedFileUtil
base, DefaultSkipEmptyFiles, extension, faker, lane, matchPattern, PER_TILE_PATTERN_STRING, skipEmptyFiles, tiles| Constructor and Description |
|---|
PerTilePerCycleFileUtil(String extension,
File base,
FileFaker faker,
int lane) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
fakeFiles(List<Integer> expectedTiles,
int[] expectedCycles,
IlluminaFileUtil.SupportedIlluminaFormat format)
Given the expected tiles/expected cycles for this file type create a set of fake files such that the
verification criteria are met.
|
boolean |
filesAvailable()
Determine whether or not files are available
|
Set<Integer> |
getDetectedCycles() |
picard.illumina.parser.CycleIlluminaFileMap |
getFiles() |
picard.illumina.parser.CycleIlluminaFileMap |
getFiles(int[] cycles)
Returns a cycleIlluminaFileMap with all available tiles but limited to the cycles passed in.
|
picard.illumina.parser.CycleIlluminaFileMap |
getFiles(List<Integer> tiles) |
picard.illumina.parser.CycleIlluminaFileMap |
getFiles(List<Integer> tiles,
int[] cycles)
Returns a cycleIlluminaFileMap that contains only the tiles and cycles specified (and fewer if the original CycleIlluminaFileMap, created
on util instantiation, doesn't contain any of these tiles/cycles).
|
protected picard.illumina.parser.CycleIlluminaFileMap |
getPerTilePerCycleFiles()
For the given tiles, populate a CycleIlluminaFileMap that contains all these tiles and will iterate through
all the files for these tiles in expectedBase
Side Effect: Assigns numCycles
|
List<Integer> |
getTiles()
Discover all files of this type in expectedBase that match pattern and construct a list of tiles
available based on these files.
|
List<String> |
verify(List<Integer> expectedTiles,
int[] expectedCycles)
Given the expected tiles/expected cycles for this file type, return a list of error messages describing any
missing/or malformed files
|
fileToTile, getTiledFiles, makeLaneTileRegexprotected picard.illumina.parser.CycleIlluminaFileMap getPerTilePerCycleFiles()
public picard.illumina.parser.CycleIlluminaFileMap getFiles()
public picard.illumina.parser.CycleIlluminaFileMap getFiles(int[] cycles)
cycles - Cycles that should be present in the output CycleIlluminaFileMappublic picard.illumina.parser.CycleIlluminaFileMap getFiles(List<Integer> tiles, int[] cycles)
cycles - Cycles that should be present in the output CycleIlluminaFileMappublic List<Integer> getTiles()
getTiles in class ParameterizedFileUtilpublic boolean filesAvailable()
ParameterizedFileUtilfilesAvailable in class ParameterizedFileUtilpublic List<String> verify(List<Integer> expectedTiles, int[] expectedCycles)
ParameterizedFileUtilverify in class ParameterizedFileUtilexpectedTiles - An ordered list of tile numbersexpectedCycles - An ordered list of cycle numbers that may contain gapspublic List<String> fakeFiles(List<Integer> expectedTiles, int[] expectedCycles, IlluminaFileUtil.SupportedIlluminaFormat format)
ParameterizedFileUtilfakeFiles in class ParameterizedFileUtilexpectedTiles - An ordered list of tile numbersexpectedCycles - An ordered list of cycle numbers that may contain gapsformat - The format of the files that are to be faked