public class PsPeptideSection extends Object
| Constructor and Description |
|---|
PsPeptideSection(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.experiment.io.biology.protein.SequenceProvider sequenceProvider,
com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
int nSurroundingAA,
String linePrefix,
com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch,
com.compomics.util.io.export.features.peptideshaker.PsPeptideFeature peptideFeature,
boolean validatedOnly,
boolean decoys,
com.compomics.util.waiting.WaitingHandler waitingHandler)
Returns the component of the section corresponding to the given feature.
|
static String |
getPeptideLocalizationText(String proteinAccession,
int[] sites)
Returns the peptide localization on the given protein as text in the form
accession (site1,site2).
|
static String |
getPeptideModificationLocationConfidence(com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch,
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 title of the 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,
int nSurroundingAA,
String linePrefix,
boolean validatedOnly,
boolean decoys,
com.compomics.util.waiting.WaitingHandler waitingHandler)
Writes the desired section.
|
public PsPeptideSection(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 sectionindexes - indicates whether the line index should be writtenheader - indicates whether the table header should be writtenwriter - the writer which will write to the filepublic 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,
int nSurroundingAA,
String linePrefix,
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
reading or writing a filepublic static String getfeature(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.parameters.identification.IdentificationParameters identificationParameters, int nSurroundingAA, String linePrefix, com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch, com.compomics.util.io.export.features.peptideshaker.PsPeptideFeature peptideFeature, boolean validatedOnly, boolean decoys, com.compomics.util.waiting.WaitingHandler waitingHandler)
identification - the identification of the projectidentificationFeaturesGenerator - the identification features
generator of the projectsequenceProvider - a provider for the protein sequencesproteinDetailsProvider - a provider for protein detailsidentificationParameters - the identification parametersnSurroundingAA - the number of surrounding amino acids to exportlinePrefix - the line prefix to use.peptideMatch - the peptide matchpeptideFeature - the peptide feature to exportvalidatedOnly - whether only validated matches should be exporteddecoys - whether decoy matches should be exported as wellwaitingHandler - 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 getPeptideLocalizationText(String proteinAccession, int[] sites)
proteinAccession - the protein accessionsites - the position of the peptide on the proteinpublic static String getPeptideModificationLocationConfidence(com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch, com.compomics.util.parameters.identification.search.ModificationParameters modificationParameters)
peptideMatch - the peptide matchmodificationParameters - the modification parameterspublic void writeHeader()
throws IOException
IOException - exception thrown whenever an error occurred while
writing the fileCopyright © 2021. All rights reserved.