public class PhosphoRS extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_DEPTH
The maximal depth to use per window (8 in the original paper).
|
static int |
MIN_DEPTH
The minimal depth to use per window.
|
Constructor and Description |
---|
PhosphoRS() |
Modifier and Type | Method and Description |
---|---|
static HashMap<Integer,Double> |
getSequenceProbabilities(Peptide peptide,
ArrayList<PTM> ptms,
MSnSpectrum spectrum,
AnnotationSettings annotationSettings,
SpecificAnnotationSettings specificAnnotationSettings,
boolean accountNeutralLosses,
SequenceMatchingPreferences sequenceMatchingPreferences,
SequenceMatchingPreferences ptmSequenceMatchingPreferences,
PeptideSpectrumAnnotator spectrumAnnotator)
Returns the PhosphoRS sequence probabilities for the PTM possible
locations.
|
public static final int MAX_DEPTH
public static final int MIN_DEPTH
public static HashMap<Integer,Double> getSequenceProbabilities(Peptide peptide, ArrayList<PTM> ptms, MSnSpectrum spectrum, AnnotationSettings annotationSettings, SpecificAnnotationSettings specificAnnotationSettings, 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 spectrumannotationSettings
- the global annotation settingsspecificAnnotationSettings
- the annotation settings specific to
this peptide and spectrumaccountNeutralLosses
- a boolean indicating whether or not the
calculation shall account for neutral losses.sequenceMatchingPreferences
- the sequence matching preferences for
peptide to protein mappingptmSequenceMatchingPreferences
- the sequence matching preferences
for PTM to peptide mappingspectrumAnnotator
- the peptide spectrum annotator to use for
spectrum annotation, can be nullIOException
- 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.Copyright © 2016. All rights reserved.