public class FastaToCompactMode extends AbstractGobyMode
| Constructor and Description |
|---|
FastaToCompactMode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInputFilename(String inputFilename)
Add the specified filename to the list of files to process.
|
void |
clearInputFilenames() |
AbstractCommandLineMode |
configure(String[] args)
Configure.
|
static byte[] |
convertQualityScores(QualityEncoding qualityEncoding,
CharSequence quality,
boolean verboseQualityScores) |
static byte[] |
convertQualityScores(QualityEncoding qualityEncoding,
CharSequence quality,
boolean verboseQualityScores,
boolean apiMode) |
void |
execute()
Perform the conversion fasta -> compact-reads on one or more files.
|
String[] |
getInputFilenames()
Get the list of files (reads/alignments) to process.
|
String |
getModeDescription()
Returns the mode description defined by subclasses.
|
String |
getModeName()
Returns the mode name defined by subclasses.
|
String |
getOutputFilename()
Set the output filename.
|
String |
getPairIndicator1()
Get pairIndicator1, which defaults to "_1".
|
String |
getPairIndicator2()
Get pairIndicator2, which defaults to "_2".
|
QualityEncoding |
getQualityEncoding()
Get the quality encoding scale used for the input fastq file.
|
boolean |
isProcessPairs()
Get if processPairs is enabled.
|
static void |
main(String[] args) |
void |
setOutputFilename(String outputFilename)
Set the output filename.
|
void |
setPairIndicator1(String pairIndicator1)
Set pairIndicator1, which defaults to "_1".
|
void |
setPairIndicator2(String pairIndicator2)
Set pairIndicator2, which defaults to "_2".
|
void |
setProcessPairs(boolean processPairs)
Set if processPairs is enabled.
|
void |
setQualityEncoding(QualityEncoding qualityEncoding)
Set the quality encoding scale to be used for the input fastq file.
|
void |
setQualityEncoding(String qualityEncoding)
Set the quality encoding scale to be used for the input fastq file.
|
getJarFilename, getShortModeName, loadJsapFromResource, loadJsapFromResource, parseJsap, parseJsapArguments, parseJsapArguments, printDynamicHelpOptions, printUsage, printUsageAsHtmlTable, printUsageAsWikiTable, setJarFilenamepublic String getModeName()
getModeName in class AbstractCommandLineModepublic String getModeDescription()
getModeDescription in class AbstractCommandLineModepublic String[] getInputFilenames()
public void addInputFilename(String inputFilename)
inputFilename - The file to processpublic void clearInputFilenames()
public boolean isProcessPairs()
public void setProcessPairs(boolean processPairs)
processPairs - the new value for processPairspublic String getPairIndicator1()
public void setPairIndicator1(String pairIndicator1)
pairIndicator1 - the new value of pairIndicator1public String getPairIndicator2()
public void setPairIndicator2(String pairIndicator2)
pairIndicator2 - the new value of pairIndicator2public String getOutputFilename()
public void setOutputFilename(String outputFilename)
outputFilename - the output filenamepublic QualityEncoding getQualityEncoding()
public void setQualityEncoding(QualityEncoding qualityEncoding)
qualityEncoding - the quality encoding scale to be used for the input fastq filepublic void setQualityEncoding(String qualityEncoding)
qualityEncoding - the quality encoding scale to be used for the input fastq filepublic 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 execute()
throws IOException
execute in class AbstractCommandLineModeIOException - if the input/output files cannot be read/writtenpublic static byte[] convertQualityScores(QualityEncoding qualityEncoding, CharSequence quality, boolean verboseQualityScores)
public static byte[] convertQualityScores(QualityEncoding qualityEncoding, CharSequence quality, boolean verboseQualityScores, boolean apiMode)
public static void main(String[] args) throws IOException, com.martiansoftware.jsap.JSAPException
IOExceptioncom.martiansoftware.jsap.JSAPExceptionCopyright © 2017 Campagne Laboratory. All rights reserved.