Package com.compomics.software
Class ToolFactory
java.lang.Object
com.compomics.software.ToolFactory
This class can be used to start compomics tools.
- Author:
- Marc Vaudel, Harald Barsnes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe command line argument for the config folder.static final StringThe command line argument for an output folder.static final StringThe command line argument for a psdb file for PeptideShaker.static final StringThe command line argument to open a given PX accession in PRIDE Reshake.static final StringThe command line argument to indicate that the PX accession to open in PRIDE Reshake is private.static final StringThe command line argument for the download folder for the URL for PeptideShaker.static final StringThe command line argument for a zipped psdb URL for PeptideShaker.static final StringThe command line argument for the PeptideShaker project name.static final StringThe command line argument for FASTA file for SearchGUI.static final StringThe command line argument for a parameters file for SearchGUI.static final StringThe command line argument for raw files for SearchGUI.static final StringThe command line argument for mgf files for SearchGUI.static final StringThe command line argument for the species.static final StringThe command line argument for the species type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstartPeptideShaker(JFrame parent) Starts PeptideShaker from the location of utilities preferences.static voidstartPeptideShaker(JFrame parent, File psdbFile) Starts PeptideShaker from the location of utilities preferences and opens the file given as argument.static voidstartPeptideShakerFromURL(JFrame parent, String zipUrl, String downloadUrlFolder) Starts PeptideShaker from the location of utilities preferences and opens the file given as argument.static voidstartReporter(JFrame parent) Starts Reporter from the location of utilities preferences.static voidstartReshake(JFrame parent, String pxAccession) Starts PeptideShaker from the location of utilities preferences in the Reshake mode and attempts at selecting the given project.static voidstartSearchGUI(JFrame parent) Starts SearchGUI from the location of utilities preferences.static voidstartSearchGUI(JFrame parent, ArrayList<File> spectrumFiles, ArrayList<File> rawFiles, File fastaFile, File searchParameters, File outputFolder, File configFolder, String species, String speciesType, String projectName) Starts SearchGUI from the location of utilities preferences.
-
Field Details
-
PEPTIDE_SHAKER_FILE_OPTION
The command line argument for a psdb file for PeptideShaker.- See Also:
-
PEPTIDE_SHAKER_URL_OPTION
The command line argument for a zipped psdb URL for PeptideShaker.- See Also:
-
PEPTIDE_SHAKER_URL_DOWNLOAD_FOLDER_OPTION
The command line argument for the download folder for the URL for PeptideShaker.- See Also:
-
PEPTIDE_SHAKER_PX_ACCESSION_OPTION
The command line argument to open a given PX accession in PRIDE Reshake.- See Also:
-
PEPTIDE_SHAKER_PX_ACCESSION_PRIVATE_OPTION
The command line argument to indicate that the PX accession to open in PRIDE Reshake is private. If not set public is assumed.- See Also:
-
SEARCHGUI_SPECTRUM_FILE_OPTION
The command line argument for mgf files for SearchGUI.- See Also:
-
SEARCHGUI_FASTA_FILE_OPTION
The command line argument for FASTA file for SearchGUI.- See Also:
-
SEARCHGUI_RAW_FILE_OPTION
The command line argument for raw files for SearchGUI.- See Also:
-
SEARCHGUI_PARAMETERS_FILE_OPTION
The command line argument for a parameters file for SearchGUI.- See Also:
-
OUTPUT_FOLDER_OPTION
The command line argument for an output folder.- See Also:
-
SPECIES_OPTION
The command line argument for the species.- See Also:
-
SPECIES_TYPE_OPTION
The command line argument for the species type.- See Also:
-
PROJECT_NAME_OPTION
The command line argument for the PeptideShaker project name.- See Also:
-
CONFIG_FOLDER
The command line argument for the config folder.- See Also:
-
-
Constructor Details
-
ToolFactory
public ToolFactory()
-
-
Method Details
-
startPeptideShaker
public static void startPeptideShaker(JFrame parent) throws IOException, ClassNotFoundException, InterruptedException Starts PeptideShaker from the location of utilities preferences.- Parameters:
parent- a frame to display the path setting dialog (can be null)- Throws:
IOException- if an exception occurs while reading or writing a fileClassNotFoundException- if an exception occurs while reading the user preferencesInterruptedException- if a threading issue occurs
-
startPeptideShaker
public static void startPeptideShaker(JFrame parent, File psdbFile) throws IOException, ClassNotFoundException, InterruptedException Starts PeptideShaker from the location of utilities preferences and opens the file given as argument. If null is given as file or if the file to open is not found, the tool will go for a default start.- Parameters:
parent- a frame to display the path setting dialog (can be null)psdbFile- the file to open (psdb format) (can be null)- Throws:
IOException- if an exception occurs while reading or writing a fileClassNotFoundException- if an exception occurs while reading the user preferencesInterruptedException- if a threading issue occurs
-
startReshake
public static void startReshake(JFrame parent, String pxAccession) throws IOException, ClassNotFoundException, InterruptedException Starts PeptideShaker from the location of utilities preferences in the Reshake mode and attempts at selecting the given project.- Parameters:
parent- a frame to display the path setting dialog (can be null)pxAccession- the ProteomeXchange accession of the project to open (can be null)- Throws:
IOException- if an exception occurs while reading or writing a fileClassNotFoundException- if an exception occurs while reading the user preferencesInterruptedException- if a threading issue occurs
-
startPeptideShakerFromURL
public static void startPeptideShakerFromURL(JFrame parent, String zipUrl, String downloadUrlFolder) throws IOException, ClassNotFoundException, InterruptedException Starts PeptideShaker from the location of utilities preferences and opens the file given as argument. If null is given as file or if the file to open is not found, the tool will go for a default start.- Parameters:
parent- a frame to display the path setting dialog (can be null)zipUrl- the URL with the zipped PeptideShaker project to open (can be null)downloadUrlFolder- the folder to download the project to, mandatory if zipUrl is used- Throws:
IOException- if an exception occurs while reading or writing a fileClassNotFoundException- if an exception occurs while reading the user preferencesInterruptedException- if a threading issue occurs
-
startReporter
public static void startReporter(JFrame parent) throws IOException, ClassNotFoundException, InterruptedException Starts Reporter from the location of utilities preferences.- Parameters:
parent- a frame to display the path setting dialog.- Throws:
IOException- if an exception occurs while reading or writing a fileClassNotFoundException- if an exception occurs while reading the user preferencesInterruptedException- if a threading issue occurs
-
startSearchGUI
public static void startSearchGUI(JFrame parent) throws IOException, ClassNotFoundException, InterruptedException Starts SearchGUI from the location of utilities preferences.- Parameters:
parent- a frame to display the path setting dialog.- Throws:
IOException- if an exception occurs while reading or writing a fileClassNotFoundException- if an exception occurs while reading the user preferencesInterruptedException- if a threading issue occurs
-
startSearchGUI
public static void startSearchGUI(JFrame parent, ArrayList<File> spectrumFiles, ArrayList<File> rawFiles, File fastaFile, File searchParameters, File outputFolder, File configFolder, String species, String speciesType, String projectName) throws IOException, ClassNotFoundException, InterruptedException Starts SearchGUI from the location of utilities preferences.- Parameters:
parent- a frame to display the path setting dialog.spectrumFiles- the spectrum files to search (can be null)rawFiles- the raw files to search (can be null)fastaFile- the FASTA filesearchParameters- the search parameters as a file (can be null)outputFolder- the output folder (can be null)configFolder- the config folder (can be null)species- the species (can be null)speciesType- the species type (can be null)projectName- the PeptideShaker project name- Throws:
IOException- if an exception occurs while reading or writing a fileClassNotFoundException- if an exception occurs while reading the user preferencesInterruptedException- if a threading issue occurs
-