com.compomics.util.experiment.quantification.reporterion.quantification
Class PsmQuantification

java.lang.Object
  extended by com.compomics.util.experiment.personalization.ExperimentObject
      extended by com.compomics.util.experiment.quantification.reporterion.quantification.PsmQuantification
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PsmQuantification
extends ExperimentObject

This class models the quantification at the MS2 spectrum level.

Author:
Marc Vaudel
See Also:
Serialized Form

Constructor Summary
PsmQuantification(java.lang.String spectrumKey, java.lang.String spectrumMatchKey)
          Constructor for a spectrumQuantification
 
Method Summary
 void addIonMatch(int reporterIndex, IonMatch match)
          Method to add a match between a peak and a reporter ion
 void addRatio(int reporterIndex, Ratio ratio)
          Method to add an estimated ratio
 java.lang.String getKey()
          Getter for the spectrum key
 java.util.HashMap<java.lang.Integer,Ratio> getRatios()
          Getter for the estimated ratio
 java.util.HashMap<java.lang.Integer,IonMatch> getReporterMatches()
          Getter for the reporter matches
 java.lang.String getSpectrumMatchKey()
          Getter for the key of the spectrum match
 
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, getParameterKey, getUrParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsmQuantification

public PsmQuantification(java.lang.String spectrumKey,
                         java.lang.String spectrumMatchKey)
Constructor for a spectrumQuantification

Parameters:
spectrumKey - the corresponding spectrum
Method Detail

addIonMatch

public void addIonMatch(int reporterIndex,
                        IonMatch match)
Method to add a match between a peak and a reporter ion

Parameters:
reporterIndex - static index of the reporter ion
match - The corresponding ion match

addRatio

public void addRatio(int reporterIndex,
                     Ratio ratio)
Method to add an estimated ratio

Parameters:
reporterIndex - The static index of the reporter ion which is divided by the reference
ratio - The estimated ratio

getKey

public java.lang.String getKey()
Getter for the spectrum key

Returns:
the corresponding spectrum key

getSpectrumMatchKey

public java.lang.String getSpectrumMatchKey()
Getter for the key of the spectrum match

Returns:

getReporterMatches

public java.util.HashMap<java.lang.Integer,IonMatch> getReporterMatches()
Getter for the reporter matches

Returns:
matches between reporters and peaks

getRatios

public java.util.HashMap<java.lang.Integer,Ratio> getRatios()
Getter for the estimated ratio

Returns:
map containing the reporter static index and the estimated ratio


Copyright © 2011. All Rights Reserved.