Package net.bioclipse.managers
Class InChIManager
java.lang.Object
net.bioclipse.managers.InChIManager
- All Implemented Interfaces:
IBactingManager,net.bioclipse.managers.business.IBioclipseManager
Bioclipse manager that provides functionality to create and
validate InChI and InChIKeys.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.openscience.cdk.inchi.InChIGeneratorFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks the validity of the InChI.booleanChecks the validity of the InChIkey.booleancheckStrict(String inchi) Checks the validity of the InChI using more strict rules.doi()Lists the DOIs of the articles associated to this manager.net.bioclipse.inchi.InChIgenerate(net.bioclipse.core.domain.IMolecule molecule) Generates an InChI for the givenIMolecule.net.bioclipse.inchi.InChIGenerates an InChI for the givenIMolecule, using the given options.booleanReturns true if the InChI library can be used.booleanisLoaded()Returns true if the InChI library was properly loaded.load()Loads the InChI library.options()
-
Field Details
-
factory
protected org.openscience.cdk.inchi.InChIGeneratorFactory factory
-
-
Constructor Details
-
InChIManager
Creates a newInChIManager.- Parameters:
workspaceRoot- location of the workspace, e.g. "."
-
-
Method Details
-
load
Loads the InChI library.- Returns:
- a
Stringthat reflects the success of loading
-
options
-
generate
public net.bioclipse.inchi.InChI generate(net.bioclipse.core.domain.IMolecule molecule, String options) throws Exception Generates an InChI for the givenIMolecule, using the given options. This options String consists of one or more, space-delimited options, such as FixedH.- Parameters:
molecule- theIMoleculeto create the InChI for- Returns:
- an
InChIobject - Throws:
Exception
-
generate
public net.bioclipse.inchi.InChI generate(net.bioclipse.core.domain.IMolecule molecule) throws Exception Generates an InChI for the givenIMolecule.- Parameters:
molecule- theIMoleculeto create the InChI for- Returns:
- an
InChIobject - Throws:
Exception
-
isLoaded
public boolean isLoaded()Returns true if the InChI library was properly loaded.- Returns:
- true if the InChI library was properly loaded.
-
checkKey
Checks the validity of the InChIkey.- Parameters:
inchikey- the InChIKey to test- Returns:
- true if the key is valid
- Throws:
net.bioclipse.core.business.BioclipseException
-
check
Checks the validity of the InChI.- Parameters:
inchi- the InChI to test- Returns:
- true if the InChI is valid
- Throws:
net.bioclipse.core.business.BioclipseException
-
checkStrict
Checks the validity of the InChI using more strict rules.- Parameters:
inchi- the InChI to test- Returns:
- true if the InChI is valid
- Throws:
net.bioclipse.core.business.BioclipseException
-
isAvailable
public boolean isAvailable()Returns true if the InChI library can be used.- Returns:
- true if the InChI library can be used.
-
getManagerName
- Specified by:
getManagerNamein interfacenet.bioclipse.managers.business.IBioclipseManager
-
doi
Description copied from interface:IBactingManagerLists the DOIs of the articles associated to this manager.- Specified by:
doiin interfaceIBactingManager- Returns:
- a
Listof String with DOIs
-