Class DecoyConverter
java.lang.Object
com.compomics.util.experiment.io.biology.protein.converters.DecoyConverter
This class appends decoy sequences to the given FASTA file.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendDecoySequences(File fastaIn, File fastaOut, FastaParameters fastaParameters, WaitingHandler waitingHandler) Appends decoy sequences to the provided FASTA file.static FastaParametersgetDecoyParameters(FastaParameters targetParameters) Returns the FASTA parameters of the target-decoy database based on the parameters of the target database.static FastaSummarygetDecoySummary(File newFastaFile, FastaSummary targetSummary) Returns the FASTA summary of the target-decoy database based on the summary of the target database.
-
Constructor Details
-
DecoyConverter
public DecoyConverter()Empty default constructor.
-
-
Method Details
-
appendDecoySequences
public static void appendDecoySequences(File fastaIn, File fastaOut, FastaParameters fastaParameters, WaitingHandler waitingHandler) throws IOException Appends decoy sequences to the provided FASTA file.- Parameters:
fastaIn- the FASTA file to readfastaOut- the FASTA file to writefastaParameters- the FASTA parameterswaitingHandler- a handler to allow canceling the import and displaying progress- Throws:
IOException- exception thrown whenever an error happened while reading or writing a FASTA file
-
getDecoyParameters
Returns the FASTA parameters of the target-decoy database based on the parameters of the target database.- Parameters:
targetParameters- the parameters of the target database- Returns:
- the FASTA parameters of the target-decoy database
-
getDecoySummary
Returns the FASTA summary of the target-decoy database based on the summary of the target database.- Parameters:
newFastaFile- the new FASTA filetargetSummary- the summary of the target database- Returns:
- the FASTA summary of the target-decoy database
-