Package eu.isas.peptideshaker.export
Class ProjectExport
java.lang.Object
eu.isas.peptideshaker.export.ProjectExport
This class takes care of exporting the entire project as a single file.
- Author:
- Marc Vaudel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexportProjectAsZip(File zipFile, File fastaFile, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, File psdbFile, boolean moveFilesIntoZip, com.compomics.util.waiting.WaitingHandler waitingHandler) Exports the project as zip file.static voidexportProjectAsZip(File zipFile, File fastaFile, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, ArrayList<File> followupAnalysisFiles, ArrayList<File> reportFiles, File mzidFile, File psdbFile, boolean moveFilesIntoZip, com.compomics.util.waiting.WaitingHandler waitingHandler) Exports the project as zip file adding reports to it.
-
Field Details
-
DEFAULT_DATA_FOLDER
The name of the folder where to save the spectrum and FASTA files.- See Also:
-
DEFAULT_REPORTS_FOLDER
The name of the folder where to save report files.- See Also:
-
-
Constructor Details
-
ProjectExport
public ProjectExport()
-
-
Method Details
-
exportProjectAsZip
public static void exportProjectAsZip(File zipFile, File fastaFile, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, File psdbFile, boolean moveFilesIntoZip, com.compomics.util.waiting.WaitingHandler waitingHandler) throws IOException Exports the project as zip file.- Parameters:
zipFile- the destination filefastaFile- path to the FASTA filespectrumProvider- the spectrum providerpsdbFile- the psdb filemoveFilesIntoZip- if true, the files will be moved into the zip file, i.e. not just copiedwaitingHandler- a waiting handler to display progress to the user and cancel the process (can be null)- Throws:
IOException- exception thrown whenever a problem occurred while reading/writing the file
-
exportProjectAsZip
public static void exportProjectAsZip(File zipFile, File fastaFile, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, ArrayList<File> followupAnalysisFiles, ArrayList<File> reportFiles, File mzidFile, File psdbFile, boolean moveFilesIntoZip, com.compomics.util.waiting.WaitingHandler waitingHandler) throws IOException Exports the project as zip file adding reports to it.- Parameters:
zipFile- the destination filefastaFile- path to the FASTA filespectrumProvider- the spectrum providerfollowupAnalysisFiles- followup analysis filesreportFiles- the identification features report filesmzidFile- the mzid filepsdbFile- the psdb filemoveFilesIntoZip- if true, the files will be moved into the zip file, i.e. not just copiedwaitingHandler- a waiting handler to display progress to the user and cancel the process (can be null)- Throws:
IOException- exception thrown whenever a problem occurred while reading/writing the file
-