public class DisplayFeaturesGenerator extends Object
| Constructor and Description |
|---|
DisplayFeaturesGenerator(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
DisplayParameters displayParameters,
com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider,
com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
addGoLink(String goAccession)
Returns the GO accession number as a web link to the given GO term at
QuickGO.
|
String |
getDatabaseLink(String proteinAccession)
Transforms the protein accession number into an HTML link to the
corresponding database.
|
String |
getDatabaseLink(String proteinAccession,
boolean includeHtmlTags,
boolean underlineLink)
Transforms the protein accession number into an HTML link to the
corresponding database.
|
String |
getDatabaseLinks(String[] proteinAccessions)
Transforms the protein accession number into an HTML link to the
corresponding database.
|
String |
getDatabaseLinks(String[] proteinAccessions,
boolean underlineLink)
Transforms the protein accession number into an HTML link to the
corresponding database.
|
static String[] |
getDisplayedModifications(String[] modificationArray,
HashSet<String> displayedModifications)
Returns an array containing only the modifications to display.
|
static String[] |
getFilteredAmbiguousModificationsRepresentativeSites(com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores,
HashSet<String> displayedModifications,
int peptideLength)
Exports the ambiguously localized modification representative sites in a
map: site > mapped modifications.
|
static String[] |
getFilteredAmbiguousModificationsSecondarySites(com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores,
HashSet<String> displayedModifications,
int peptideLength)
Exports the ambiguously localized modification secondary sites in a map:
site > mapped modifications.
|
static String[] |
getFilteredConfidentModificationsSites(com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores,
HashSet<String> displayedModifications,
int peptideLength)
Exports the confidently localized modification sites in a map: site >
mapped modifications.
|
String |
getGoAccessionLink(String goAccession)
Returns the GO accession number as a web link to the given GO term at
QuickGO.
|
String |
getNcbiAccessionLink(String proteinAccession)
Returns the protein accession number as a web link to the given protein
at https://www.ncbi.nlm.nih.gov/protein.
|
String |
getNextProtAccessionLink(String proteinAccession)
Returns the protein accession number as a web link to the given protein
at https://www.nextprot.org.
|
String |
getPeptideModificationTooltipAsHtml(com.compomics.util.experiment.biology.proteins.Peptide peptide)
Returns a string with the HTML tooltip for the peptide indicating the
modification details.
|
String |
getPeptideModificationTooltipAsHtml(com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch)
Returns a string with the HTML tooltip for the peptide indicating the
modification details.
|
String |
getPeptideModificationTooltipAsHtml(com.compomics.util.experiment.biology.proteins.Peptide peptide,
com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores)
Returns a string with the HTML tooltip for the peptide indicating the
modification details.
|
String |
getPeptideModificationTooltipAsHtml(com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch)
Returns a string with the HTML tooltip for the peptide indicating the
modification details.
|
static String |
getPrideAccessionLink(String projectAccession)
Returns the project accession number as a web link to the given project
in PRIDE.
|
static String |
getPrideAssayArchiveLink(String projectAccession,
String assayAccession)
Returns the assay accession number as a web link to the given assay in
the PRIDE archive.
|
static String |
getPrideProjectArchiveLink(String projectAccession)
Returns the project accession number as a web link to the given project
in the PRIDE archive.
|
HashMap<Integer,ArrayList<ResidueAnnotation>> |
getResidueAnnotation(long proteinMatchKey,
com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters sequenceMatchingPreferences,
com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator,
com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics,
com.compomics.util.experiment.identification.Identification identification,
boolean allPeptides,
com.compomics.util.parameters.identification.search.SearchParameters searchParameters,
boolean enzymatic)
Returns the residue annotation for a given protein in a map for enzymatic
or not enzymatic peptides only.
|
String |
getSrsAccessionLink(String proteinAccession,
String database)
Returns the protein accession number as a web link to the given protein
at https://srs.ebi.ac.uk.
|
String |
getTaggedPeptideSequence(com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch,
boolean useHtmlColorCoding,
boolean includeHtmlStartEndTags,
boolean useShortName)
Returns the peptide with modification sites tagged (color coded or with
modification tags, e.g, <mox>) in the sequence based on
PeptideShaker site inference results for the given peptide match.
|
String |
getTaggedPeptideSequence(com.compomics.util.experiment.biology.proteins.Peptide peptide,
com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores,
boolean useHtmlColorCoding,
boolean includeHtmlStartEndTags,
boolean useShortName)
Returns the peptide with modification sites tagged (color coded or with
modification tags, e.g, <mox>) in the sequence based on the
provided modification localization scores.
|
String |
getTaggedPeptideSequence(com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch,
boolean useHtmlColorCoding,
boolean includeHtmlStartEndTags,
boolean useShortName)
Returns the peptide with modification sites tagged (color coded or with
modification tags, e.g, <mox>) in the sequence based on
PeptideShaker site inference results for the best assumption of the given
spectrum match.
|
String |
getTagModificationTooltipAsHtml(com.compomics.util.experiment.identification.amino_acid_tags.Tag tag)
Returns a string with the HTML tooltip for the tag indicating the
modification details.
|
String |
getUniProtAccessionLink(String proteinAccession)
Returns the protein accession number as a web link to the given protein
at https://www.uniprot.org/uniprot.
|
public DisplayFeaturesGenerator(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
DisplayParameters displayParameters,
com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider,
com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider)
identificationParameters - the identification parametersdisplayParameters - the display parameterssequenceProvider - the sequence providerproteinDetailsProvider - the protein details providerpublic String getDatabaseLink(String proteinAccession)
proteinAccession - the protein to get the database link forpublic String getDatabaseLink(String proteinAccession, boolean includeHtmlTags, boolean underlineLink)
proteinAccession - the protein to get the database link forincludeHtmlTags - if true, the starting and ending HTML tags are
includedunderlineLink - if true, the link is underlinedpublic String getDatabaseLinks(String[] proteinAccessions)
proteinAccessions - the list of the accessions of proteins to get
the database links forpublic String getDatabaseLinks(String[] proteinAccessions, boolean underlineLink)
proteinAccessions - the list of the accessions of proteins to get
the database links forunderlineLink - if true, the link is underlinedpublic String getSrsAccessionLink(String proteinAccession, String database)
proteinAccession - the protein accession numberdatabase - the protein databasepublic String getUniProtAccessionLink(String proteinAccession)
proteinAccession - the protein accession numberpublic String getNextProtAccessionLink(String proteinAccession)
proteinAccession - the protein accession numberpublic String getNcbiAccessionLink(String proteinAccession)
proteinAccession - the protein accession numberpublic static String getPrideAccessionLink(String projectAccession)
projectAccession - the project accession numberpublic static String getPrideProjectArchiveLink(String projectAccession)
projectAccession - the project accession numberpublic static String getPrideAssayArchiveLink(String projectAccession, String assayAccession)
projectAccession - the project accession numberassayAccession - the assay accession numberpublic String getPeptideModificationTooltipAsHtml(com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch)
spectrumMatch - the spectrum matchpublic String getPeptideModificationTooltipAsHtml(com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch)
peptideMatch - the peptide matchpublic String getPeptideModificationTooltipAsHtml(com.compomics.util.experiment.biology.proteins.Peptide peptide, com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores)
peptide - the peptidemodificationScores - the modification scorespublic static String[] getDisplayedModifications(String[] modificationArray, HashSet<String> displayedModifications)
modificationArray - the original arraydisplayedModifications - the displayed modificationspublic String getPeptideModificationTooltipAsHtml(com.compomics.util.experiment.biology.proteins.Peptide peptide)
peptide - the peptidepublic String getTagModificationTooltipAsHtml(com.compomics.util.experiment.identification.amino_acid_tags.Tag tag)
tag - the tagpublic String getTaggedPeptideSequence(com.compomics.util.experiment.identification.matches.PeptideMatch peptideMatch, boolean useHtmlColorCoding, boolean includeHtmlStartEndTags, boolean useShortName)
peptideMatch - the peptide match of interestuseHtmlColorCoding - if true, color coded HTML is used, otherwise
modification tags, e.g, <mox>, are usedincludeHtmlStartEndTags - if true, HTML start and end tags are addeduseShortName - if true the short names are used in the tagspublic String getTaggedPeptideSequence(com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch, boolean useHtmlColorCoding, boolean includeHtmlStartEndTags, boolean useShortName)
spectrumMatch - the spectrum match of interestuseHtmlColorCoding - if true, color coded HTML is used, otherwise
modification tags, e.g, <mox>, are usedincludeHtmlStartEndTags - if true, HTML start and end tags are addeduseShortName - if true the short names are used in the tagspublic String getTaggedPeptideSequence(com.compomics.util.experiment.biology.proteins.Peptide peptide, com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores, boolean useHtmlColorCoding, boolean includeHtmlStartEndTags, boolean useShortName)
peptide - the spectrum match of interestmodificationScores - the modification localization scoresuseHtmlColorCoding - if true, color coded HTML is used, otherwise
modification tags, e.g, <mox>, are usedincludeHtmlStartEndTags - if true, HTML start and end tags are addeduseShortName - if true the short names are used in the tagspublic static String[] getFilteredConfidentModificationsSites(com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores, HashSet<String> displayedModifications, int peptideLength)
modificationScores - the PeptideShaker modification scoresdisplayedModifications - list of modifications to displaypeptideLength - the length of the peptidepublic static String[] getFilteredAmbiguousModificationsRepresentativeSites(com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores, HashSet<String> displayedModifications, int peptideLength)
modificationScores - the PeptideShaker modification scoresdisplayedModifications - list of modifications to displaypeptideLength - the length of the peptidepublic static String[] getFilteredAmbiguousModificationsSecondarySites(com.compomics.util.experiment.identification.peptide_shaker.PSModificationScores modificationScores, HashSet<String> displayedModifications, int peptideLength)
modificationScores - the PeptideShaker modification scoresdisplayedModifications - list of modifications to displaypeptideLength - the length of the peptidepublic String addGoLink(String goAccession)
goAccession - the GO accession numberpublic String getGoAccessionLink(String goAccession)
goAccession - the GO accession numberpublic HashMap<Integer,ArrayList<ResidueAnnotation>> getResidueAnnotation(long proteinMatchKey, com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters sequenceMatchingPreferences, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, com.compomics.util.experiment.identification.Identification identification, boolean allPeptides, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, boolean enzymatic)
proteinMatchKey - the key of the match of interestsequenceMatchingPreferences - The sequence matching preferencesidentificationFeaturesGenerator - the identification feature
generatormetrics - the metricsidentification - the identificationallPeptides - if true, all peptides are consideredsearchParameters - the search parametersenzymatic - whether enzymatic only or not enzymatic only peptides
should be consideredCopyright © 2021. All rights reserved.