Package eu.isas.peptideshaker.cmd
Class ReportCLI
java.lang.Object
eu.isas.peptideshaker.preferences.UserPreferencesParent
eu.isas.peptideshaker.utils.PsdbParent
eu.isas.peptideshaker.cmd.ReportCLI
- All Implemented Interfaces:
AutoCloseable
This class performs the command line export of reports in command line.
- Author:
- Marc Vaudel, Harald Barsnes
-
Field Summary
Fields inherited from class eu.isas.peptideshaker.utils.PsdbParent
dbFolder, displayParameters, filterParameters, geneMaps, identification, identificationFeaturesGenerator, identificationParameters, metrics, msFileHandler, projectDetails, projectParameters, projectType, proteinDetailsProvider, psdbFile, sequenceProvider, spectrumCountingParametersFields inherited from class eu.isas.peptideshaker.preferences.UserPreferencesParent
userPreferences -
Constructor Summary
ConstructorsConstructorDescriptionReportCLI(ReportCLIInputBean reportCLIInputBean) Construct a new ReportCLI runnable from a ReportCLI Bean. -
Method Summary
Methods inherited from class eu.isas.peptideshaker.utils.PsdbParent
close, getDbFolder, getDisplayParameters, getExtendedProjectReport, getFilterParameters, getGeneMaps, getIdentification, getIdentificationFeaturesGenerator, getIdentificationParameters, getMetrics, getProjectDetails, getProjectParameters, getProjectType, getProteinDetailsProvider, getPsdbFile, getPsdbImportFromZip, getSequenceProvider, getSpectrumCountingParameters, getSpectrumProvider, getUserParameters, loadFastaFile, loadPsdbFile, loadPsdbFromZipFile, loadSpectrumFile, loadSpectrumFile, loadSpectrumFiles, loadSpectrumFiles, resetIdentificationFeaturesGenerator, saveProject, setDbFolder, setDefaultParameters, setDisplayParameters, setFilterParameters, setGeneMaps, setIdentification, setIdentificationFeaturesGenerator, setIdentificationParameters, setMetrics, setMsFileHandler, setProject, setProjectDetails, setProjectType, setProteinDetailsProvider, setPsdbFile, setPsdbImportFromZip, setSequenceProvider, setSpectrumCountingParametersMethods inherited from class eu.isas.peptideshaker.preferences.UserPreferencesParent
loadUserParameters, saveUserParameters
-
Constructor Details
-
ReportCLI
Construct a new ReportCLI runnable from a ReportCLI Bean. When initialization is successful, calling "run" will open the PeptideShaker project and write the desired output files.- Parameters:
reportCLIInputBean- the input bean
-
-
Method Details
-
call
Calling this method will run the configured PeptideShaker process.- Returns:
- returns 1 if the process was canceled
-
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
-
toString
-
closePeptideShaker
public void closePeptideShaker() throws IOException, SQLException, InterruptedException, ClassNotFoundExceptionClose the PeptideShaker instance by clearing up factories and cache.- Throws:
IOException- thrown if an exception occurred while closing the connection to a fileSQLException- thrown if an exception occurred while closing the connection to a databaseInterruptedException- if a thread was interrupted when closing the databaseClassNotFoundException- if a class was not found when emptying the cache
-