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.IMoleculeDownloads the molecular for the given ChemSpider identifier as aIMoleculeobject.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
Listwith ChemSpider identifiers - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.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:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.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 aIMoleculeobject.- Parameters:
csid- the ChemSpider identifiers- Returns:
- the molecule as
IMolecule - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
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
-