public class ProteinModificationRegistry extends Object
Constructor and Description |
---|
ProteinModificationRegistry() |
Modifier and Type | Method and Description |
---|---|
static Set<Component> |
allComponents() |
static Set<String> |
allIds() |
static Set<String> |
allKeywords() |
static Set<ProteinModification> |
allModifications() |
static Set<String> |
allPdbccIds() |
static Set<String> |
allPsimodIds() |
static Set<String> |
allResidIds() |
static Set<ProteinModification> |
getByCategory(ModificationCategory cat) |
static Set<ProteinModification> |
getByComponent(Component comp1,
Component... comps)
Get ProteinModifications that involves one or more components.
|
static ProteinModification |
getById(String id) |
static Set<ProteinModification> |
getByKeyword(String keyword) |
static Set<ProteinModification> |
getByOccurrenceType(ModificationOccurrenceType occ) |
static Set<ProteinModification> |
getByPdbccId(String pdbccId) |
static Set<ProteinModification> |
getByPsimodId(String psimodId) |
static Set<ProteinModification> |
getByResidId(String residId) |
static void |
init()
Initialization the static variables and register common modifications.
|
static void |
init(InputStream inStream)
Initialization the static variables and register common modifications.
|
static void |
register(ProteinModification modification)
Register a new ProteinModification.
|
static void |
unregister(ProteinModification modification)
Remove a modification from registry.
|
public ProteinModificationRegistry()
public static void init()
public static void init(InputStream inStream)
inStream
- InputStream to a XML file containing the list of PTMs (as in ptm_list.xml)public static void register(ProteinModification modification)
public static void unregister(ProteinModification modification)
mod
- public static ProteinModification getById(String id)
id
- modification ID.public static Set<ProteinModification> getByResidId(String residId)
residId
- RESID ID.public static Set<ProteinModification> getByPsimodId(String psimodId)
psimodId
- PSI-MOD ID.public static Set<ProteinModification> getByPdbccId(String pdbccId)
pdbccId
- Protein Data Bank Chemical Component ID.public static Set<ProteinModification> getByKeyword(String keyword)
keyword
- a keyword.public static Set<ProteinModification> getByComponent(Component comp1, Component... comps)
public static Set<ProteinModification> allModifications()
public static Set<ProteinModification> getByCategory(ModificationCategory cat)
cat
- ModificationCategory
.public static Set<ProteinModification> getByOccurrenceType(ModificationOccurrenceType occ)
occ
- ModificationOccurrenceType
.public static Set<String> allIds()
public static Set<String> allPdbccIds()
public static Set<String> allResidIds()
public static Set<String> allPsimodIds()
public static Set<Component> allComponents()
public static Set<String> allKeywords()
Copyright © 2000–2018 BioJava. All rights reserved.