|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.protein.ModificationFactory
public class ModificationFactory
This class can be used to generate a Modification instance from a code or title.
Modification information is loaded from files or database, as specified in the two available
constructors for this Factory.
Method Summary | |
---|---|
static String[] |
getAllModificationTitles()
This method returns all modification titles known to the Factory. |
static Modification |
getModification(String aTitle,
int aLocation)
This method will return a Modification instance from a title. |
static Modification |
getModification(String aCode,
String aResidue,
int aLocation)
This method takes a code and a residue (the residue for the N-terminus is NTERMINUS and for the C-terminus CTERMINUS!) and converts this into a Modification instance if possible. |
static String |
modificationConversionToString()
Returns a String representation of the modification title to code mappings. |
static String |
modificationsToString()
Returns a String representation of the modifications. |
static void |
reLoadAllData()
This method can be used to refresh all data from the data store indicated in the ModificationFactory.properties file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Modification getModification(String aTitle, int aLocation)
aTitle
- String with the title for a modification.aLocation
- int with the location for the modification.
public static Modification getModification(String aCode, String aResidue, int aLocation)
aCode
- String with the code for the modificationaResidue
- String with the residue carrying the modification (the residue for the N-terminus
is defined in the constant NTERMINUS and for the C-terminus in the constant CTERMINUS!).aLocation
- int with the location for the modification.
public static String modificationsToString()
public static String modificationConversionToString()
public static void reLoadAllData()
public static String[] getAllModificationTitles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |