Package eu.isas.reporter
Class Reporter
java.lang.Object
eu.isas.reporter.Reporter
Reporter performs reporter ion based quantification on MS2/MS3 spectra.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PeptideQuantificationDetailsestimatePeptideMatchQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch, com.compomics.util.waiting.WaitingHandler waitingHandler) Returns the quantification details of a peptide match.static ProteinQuantificationDetailsestimateProteinMatchQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, QuantificationFeaturesGenerator quantificationFeaturesGenerator, RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.experiment.identification.matches.ProteinMatch proteinMatch, com.compomics.util.waiting.WaitingHandler waitingHandler) Returns the quantification details of a protein match.static PsmQuantificationDetailsestimatePSMQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, ReporterIonSelectionSettings reporterIonSelectionSettings, RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, Long matchKey) Returns the quantification details of a PSM.estimatePTMQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters sequenceMatchingParameters, String ptmName, long matchKey, int site, com.compomics.util.waiting.WaitingHandler waitingHandler) Returns the quantification details of a PTM on a protein.//@TODO: discriminate peptides according to the neighboring sites?estimateSpectrumQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, ReporterIonSelectionSettings reporterIonSelectionSettings, com.compomics.util.experiment.identification.matches.SpectrumMatch aSpectrumMatch) Returns the quantification details of a spectrum.static com.compomics.util.experiment.identification.matches.IonMatchgetBestReporterIonMatch(com.compomics.util.experiment.biology.ions.impl.ReporterIon reporterIon, int charge, com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum spectrum, double mzTolerance, boolean mostAccurate) Returns the best reporter ion match based on mass accuracy.static FileReturns the folder where the configuration files are stored.static FileReturns the enzymes file.static StringReturns the path to the jar file.static FileReturns the file containing the database.static FileReturns the default methods file.static StringgetTempFolderPath(File configFolder) Returns the folder to use for temporary files.static voidSets the path configuration.static voidsetTempFolderPath(String tempFolderPath) Sets the folder to use for temporary files.
-
Constructor Details
-
Reporter
public Reporter()Empty constructor for instantiation purposes.
-
-
Method Details
-
estimateProteinMatchQuantificationDetails
public static ProteinQuantificationDetails estimateProteinMatchQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, QuantificationFeaturesGenerator quantificationFeaturesGenerator, RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.experiment.identification.matches.ProteinMatch proteinMatch, com.compomics.util.waiting.WaitingHandler waitingHandler) Returns the quantification details of a protein match.- Parameters:
identification- the identification containing identification detailsspectrumProvider- the spectrum provideridentificationFeaturesGenerator- the identification features generator used to store and retrieve identification detailsquantificationFeaturesGenerator- the quantification features generator used to store and retrieve quantification detailsratioEstimationSettings- the ratio estimation settingsreporterIonQuantification- the reporter quantification settingssearchParameters- the identification parametersproteinMatch- the protein matchwaitingHandler- waiting handler displaying progress to the user and allowing canceling the process- Returns:
- the quantification details of the match
-
estimatePTMQuantificationDetails
public static ProteinPtmQuantificationDetails estimatePTMQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters sequenceMatchingParameters, String ptmName, long matchKey, int site, com.compomics.util.waiting.WaitingHandler waitingHandler) throws IllegalArgumentException, SQLException, IOException, ClassNotFoundException, InterruptedException Returns the quantification details of a PTM on a protein.//@TODO: discriminate peptides according to the neighboring sites?- Parameters:
identification- the identification containing identification detailsspectrumProvider- the spectrum providerquantificationFeaturesGenerator- the quantification features generator used to store and retrieve quantification detailsratioEstimationSettings- the ratio estimation settingsreporterIonQuantification- the reporter quantification settingssearchParameters- the identification settings usedsequenceMatchingParameters- the sequence matching preferencesptmName- the name of the PTMmatchKey- the key of the match of interestsite- the site of the PTM on the protein sequencewaitingHandler- waiting handler displaying progress to the user and allowing canceling the process- Returns:
- the quantification details of the match
- Throws:
SQLException- exception thrown whenever an error occurred while interacting with the databaseIOException- exception thrown whenever an error occurred while interacting with a fileClassNotFoundException- exception thrown whenever an error occurred while deserializing an objectInterruptedException- exception thrown whenever a threading error occurredIllegalArgumentException
-
estimatePeptideMatchQuantificationDetails
public static PeptideQuantificationDetails estimatePeptideMatchQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch, com.compomics.util.waiting.WaitingHandler waitingHandler) Returns the quantification details of a peptide match.- Parameters:
identification- the identification containing identification detailsspectrumProvider- the spectrum providerquantificationFeaturesGenerator- the quantification features generator used to store and retrieve quantification detailsratioEstimationSettings- the ratio estimation settingsreporterIonQuantification- the reporter quantification settingspeptideMatch- the peptide matchwaitingHandler- waiting handler displaying progress to the user and allowing canceling the process- Returns:
- the quantification details of the match
-
estimatePSMQuantificationDetails
public static PsmQuantificationDetails estimatePSMQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, ReporterIonSelectionSettings reporterIonSelectionSettings, RatioEstimationSettings ratioEstimationSettings, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, Long matchKey) Returns the quantification details of a PSM.- Parameters:
identification- the identification containing identification detailsspectrumProvider- the spectrum providerquantificationFeaturesGenerator- the quantification features generator used to store and retrieve quantification detailsreporterIonSelectionSettings- the reporter ion selection settingsratioEstimationSettings- the ratio estimation settingsreporterIonQuantification- the reporter quantification settingsmatchKey- the key of the match of interest- Returns:
- the quantification details of the match
-
estimateSpectrumQuantificationDetails
public static SpectrumQuantificationDetails estimateSpectrumQuantificationDetails(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, ReporterIonSelectionSettings reporterIonSelectionSettings, com.compomics.util.experiment.identification.matches.SpectrumMatch aSpectrumMatch) Returns the quantification details of a spectrum.- Parameters:
identification- the identification containing identification detailsspectrumProvider- the spectrum providerquantificationFeaturesGenerator- the quantification features generator used to store and retrieve quantification detailsreporterIonQuantification- the reporter ion quantification detailsreporterIonSelectionSettings- the reporter ion selection settingsaSpectrumMatch- the spectrum match of interest- Returns:
- the quantification details of the spectrum
-
getBestReporterIonMatch
public static com.compomics.util.experiment.identification.matches.IonMatch getBestReporterIonMatch(com.compomics.util.experiment.biology.ions.impl.ReporterIon reporterIon, int charge, com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum spectrum, double mzTolerance, boolean mostAccurate) Returns the best reporter ion match based on mass accuracy. It is possible to select the most accurate or the most intense ion, as set by the mostAccurate boolean. Null if none found- Parameters:
reporterIon- the reporter ion to matchcharge- the expected chargespectrum- the spectrum inspectedmzTolerance- the m/z tolerancemostAccurate- boolean indicating whether the most accurate ion should be selected- Returns:
- the best ion match
-
getJarFilePath
Returns the path to the jar file.- Returns:
- the path to the jar file
-
getConfigFolder
Returns the folder where the configuration files are stored.- Returns:
- the folder where the configuration files are stored
-
setTempFolderPath
Sets the folder to use for temporary files.- Parameters:
tempFolderPath- the folder to use for temporary files
-
getTempFolderPath
Returns the folder to use for temporary files. By default the resources folder is used.- Parameters:
configFolder- the path to the jar file- Returns:
- the folder to use for temporary files
-
getMatchesFolder
Returns the file containing the database.- Returns:
- the file containing the database
-
setPathConfiguration
Sets the path configuration.- Throws:
IOException- exception thrown whenever an error occurs while reading or writing the paths configuration file
-
getEnzymesFile
Returns the enzymes file.- Returns:
- the enzymes file
-
getMethodsFile
Returns the default methods file.- Returns:
- the default methods file
-