Package eu.isas.searchgui.cmd
Class FastaCLI
java.lang.Object
eu.isas.searchgui.cmd.FastaCLI
This class allows the user to work on the database in command line.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcall()Calling this method will run the configured FastaCLI process.generateTargetDecoyDatabase(com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.waiting.WaitingHandler waitingHandler) Appends decoy sequences to the given target database file.Returns the path to the jar file.static StringReturns the "see the log file" message.static voidStarts the launcher by calling the launch method.voidwriteDbProperties(com.compomics.util.experiment.io.biology.protein.FastaSummary fastaSummary, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters) Writes the database properties to System.out.
-
Constructor Details
-
FastaCLI
Construct a new FastaCLI runnable from a list of arguments.- Parameters:
args- the command line arguments
-
-
Method Details
-
call
public void call()Calling this method will run the configured FastaCLI process. -
writeDbProperties
public void writeDbProperties(com.compomics.util.experiment.io.biology.protein.FastaSummary fastaSummary, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters) Writes the database properties to System.out.- Parameters:
fastaSummary- the summary information on the FASTA filefastaParameters- the FASTA parsing parameters
-
generateTargetDecoyDatabase
public File generateTargetDecoyDatabase(com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.waiting.WaitingHandler waitingHandler) throws IOException Appends decoy sequences to the given target database file.- Parameters:
fastaParameters- the FASTA parsing parameterswaitingHandler- the waiting handler- Returns:
- the file created
- Throws:
IOException- exception thrown whenever an error happened while reading or writing a FASTA file
-
main
Starts the launcher by calling the launch method. Use this as the main class in the jar file.- Parameters:
args- the command line arguments
-
getLogFileMessage
Returns the "see the log file" message. With the path if available.- Returns:
- the "see the log file" message
-
getJarFilePath
Returns the path to the jar file.- Returns:
- the path to the jar file
-