public class PtmToPrideMap
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
fileName
The name of the file to save.
|
| Constructor and Description |
|---|
PtmToPrideMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CvTerm |
getCVTerm(java.lang.String ptmName)
Returns the CV term corresponding to the given PTM name.
|
static CvTerm |
getDefaultCVTerm(java.lang.String ptmName)
Returns the default cvTerm of a modification when it exists.
|
static PtmToPrideMap |
loadPtmToPrideMap(SearchParameters searchParameters)
Loads the PRIDE to PTM map from the user folder or creates a new one if
the file is not present.
|
void |
putCVTerm(java.lang.String modName,
CvTerm cvTerm)
Puts a new mapping in the map.
|
public static final java.lang.String fileName
public CvTerm getCVTerm(java.lang.String ptmName)
ptmName - the PTM namepublic void putCVTerm(java.lang.String modName,
CvTerm cvTerm)
modName - the modification namecvTerm - the corresponding cvTermpublic static CvTerm getDefaultCVTerm(java.lang.String ptmName)
ptmName - the PTM Name according to the XML filepublic static PtmToPrideMap loadPtmToPrideMap(SearchParameters searchParameters) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
searchParameters - the search parametersjava.io.FileNotFoundExceptionjava.io.IOExceptionjava.lang.ClassNotFoundExceptionCopyright © 2014. All Rights Reserved.