com.compomics.util.experiment.identification.ptm
Class PtmtableContent

java.lang.Object
  extended by com.compomics.util.experiment.identification.ptm.PtmtableContent

public class PtmtableContent
extends java.lang.Object

Convenience class for the content of a ptm table

Author:
Marc Vaudel, Harald Barsnes

Constructor Summary
PtmtableContent()
          Constructor.
 
Method Summary
 void addAll(PtmtableContent anotherContent)
          Add all.
 void addIntensity(int nMod, PeptideFragmentIon.PeptideFragmentIonType peptideFragmentIonType, int aa, double intensity)
          Add intensity.
 int[] getHistogram(int nMod, PeptideFragmentIon.PeptideFragmentIonType peptideFragmentIonType, int aa, int bins)
          Get histogram.
 java.util.ArrayList<java.lang.Double> getIntensities(int nMod, PeptideFragmentIon.PeptideFragmentIonType peptideFragmentIonType, int aa)
          Get intensity.
 java.util.HashMap<java.lang.Integer,java.util.HashMap<PeptideFragmentIon.PeptideFragmentIonType,java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.lang.Double>>>> getMap()
          Get the map.
 double getMaxIntensity()
          Returns the max intensity.
 java.lang.Double getQuantile(int nMod, PeptideFragmentIon.PeptideFragmentIonType peptideFragmentIonType, int aa, double quantile)
          Get the quantile.
 void normalize()
          Normalize intesities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PtmtableContent

public PtmtableContent()
Constructor.

Method Detail

addIntensity

public void addIntensity(int nMod,
                         PeptideFragmentIon.PeptideFragmentIonType peptideFragmentIonType,
                         int aa,
                         double intensity)
Add intensity.

Parameters:
nMod -
peptideFragmentIonType -
aa -
intensity -

getIntensities

public java.util.ArrayList<java.lang.Double> getIntensities(int nMod,
                                                            PeptideFragmentIon.PeptideFragmentIonType peptideFragmentIonType,
                                                            int aa)
Get intensity.

Parameters:
nMod -
peptideFragmentIonType -
aa -
Returns:
the list of intensities

getQuantile

public java.lang.Double getQuantile(int nMod,
                                    PeptideFragmentIon.PeptideFragmentIonType peptideFragmentIonType,
                                    int aa,
                                    double quantile)
Get the quantile.

Parameters:
nMod -
peptideFragmentIonType -
aa -
quantile -
Returns:
the quantile

getHistogram

public int[] getHistogram(int nMod,
                          PeptideFragmentIon.PeptideFragmentIonType peptideFragmentIonType,
                          int aa,
                          int bins)
Get histogram.

Parameters:
nMod -
peptideFragmentIonType -
aa -
bins -
Returns:
the histogram

getMap

public java.util.HashMap<java.lang.Integer,java.util.HashMap<PeptideFragmentIon.PeptideFragmentIonType,java.util.HashMap<java.lang.Integer,java.util.ArrayList<java.lang.Double>>>> getMap()
Get the map.

Returns:
the map

addAll

public void addAll(PtmtableContent anotherContent)
Add all.

Parameters:
anotherContent -

normalize

public void normalize()
Normalize intesities.


getMaxIntensity

public double getMaxIntensity()
Returns the max intensity.

Returns:
the max intensity


Copyright © 2012. All Rights Reserved.