public class CompactFileStatsMode extends AbstractGobyMode
| Constructor and Description |
|---|
CompactFileStatsMode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInputFile(File inputFile)
Add the specified file to the list of files to process.
|
AbstractCommandLineMode |
configure(String[] args)
Configure.
|
void |
execute()
Run the FileStats mode.
|
long |
getCumulativeReadLength()
Get the cumulative length of the reads processed so far.
|
List<File> |
getInputFiles()
Get the list of files (reads/alignments) to process.
|
int |
getMaxReadLength()
Get the maximum read length across all files processed so far.
|
int |
getMinReadLength()
Get the minimum read length across all files processed so far.
|
String |
getModeDescription()
Returns the mode description defined by subclasses.
|
String |
getModeName()
Returns the mode name defined by subclasses.
|
long |
getNumberOfReads()
Get the number of reads processed so far.
|
List<Boolean> |
getPairedSamples()
A list if which of the scanned samples were paired and which weren't.
|
boolean |
isAllPairedSamples()
Get if all the files scanned contains paired samples (only checks the FIRST sample in each file).
|
static void |
main(String[] args)
Main method.
|
void |
reset()
Reset the input file lists and cumulative statistics to default values.
|
getJarFilename, getShortModeName, loadJsapFromResource, loadJsapFromResource, parseJsap, parseJsapArguments, parseJsapArguments, printDynamicHelpOptions, printUsage, printUsageAsHtmlTable, printUsageAsWikiTable, setJarFilenamepublic String getModeName()
AbstractCommandLineModegetModeName in class AbstractCommandLineModepublic String getModeDescription()
AbstractCommandLineModegetModeDescription in class AbstractCommandLineModepublic AbstractCommandLineMode configure(String[] args) throws IOException, com.martiansoftware.jsap.JSAPException
configure in class AbstractCommandLineModeargs - command line argumentsIOException - error parsingcom.martiansoftware.jsap.JSAPException - error parsingpublic void reset()
public void execute()
throws IOException
execute in class AbstractCommandLineModeIOException - error reading / writingpublic int getMaxReadLength()
public int getMinReadLength()
public boolean isAllPairedSamples()
public List<Boolean> getPairedSamples()
public long getCumulativeReadLength()
public long getNumberOfReads()
public List<File> getInputFiles()
public void addInputFile(File inputFile)
inputFile - The file to processpublic static void main(String[] args) throws com.martiansoftware.jsap.JSAPException, IOException
args - command line args.com.martiansoftware.jsap.JSAPException - error parsingIOException - error parsing or executing.Copyright © 2018 Campagne Laboratory. All rights reserved.