Class PsPsmSection
java.lang.Object
eu.isas.peptideshaker.export.sections.PsPsmSection
This class outputs the PSM level export features.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
ConstructorsConstructorDescriptionPsPsmSection(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.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, String linePrefix, com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch, com.compomics.util.experiment.identification.peptide_shaker.PSParameter psParameter, com.compomics.util.io.export.features.peptideshaker.PsPsmFeature psmFeature, boolean validatedOnly, boolean decoys, com.compomics.util.waiting.WaitingHandler waitingHandler) Writes the given feature of the current section.static StringgetPeptideModificationLocationConfidence(com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch, com.compomics.util.parameters.identification.search.ModificationParameters modificationParameters) Returns the peptide modification location confidence as a string.static StringgetProteinGroupText(long proteinGroupKey, com.compomics.util.experiment.identification.Identification identification) Returns a description of the given protein group in the form proteinA,proteinB(confidence).voidWrites the header of this 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.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, long[] keys, String linePrefix, int nSurroundingAA, boolean validatedOnly, boolean decoys, com.compomics.util.waiting.WaitingHandler waitingHandler) Writes the desired section.
-
Constructor Details
-
PsPsmSection
public PsPsmSection(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.indexes- A boolean indicating whether the line index should be written.header- A boolean indicating whether the table header should be written.writer- 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.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, long[] keys, String linePrefix, int nSurroundingAA, boolean validatedOnly, boolean decoys, com.compomics.util.waiting.WaitingHandler waitingHandler) throws IOException Writes the desired section.- Parameters:
identification- The identification of the project.identificationFeaturesGenerator- The identification features generator of the project.sequenceProvider- The sequence provider.proteinDetailsProvider- The protein details provider.spectrumProvider- The spectrum provider.identificationParameters- The identification parameters.keys- The keys of the PSM matches to output.linePrefix- The line prefix.nSurroundingAA- The number of surrounding amino acids to export.validatedOnly- Whether only validated matches should be exported.decoys- Whether decoy matches should be exported as well.waitingHandler- The waiting handler.- Throws:
IOException- exception thrown if an error occurred while writing to the file.
-
getFeature
public static String getFeature(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, String linePrefix, com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch, com.compomics.util.experiment.identification.peptide_shaker.PSParameter psParameter, com.compomics.util.io.export.features.peptideshaker.PsPsmFeature psmFeature, boolean validatedOnly, boolean decoys, com.compomics.util.waiting.WaitingHandler waitingHandler) Writes the given feature of the current section.- Parameters:
identification- the identification of the projectidentificationFeaturesGenerator- the identification features generator of the projectidentificationParameters- the identification parameterslinePrefix- the line prefixspectrumMatch- the spectrum match inspectedpsParameter- the PeptideShaker parameter of the matchpsmFeature- the feature to exportvalidatedOnly- indicates whether only validated hits should be exporteddecoys- indicates whether decoys should be included in the exportwaitingHandler- the waiting handler- Returns:
- the content corresponding to the given feature of the current section
-
getProteinGroupText
public static String getProteinGroupText(long proteinGroupKey, com.compomics.util.experiment.identification.Identification identification) Returns a description of the given protein group in the form proteinA,proteinB(confidence).- Parameters:
proteinGroupKey- the key of the protein groupidentification- the identification object- Returns:
- a description of the given protein group
-
getPeptideModificationLocationConfidence
public static String getPeptideModificationLocationConfidence(com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch, com.compomics.util.parameters.identification.search.ModificationParameters modificationParameters) Returns the peptide modification location confidence as a string.- Parameters:
spectrumMatch- the spectrum matchmodificationParameters- the PTM profile- Returns:
- the peptide modification location confidence as a string
-
writeHeader
Writes the header of this section.- Throws:
IOException- exception thrown whenever an error occurred while writing the file
-