com.compomics.util.pride
Class PtmToPrideMap

java.lang.Object
  extended by com.compomics.util.pride.PtmToPrideMap
All Implemented Interfaces:
Serializable

public class PtmToPrideMap
extends Object
implements Serializable

Map linking user modification names to MOD PSI CV terms

Author:
Marc Vaudel, Harald Barsnes
See Also:
Serialized Form

Field Summary
static String fileName
          The name of the file to save.
 
Constructor Summary
PtmToPrideMap()
          Constructor.
 
Method Summary
 CvTerm getCVTerm(String ptmName)
          Returns the cv term corresponding to the given PTM name.
static CvTerm getDefaultCVTerm(String ptmName)
          Returns the default cvTerm of a modification when it exists.
 void putCVTerm(String modName, CvTerm cvTerm)
          Puts a new mapping in the map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

public static String fileName
The name of the file to save.

Constructor Detail

PtmToPrideMap

public PtmToPrideMap()
Constructor.

Method Detail

getCVTerm

public CvTerm getCVTerm(String ptmName)
Returns the cv term corresponding to the given PTM name. Null if not found.

Parameters:
ptmName - the ptm name
Returns:
the corresponding cv term

putCVTerm

public void putCVTerm(String modName,
                      CvTerm cvTerm)
Puts a new mapping in the map. If the modification name is already loaded it will be silently overwritten.

Parameters:
modName - the modification name
cvTerm - the corresponding cvTerm

getDefaultCVTerm

public static CvTerm getDefaultCVTerm(String ptmName)
Returns the default cvTerm of a modification when it exists.

Parameters:
ptmName - the ptm Name according to the xml file
Returns:
a default CV term


Copyright © 2012. All Rights Reserved.