public class PtmToPrideMap extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
fileName
The name of the file to save.
|
Constructor and Description |
---|
PtmToPrideMap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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(String modName,
CvTerm cvTerm)
Puts a new mapping in the map.
|
public static final String fileName
public CvTerm getCVTerm(String ptmName)
ptmName
- the PTM namepublic void putCVTerm(String modName, CvTerm cvTerm)
modName
- the modification namecvTerm
- the corresponding cvTermpublic static CvTerm getDefaultCVTerm(String ptmName)
ptmName
- the PTM Name according to the XML filepublic static PtmToPrideMap loadPtmToPrideMap(SearchParameters searchParameters) throws FileNotFoundException, IOException, ClassNotFoundException
FileNotFoundException
IOException
ClassNotFoundException
Copyright © 2013. All Rights Reserved.