Package eu.isas.reporter.io
Class ProjectImporter
java.lang.Object
eu.isas.reporter.io.ProjectImporter
Imports a project from a psdb file.
- Author:
- Marc Vaudel, Harald Barsnes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe default reporter ion tolerance for TMT data.static final doubleThe default reporter ion tolerance for TMT data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusteringSettingsgetDefaultClusterMetrics(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.experiment.identification.Identification identification) Returns the cluster metrics for a given project.static com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantificationgetDefaultReporterIonQuantification(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters) Returns the default reporter ion quantification based on the identification parameters.static ReporterSettingsgetDefaultReporterSettings(com.compomics.util.experiment.quantification.reporterion.ReporterMethod reporterMethod, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters) Returns the default reporter settings as inferred from the identification parameters.static ReporterSettingsgetDefaultReporterSettings(com.compomics.util.experiment.quantification.reporterion.ReporterMethod reporterMethod, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, ReporterSettings reporterSettings) Returns the default reporter settings as inferred from the identification parameters.Returns the display preferences.com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantificationReturns the reporter ion quantification object loaded from the file.Returns the reporter settings loaded from the file.com.compomics.util.experiment.mass_spectrometry.SpectrumProviderReturns the spectrum provider.voidimportPeptideShakerProject(eu.isas.peptideshaker.utils.PsdbParent psdbParent, ArrayList<File> mgfFiles, com.compomics.util.waiting.WaitingHandler waitingHandler) Imports the identification results from a PeptideShaker file.voidimportReporterProject(eu.isas.peptideshaker.utils.PsdbParent psdbParent, com.compomics.util.waiting.WaitingHandler waitingHandler) Loads the Reporter project.
-
Field Details
-
DEFAULT_REPORTER_ION_TOLERANCE_TMT
public static final double DEFAULT_REPORTER_ION_TOLERANCE_TMTThe default reporter ion tolerance for TMT data.- See Also:
-
DEFAULT_REPORTER_ION_TOLERANCE_ITRAQ
public static final double DEFAULT_REPORTER_ION_TOLERANCE_ITRAQThe default reporter ion tolerance for TMT data.- See Also:
-
-
Constructor Details
-
ProjectImporter
Constructor.- Parameters:
owner- the dialog owner if operated from the GUI
-
ProjectImporter
public ProjectImporter()Constructor.
-
-
Method Details
-
importPeptideShakerProject
public void importPeptideShakerProject(eu.isas.peptideshaker.utils.PsdbParent psdbParent, ArrayList<File> mgfFiles, com.compomics.util.waiting.WaitingHandler waitingHandler) throws IOException, ClassNotFoundException, SQLException, InterruptedException, org.apache.commons.compress.archivers.ArchiveException Imports the identification results from a PeptideShaker file.- Parameters:
psdbParent- the psdb parent object where the psdb file is loadedmgfFiles- the arraylist to add the detected mgf files towaitingHandler- a waiting handler to display the progress to the user and allow interrupting the process- Throws:
IOException- thrown of IOException occurs exception thrown whenever an error occurred while reading or writing a fileSQLException- thrown of SQLException occurs exception thrown whenever an error occurred while interacting with the databaseClassNotFoundException- exception thrown whenever an error occurred while deserializing an objectInterruptedException- exception thrown whenever a threading error occurred while saving the projectorg.apache.commons.compress.archivers.ArchiveException- exception thrown whenever an error occurs while untaring the file
-
importReporterProject
public void importReporterProject(eu.isas.peptideshaker.utils.PsdbParent psdbParent, com.compomics.util.waiting.WaitingHandler waitingHandler) throws SQLException, IOException, ClassNotFoundException, InterruptedException Loads the Reporter project.- Parameters:
psdbParent- the psdb parent object where the psdb file is loadedwaitingHandler- a waiting handler to display the progress to the user and allow interrupting the process- Throws:
SQLException- exception thrown whenever an error occurs while interacting with the databaseIOException- exception thrown whenever an error occurs while reading or writing a fileClassNotFoundException- exception thrown whenever an error occurred while deserializing a file from the databaseInterruptedException- exception thrown if a threading error occurs while interacting with the database
-
getDefaultReporterSettings
public static ReporterSettings getDefaultReporterSettings(com.compomics.util.experiment.quantification.reporterion.ReporterMethod reporterMethod, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters) Returns the default reporter settings as inferred from the identification parameters.- Parameters:
reporterMethod- the quantification method selectedidentificationParameters- the identification parameters- Returns:
- the default reporter settings
-
getDefaultReporterSettings
public static ReporterSettings getDefaultReporterSettings(com.compomics.util.experiment.quantification.reporterion.ReporterMethod reporterMethod, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, ReporterSettings reporterSettings) Returns the default reporter settings as inferred from the identification parameters.- Parameters:
reporterMethod- the quantification method selectedidentificationParameters- the identification parametersreporterSettings- the reporter settings- Returns:
- the default reporter settings
-
getDefaultReporterIonQuantification
public static com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification getDefaultReporterIonQuantification(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters) Returns the default reporter ion quantification based on the identification parameters.- Parameters:
identificationParameters- the identification parameters- Returns:
- the default reporter ion quantification
-
getDefaultClusterMetrics
public static ClusteringSettings getDefaultClusterMetrics(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.experiment.identification.Identification identification) Returns the cluster metrics for a given project.- Parameters:
identificationParameters- the identification parametersidentification- the identification- Returns:
- the cluster metrics for a given project
-
getReporterSettings
Returns the reporter settings loaded from the file.- Returns:
- the reporter settings loaded from the file
-
getReporterIonQuantification
public com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification getReporterIonQuantification()Returns the reporter ion quantification object loaded from the file.- Returns:
- the reporter ion quantification object loaded from the file
-
getDisplayPreferences
Returns the display preferences.- Returns:
- the display preferences
-
getSpectrumProvider
public com.compomics.util.experiment.mass_spectrometry.SpectrumProvider getSpectrumProvider()Returns the spectrum provider.- Returns:
- the spectrum provider
-