public final class DataAccessUtilities extends Object
DataAccessUtilities provides methods for getting information out from the core objects.
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
Modifier and Type | Method and Description |
---|---|
static List<CvParam> |
getCvParam(ParamGroup paramGroup,
String cvLabel,
String accession)
Get cv param by accession number and cv label.
|
static List<CvParam> |
getCvParam(String name,
String cvLabel,
String accession,
String value)
Create a List of Cv Params
|
static int |
getMsLevel(Spectrum spectrum)
Get ms level of a spectrum
|
static int |
getNumberOfPeaks(Spectrum spectrum)
Count the number of peaks of a spectrum
|
static int |
getNumberOfPeptides(Protein ident)
Convenient method for number of peptides
|
static int |
getNumberOfPTMs(Peptide peptide)
Get the number of the modification of a peptide
|
static int |
getNumberOfPTMs(Protein ident)
Get the number of post translational modifications within a protein identification
|
static int |
getNumberOfSubstitutionPTMs(Peptide peptide)
Get the number of substitution modification of a peptide
|
static int |
getNumberOfSubstitutionPTMs(Protein ident)
Get the number of Substitution PTMs for an specific Protein Identification
|
static int |
getNumberOfUniquePeptides(Protein ident)
Convenient method for getting the number of unique peptides.
|
static List<Parameter> |
getParamByName(ParamGroup paramGroup,
String name)
Get a list parameters using a given name.
|
static Peptide |
getPeptide(Protein ident,
int index)
This is convenient method for accessing peptide.
|
static Map<PeptideEvidence,List<Peptide>> |
getPeptideEvidence(List<Peptide> peptides)
Get peptide Evidence for a Lis of Peptide Identifications
|
static Integer |
getPrecursorCharge(List<Precursor> precursors) |
static Integer |
getPrecursorChargeParamGroup(ParamGroup paramGroup)
Get precursor charge from param group
|
static double |
getPrecursorIntensity(Spectrum spectrum)
Get precursor intensity
|
static double |
getPrecursorMz(ParamGroup paramGroup)
Get precursor m/z value
|
static double |
getPrecursorMz(Spectrum spectrum)
Get precursor m/z value
|
static String |
getProjectName(ExperimentMetaData metaData)
Get the project of a experiment
|
static Integer |
getProteinCoverage(Protein protein)
Number of amino acids covered
|
static QuantPeptide |
getQuantPeptide(Protein ident,
int index)
This is convenient method for accessing peptide.
|
static String |
getRetentionTime(uk.ac.ebi.jmzidml.model.mzidml.SpectrumIdentificationItem oldSpectrumIdentification) |
static Score |
getScore(ParamGroup params) |
static List<uk.ac.ebi.pride.utilities.term.SearchEngineCvTermReference> |
getSearchEngineCvTermReference(ParamGroup paramGroup) |
static List<uk.ac.ebi.pride.utilities.term.SearchEngineScoreCvTermReference> |
getSearchEngineScoresCvTermReference(ParamGroup paramGroup) |
static List<uk.ac.ebi.pride.utilities.term.SearchEngineCvTermReference> |
getSearchEngineTypes(ParamGroup paramGroup)
Deprecated.
|
static Double |
getSelectedIonCharge(Precursor precursor,
int index)
Get the ion charge for a selected ion.
|
static Double |
getSelectedIonIntensity(Precursor precursor,
int index)
Get the ion intensity value for a selected ion.
|
static Double |
getSelectedIonMz(Precursor precursor,
int index)
Get the ion m/z value for a selected ion.
|
static double |
getSumOfIntensity(Spectrum spectrum)
Get the sum of all the peak intensities within a spectrum
|
static List<String> |
getTaxonomy(ExperimentMetaData metaData)
Get a list of taxonomy accessions based on a given metadata
|
static boolean |
hasFragmentIon(Peptide peptide)
Check whether peptide has fragment ion information
|
static boolean |
hasFragmentIon(Spectrum spectrum)
Check whether spectrum has fragment ion information
|
public static List<String> getTaxonomy(ExperimentMetaData metaData)
metaData
- meta datapublic static String getProjectName(ExperimentMetaData metaData)
metaData
- experiment metadatapublic static int getNumberOfPeaks(Spectrum spectrum)
spectrum
- spectrumpublic static int getMsLevel(Spectrum spectrum)
spectrum
- spectrumpublic static Integer getPrecursorChargeParamGroup(ParamGroup paramGroup)
paramGroup
- param grouppublic static double getPrecursorMz(Spectrum spectrum)
spectrum
- spectrumpublic static double getPrecursorMz(ParamGroup paramGroup)
paramGroup
- param grouppublic static double getPrecursorIntensity(Spectrum spectrum)
spectrum
- spectrumpublic static double getSumOfIntensity(Spectrum spectrum)
spectrum
- spectrumpublic static Double getSelectedIonCharge(Precursor precursor, int index)
precursor
- precursorindex
- index of the selected ion.public static Double getSelectedIonMz(Precursor precursor, int index)
precursor
- precursorindex
- index of the selected ion.public static Double getSelectedIonIntensity(Precursor precursor, int index)
precursor
- precursorindex
- index of the selected ion.public static Peptide getPeptide(Protein ident, int index)
ident
- identification objectindex
- zero based index.public static QuantPeptide getQuantPeptide(Protein ident, int index)
ident
- identification objectindex
- zero based index.public static int getNumberOfPeptides(Protein ident)
ident
- identification objectpublic static int getNumberOfUniquePeptides(Protein ident)
ident
- identification objectpublic static boolean hasFragmentIon(Spectrum spectrum)
spectrum
- spectrumpublic static boolean hasFragmentIon(Peptide peptide)
peptide
- peptidepublic static int getNumberOfPTMs(Protein ident)
ident
- protein identificationpublic static int getNumberOfSubstitutionPTMs(Protein ident)
ident
- ID of the Protein Identificationpublic static int getNumberOfPTMs(Peptide peptide)
peptide
- Peptide Objectpublic static int getNumberOfSubstitutionPTMs(Peptide peptide)
peptide
- Peptide@Deprecated public static List<uk.ac.ebi.pride.utilities.term.SearchEngineCvTermReference> getSearchEngineTypes(ParamGroup paramGroup)
paramGroup
- parameter grouppublic static Score getScore(ParamGroup params)
public static List<uk.ac.ebi.pride.utilities.term.SearchEngineCvTermReference> getSearchEngineCvTermReference(ParamGroup paramGroup)
public static List<uk.ac.ebi.pride.utilities.term.SearchEngineScoreCvTermReference> getSearchEngineScoresCvTermReference(ParamGroup paramGroup)
public static List<CvParam> getCvParam(ParamGroup paramGroup, String cvLabel, String accession)
paramGroup
- parameter groupcvLabel
- cv label.accession
- cv accession.public static List<CvParam> getCvParam(String name, String cvLabel, String accession, String value)
value
- Value of the CvParamcvLabel
- Label of the CvParamaccession
- Accession of the CvParamname
- Namepublic static List<Parameter> getParamByName(ParamGroup paramGroup, String name)
paramGroup
- parameter groupname
- name stringpublic static Map<PeptideEvidence,List<Peptide>> getPeptideEvidence(List<Peptide> peptides)
peptides
- List of Peptide Identificationspublic static Integer getProteinCoverage(Protein protein)
protein
- Protein to compute the Coveragepublic static String getRetentionTime(uk.ac.ebi.jmzidml.model.mzidml.SpectrumIdentificationItem oldSpectrumIdentification)
Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.