Package org.biojava.nbio.protmod
Class ProteinModificationRegistry
java.lang.Object
org.biojava.nbio.protmod.ProteinModificationRegistry
This class serves as a instance registry by maintaining
a pool of ProteinModification instances.
A list of common protein modifications were preloaded
from an XML file.
- Since:
- 3.0
- Author:
- Jianjiong Gao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallIds()static Set<ProteinModification> static Set<ProteinModification> static Set<ProteinModification> getByComponent(Component comp1, Component... comps) Get ProteinModifications that involves one or more components.static ProteinModificationstatic Set<ProteinModification> getByKeyword(String keyword) static Set<ProteinModification> static Set<ProteinModification> getByPdbccId(String pdbccId) static Set<ProteinModification> getByPsimodId(String psimodId) static Set<ProteinModification> getByResidId(String residId) static voidinit()Initialization the static variables and register common modifications.static voidinit(InputStream inStream) Initialization the static variables and register common modifications.static voidregister(ProteinModification modification) Register a new ProteinModification.static voidunregister(ProteinModification modification) Remove a modification from registry.
-
Constructor Details
-
ProteinModificationRegistry
public ProteinModificationRegistry()
-
-
Method Details
-
init
Initialization the static variables and register common modifications. -
init
Initialization the static variables and register common modifications. Allows external user to provide alternative ptm_list.xml file instead of the one contained in this jar file.- Parameters:
inStream- InputStream to a XML file containing the list of PTMs (as in ptm_list.xml)
-
register
Register a new ProteinModification. -
unregister
Remove a modification from registry.- Parameters:
modification-
-
getById
- Parameters:
id- modification ID.- Returns:
- ProteinModification that has the corresponding ID.
-
getByResidId
- Parameters:
residId- RESID ID.- Returns:
- a set of ProteinModifications that have the RESID ID.
-
getByPsimodId
- Parameters:
psimodId- PSI-MOD ID.- Returns:
- a set of ProteinModifications that have the PSI-MOD ID.
-
getByPdbccId
- Parameters:
pdbccId- Protein Data Bank Chemical Component ID.- Returns:
- a set of ProteinModifications that have the PDBCC ID.
-
getByKeyword
- Parameters:
keyword- a keyword.- Returns:
- a set of ProteinModifications that have the keyword.
-
getByComponent
Get ProteinModifications that involves one or more components. -
allModifications
- Returns:
- set of all registered ProteinModifications.
-
getByCategory
- Parameters:
cat-ModificationCategory.- Returns:
- set of registered ProteinModifications in a particular category.
-
getByOccurrenceType
- Parameters:
occ-ModificationOccurrenceType.- Returns:
- set of registered ProteinModifications of a particular occurrence type.
-
allIds
- Returns:
- set of IDs of all registered ProteinModifications.
-
allPdbccIds
- Returns:
- set of PDBCC IDs of all registered ProteinModifications.
-
allResidIds
- Returns:
- set of RESID IDs of all registered ProteinModifications.
-
allPsimodIds
- Returns:
- set of PSI-MOD IDs of all registered ProteinModifications.
-
allComponents
- Returns:
- set of components involved in all registered ProteinModifications.
-
allKeywords
- Returns:
- set of keywords of all registered ProteinModifications.
-