public class DecoyConverter extends Object
Constructor and Description |
---|
DecoyConverter()
Empty default constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
appendDecoySequences(File fastaIn,
File fastaOut,
FastaParameters fastaParameters,
WaitingHandler waitingHandler)
Appends decoy sequences to the provided FASTA file.
|
static FastaParameters |
getDecoyParameters(FastaParameters targetParameters)
Returns the FASTA parameters of the target-decoy database based on the
parameters of the target database.
|
static FastaSummary |
getDecoySummary(File newFastaFile,
FastaSummary targetSummary)
Returns the FASTA summary of the target-decoy database based on the
summary of the target database.
|
public static void appendDecoySequences(File fastaIn, File fastaOut, FastaParameters fastaParameters, WaitingHandler waitingHandler) throws IOException
fastaIn
- the FASTA file to readfastaOut
- the FASTA file to writefastaParameters
- the FASTA parameterswaitingHandler
- a handler to allow canceling the import and
displaying progressIOException
- exception thrown whenever an error happened while
reading or writing a FASTA filepublic static FastaParameters getDecoyParameters(FastaParameters targetParameters)
targetParameters
- the parameters of the target databasepublic static FastaSummary getDecoySummary(File newFastaFile, FastaSummary targetSummary)
newFastaFile
- the new FASTA filetargetSummary
- the summary of the target databaseCopyright © 2021. All rights reserved.