public class EnzymeFactory extends Object
Modifier and Type | Method and Description |
---|---|
void |
addEnzyme(Enzyme enzyme)
Adds an enzyme in the factory.
|
boolean |
enzymeLoaded(String enzyme)
Indicates whether an enzyme is loaded in the factory.
|
Enzyme |
getEnzyme(String enzymeName)
Returns the enzyme corresponding to the given name.
|
ArrayList<Enzyme> |
getEnzymes()
Get the imported enzymes.
|
static EnzymeFactory |
getInstance()
Static method to get an instance of the factory.
|
Enzyme |
getUtilitiesEnzyme(String prideEnzymeName)
Tries to map the enzyme name given in the PRIDE file a utilities/OMSSA
enzyme.
|
void |
importEnzymes(File enzymeFile)
Import enzymes.
|
public static EnzymeFactory getInstance()
public ArrayList<Enzyme> getEnzymes()
public Enzyme getEnzyme(String enzymeName)
enzymeName
- the name of the desired enzymepublic void addEnzyme(Enzyme enzyme)
enzyme
- the new enzyme to addpublic boolean enzymeLoaded(String enzyme)
enzyme
- the name of the enzymepublic void importEnzymes(File enzymeFile) throws org.xmlpull.v1.XmlPullParserException, IOException
enzymeFile
- xml file containing the enzymesorg.xmlpull.v1.XmlPullParserException
- when the parser failedIOException
- when reading the corresponding file failedCopyright © 2013. All Rights Reserved.