Class ProjectExport

java.lang.Object
eu.isas.peptideshaker.export.ProjectExport

public class ProjectExport extends Object
This class takes care of exporting the entire project as a single file.
Author:
Marc Vaudel
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the folder where to save the spectrum and FASTA files.
    static final String
    The name of the folder where to save report files.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Exports the project as zip file.
    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)
    Exports the project as zip file adding reports to it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_DATA_FOLDER

      public static final String DEFAULT_DATA_FOLDER
      The name of the folder where to save the spectrum and FASTA files.
      See Also:
    • DEFAULT_REPORTS_FOLDER

      public static final String 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 file
      fastaFile - path to the FASTA file
      spectrumProvider - the spectrum provider
      psdbFile - the psdb file
      moveFilesIntoZip - if true, the files will be moved into the zip file, i.e. not just copied
      waitingHandler - 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 file
      fastaFile - path to the FASTA file
      spectrumProvider - the spectrum provider
      followupAnalysisFiles - followup analysis files
      reportFiles - the identification features report files
      mzidFile - the mzid file
      psdbFile - the psdb file
      moveFilesIntoZip - if true, the files will be moved into the zip file, i.e. not just copied
      waitingHandler - 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