Class ReporterPeptideSection
java.lang.Object
eu.isas.reporter.export.report.sections.ReporterPeptideSection
This class outputs the peptide related quantification export features.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
ConstructorsConstructorDescriptionReporterPeptideSection(ArrayList<com.compomics.util.io.export.ExportFeature> exportFeatures, boolean indexes, boolean header, com.compomics.util.io.export.ExportWriter writer) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFeature(com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch, com.compomics.util.io.export.features.reporter.ReporterPeptideFeature peptideFeatures, String sampleIndex, com.compomics.util.waiting.WaitingHandler waitingHandler) Returns the report component corresponding to a feature at a given channel.voidwriteHeader(com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification) Writes the title of the section.voidwriteSection(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, ReporterSettings reporterSettings, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, long[] keys, int nSurroundingAA, String linePrefix, boolean validatedOnly, boolean decoys, com.compomics.util.waiting.WaitingHandler waitingHandler) Writes the desired section.
-
Constructor Details
-
ReporterPeptideSection
public ReporterPeptideSection(ArrayList<com.compomics.util.io.export.ExportFeature> exportFeatures, boolean indexes, boolean header, com.compomics.util.io.export.ExportWriter writer) Constructor.- Parameters:
exportFeatures- the features to export in this sectionindexes- indicates whether the line index should be writtenheader- indicates whether the table header should be writtenwriter- the writer which will write to the file
-
-
Method Details
-
writeSection
public void writeSection(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, ReporterSettings reporterSettings, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, long[] keys, int nSurroundingAA, String linePrefix, boolean validatedOnly, boolean decoys, com.compomics.util.waiting.WaitingHandler waitingHandler) throws IOException, IllegalArgumentException, SQLException, ClassNotFoundException, InterruptedException, org.apache.commons.math.MathException Writes the desired section.- Parameters:
identification- the identification of the projectidentificationFeaturesGenerator- the identification features generator of the projectsequenceProvider- the sequence providerspectrumProvider- the spectrum providerproteinDetailsProvider- the protein details providerquantificationFeaturesGenerator- the quantification features generator containing the quantification informationreporterIonQuantification- the reporter ion quantification object containing the quantification configurationreporterSettings- the reporter settingsidentificationParameters- the identification parameterskeys- the keys of the protein matches to outputnSurroundingAA- the number of surrounding amino acids to exportlinePrefix- the line prefix to usevalidatedOnly- whether only validated matches should be exporteddecoys- whether decoy matches should be exported as wellwaitingHandler- the waiting handler- 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 occurredorg.apache.commons.math.MathException- exception thrown whenever an error occurred while transforming the ratiosIllegalArgumentException
-
getFeature
public static String getFeature(com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, QuantificationFeaturesGenerator quantificationFeaturesGenerator, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch, com.compomics.util.io.export.features.reporter.ReporterPeptideFeature peptideFeatures, String sampleIndex, com.compomics.util.waiting.WaitingHandler waitingHandler) throws SQLException, IOException, ClassNotFoundException, InterruptedException Returns the report component corresponding to a feature at a given channel.- Parameters:
spectrumProvider- the spectrum providerquantificationFeaturesGenerator- the quantification features generatorreporterIonQuantification- the reporter ion quantification object containing the quantification configurationpeptideMatch- the peptide matchpeptideFeatures- the peptide feature to exportsampleIndex- the index of the sample in case the feature is channel dependent, ignored otherwisewaitingHandler- the waiting handler- Returns:
- the report component corresponding to a feature at a given channel
- 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 occurred
-
writeHeader
public void writeHeader(com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification) throws IOException Writes the title of the section.- Parameters:
reporterIonQuantification- the reporter ion quantification object containing the quantification configuration- Throws:
IOException- exception thrown whenever an error occurred while interacting with a file
-