public class AScore extends Object
| Constructor and Description |
|---|
AScore() |
| Modifier and Type | Method and Description |
|---|---|
static HashMap<Integer,Double> |
getAScore(Peptide peptide,
ArrayList<PTM> ptms,
MSnSpectrum spectrum,
AnnotationSettings annotationPreferences,
SpecificAnnotationSettings specificAnnotationPreferences,
boolean accountNeutralLosses,
SequenceMatchingPreferences sequenceMatchingPreferences,
SequenceMatchingPreferences ptmSequenceMatchingPreferences,
PeptideSpectrumAnnotator spectrumAnnotator)
Returns the A-score for the best PTM location.
|
static HashMap<Double,ArrayList<Integer>> |
getPeptideScoreToPositionMap(HashMap<Integer,HashMap<Integer,Double>> positionToScoreMap)
Estimates the peptide score for every modification localization and
returns a map score > localization.
|
static HashMap<Integer,HashMap<Integer,Double>> |
getPositionToScoreMap(Peptide peptide,
Peptide noModPeptide,
ArrayList<Integer> possibleSites,
MSnSpectrum spectrum,
HashMap<Integer,MSnSpectrum> spectrumMap,
AnnotationSettings annotationPreferences,
SpecificAnnotationSettings specificAnnotationPreferences,
PeptideSpectrumAnnotator spectrumAnnotator,
PTM refPTM)
Returns a map PTM localization > score.
|
static HashMap<Integer,MSnSpectrum> |
getReducedSpectra(MSnSpectrum baseSpectrum,
double mzTolerance)
Generates a map containing the spectra filtered on intensity with a basis
of 20*m/z tolerance indexed by the depth used.
|
static HashMap<Integer,MSnSpectrum> |
getReducedSpectra(MSnSpectrum baseSpectrum,
double mzTolerance,
int depthMax)
Generates a map containing the spectra filtered on intensity with a basis
of 20*m/z tolerance indexed by the depth used.
|
public static HashMap<Integer,Double> getAScore(Peptide peptide, ArrayList<PTM> ptms, MSnSpectrum spectrum, AnnotationSettings annotationPreferences, SpecificAnnotationSettings specificAnnotationPreferences, boolean accountNeutralLosses, SequenceMatchingPreferences sequenceMatchingPreferences, SequenceMatchingPreferences ptmSequenceMatchingPreferences, PeptideSpectrumAnnotator spectrumAnnotator) throws IOException, InterruptedException, ClassNotFoundException, SQLException, org.apache.commons.math.MathException
peptide - the peptide of interestptms - the PTMs to score, for instance different phosphorylations
(the PTMs are considered as indistinguishable, i.e. of same mass).spectrum - the corresponding spectrumannotationPreferences - the global annotation preferencesspecificAnnotationPreferences - the annotation preferences specific
to this peptide and spectrumaccountNeutralLosses - if false, neutral losses available in the
specific annotation preferences will be ignoredsequenceMatchingPreferences - the sequence matching preferences for
peptide to protein mappingptmSequenceMatchingPreferences - the sequence matching preferences
for PTM to peptide mappingspectrumAnnotator - a spectrum annotator to annotate the spectraIOException - exception thrown whenever an error occurred
while reading or writing a fileInterruptedException - exception thrown whenever a
threading issue occurred while scoring the PTMClassNotFoundException - exception thrown whenever an
error occurred while deserializing an object from the protein tree (the
protein sequence index)SQLException - exception thrown whenever an error occurred
while interacting with the protein treeorg.apache.commons.math.MathException - exception thrown whenever a
math error occurred while computing the score.public static HashMap<Double,ArrayList<Integer>> getPeptideScoreToPositionMap(HashMap<Integer,HashMap<Integer,Double>> positionToScoreMap)
positionToScoreMap - the position to score mappublic static HashMap<Integer,HashMap<Integer,Double>> getPositionToScoreMap(Peptide peptide, Peptide noModPeptide, ArrayList<Integer> possibleSites, MSnSpectrum spectrum, HashMap<Integer,MSnSpectrum> spectrumMap, AnnotationSettings annotationPreferences, SpecificAnnotationSettings specificAnnotationPreferences, PeptideSpectrumAnnotator spectrumAnnotator, PTM refPTM) throws org.apache.commons.math.MathException
peptide - the peptide of interestnoModPeptide - the peptide without the variable modification of
interestrefPTM - the PTM of interestannotationPreferences - the global annotation preferencesspecificAnnotationPreferences - the annotation preferences specific
to this peptide and spectrumspectrumAnnotator - the spectrum annotator which should be used to
annotate the spectrumspectrum - the spectrum of interestspectrumMap - the map of the extracted spectra: depth > extracted
spectrumpossibleSites - the possible modification sitesorg.apache.commons.math.MathException - exception thrown whenever a
math error occurred while computing the score.public static HashMap<Integer,MSnSpectrum> getReducedSpectra(MSnSpectrum baseSpectrum, double mzTolerance)
baseSpectrum - the base spectrummzTolerance - the m/z tolerancepublic static HashMap<Integer,MSnSpectrum> getReducedSpectra(MSnSpectrum baseSpectrum, double mzTolerance, int depthMax)
baseSpectrum - the base spectrummzTolerance - the m/z tolerancedepthMax - the depth to look into (10 for A-score). If -1 the
maximal depth will be usedCopyright © 2016. All rights reserved.