Package net.bioclipse.managers
Class ChemspiderManager
java.lang.Object
net.bioclipse.managers.ChemspiderManager
- All Implemented Interfaces:
IBactingManager
,net.bioclipse.managers.business.IBioclipseManager
Bioclipse manager that provides functionality to interact with the
ChemSpider database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoi()
Lists the DOIs of the articles associated to this manager.net.bioclipse.core.domain.IMolecule
Downloads the molecular for the given ChemSpider identifier as aIMolecule
object.downloadAsString
(Integer csid) Downloads the molecular for the given ChemSpider identifier as an SD file.Looks up ChemSpider identifiers for the given InChIKey.
-
Constructor Details
-
ChemspiderManager
Creates a newChemspiderManager
.- Parameters:
workspaceRoot
- location of the workspace, e.g. "."
-
-
Method Details
-
resolve
public List<Integer> resolve(String inchiKey) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException Looks up ChemSpider identifiers for the given InChIKey.- Parameters:
inchiKey
- InChIKey to resolve- Returns:
- a Java
List
with ChemSpider identifiers - Throws:
IOException
net.bioclipse.core.business.BioclipseException
org.eclipse.core.runtime.CoreException
-
downloadAsString
public String downloadAsString(Integer csid) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException Downloads the molecular for the given ChemSpider identifier as an SD file.- Parameters:
csid
- the ChemSpider identifiers- Returns:
- the molecule as
String
- Throws:
IOException
net.bioclipse.core.business.BioclipseException
org.eclipse.core.runtime.CoreException
-
download
public net.bioclipse.core.domain.IMolecule download(Integer csid) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException Downloads the molecular for the given ChemSpider identifier as aIMolecule
object.- Parameters:
csid
- the ChemSpider identifiers- Returns:
- the molecule as
IMolecule
- Throws:
IOException
net.bioclipse.core.business.BioclipseException
org.eclipse.core.runtime.CoreException
-
getManagerName
- Specified by:
getManagerName
in interfacenet.bioclipse.managers.business.IBioclipseManager
-
doi
Description copied from interface:IBactingManager
Lists the DOIs of the articles associated to this manager.- Specified by:
doi
in interfaceIBactingManager
- Returns:
- a
List
of String with DOIs
-