public class PsPsmSection extends Object
| Constructor and Description |
|---|
PsPsmSection(ArrayList<com.compomics.util.io.export.ExportFeature> exportFeatures,
boolean indexes,
boolean header,
com.compomics.util.io.export.ExportWriter writer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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).
|
void |
writeHeader()
Writes the header of this section.
|
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)
Writes the desired section.
|
public PsPsmSection(ArrayList<com.compomics.util.io.export.ExportFeature> exportFeatures, boolean indexes, boolean header, com.compomics.util.io.export.ExportWriter writer)
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.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
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.IOException - exception thrown if an error occurred while
writing to the file.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)
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 handlerpublic static String getProteinGroupText(long proteinGroupKey, com.compomics.util.experiment.identification.Identification identification)
proteinGroupKey - the key of the protein groupidentification - the identification objectpublic static String getPeptideModificationLocationConfidence(com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch, com.compomics.util.parameters.identification.search.ModificationParameters modificationParameters)
spectrumMatch - the spectrum matchmodificationParameters - the PTM profilepublic void writeHeader()
throws IOException
IOException - exception thrown whenever an error occurred while
writing the fileCopyright © 2021. All rights reserved.