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)
Deprecated.
use the getCvTerm method for the PTM instead
|
static PtmToPrideMap |
loadPtmToPrideMap(SearchParameters searchParameters)
Deprecated.
the CV term is now part of the PTM object
|
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 file, null if no mapping
is foundpublic static PtmToPrideMap loadPtmToPrideMap(SearchParameters searchParameters) throws FileNotFoundException, IOException, ClassNotFoundException
searchParameters
- the search parametersFileNotFoundException
- if a FileNotFoundException occursIOException
- if an IOException occursClassNotFoundException
- if a ClassNotFoundException occursCopyright © 2016. All rights reserved.