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

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

public class PtmtableContent
extends 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, Integer peptideFragmentIonType, int aa, double intensity)
          Add intensity.
 int[] getHistogram(int nMod, Integer peptideFragmentIonType, int aa, int bins)
          Get histogram.
 ArrayList<Double> getIntensities(int nMod, Integer peptideFragmentIonType, int aa)
          Get intensity.
 HashMap<Integer,HashMap<Integer,HashMap<Integer,ArrayList<Double>>>> getMap()
          Get the map.
 double getMaxIntensity()
          Returns the max intensity.
 Double getQuantile(int nMod, Integer 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,
                         Integer peptideFragmentIonType,
                         int aa,
                         double intensity)
Add intensity.

Parameters:
nMod -
peptideFragmentIonType -
aa -
intensity -

getIntensities

public ArrayList<Double> getIntensities(int nMod,
                                        Integer peptideFragmentIonType,
                                        int aa)
Get intensity.

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

getQuantile

public Double getQuantile(int nMod,
                          Integer peptideFragmentIonType,
                          int aa,
                          double quantile)
Get the quantile.

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

getHistogram

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

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

getMap

public HashMap<Integer,HashMap<Integer,HashMap<Integer,ArrayList<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 © 2013. All Rights Reserved.