Class ReporterProteinSection
java.lang.Object
eu.isas.reporter.export.report.sections.ReporterProteinSection
This class outputs the protein related export features.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
ConstructorsConstructorDescriptionReporterProteinSection(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, long proteinKey, com.compomics.util.io.export.features.reporter.ReporterProteinFeatures proteinFeatures, 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 header of the protein 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, com.compomics.util.experiment.biology.genes.GeneMaps geneMaps, QuantificationFeaturesGenerator quantificationFeaturesGenerator, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, ReporterSettings reporterSettings, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, long[] keys, int nSurroundingAas, boolean validatedOnly, boolean decoys, com.compomics.util.waiting.WaitingHandler waitingHandler) Writes the desired section.
-
Constructor Details
-
ReporterProteinSection
public ReporterProteinSection(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 section. ProteinFeatures as main features. If Peptide or protein features are selected, they will be added as sub-sections.indexes- 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, com.compomics.util.experiment.biology.genes.GeneMaps geneMaps, QuantificationFeaturesGenerator quantificationFeaturesGenerator, com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification reporterIonQuantification, ReporterSettings reporterSettings, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, long[] keys, int nSurroundingAas, 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 providergeneMaps- the gene mapsquantificationFeaturesGenerator- 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 output. if null all proteins will be exported.nSurroundingAas- in case a peptide export is included with surrounding amino-acids, the number of surrounding amino acids 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, long proteinKey, com.compomics.util.io.export.features.reporter.ReporterProteinFeatures proteinFeatures, 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 configurationproteinKey- the protein keyproteinFeatures- the protein 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 header of the protein 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
-