Package net.bioclipse.managers
Class PubChemManager
java.lang.Object
net.bioclipse.managers.PubChemManager
- All Implemented Interfaces:
IBactingManager,net.bioclipse.managers.business.IBioclipseManager
Bioclipse manager that provides functionality to interact with the
PubChem database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoi()Lists the DOIs of the articles associated to this manager.net.bioclipse.core.domain.IMoleculeList<net.bioclipse.core.domain.IMolecule>net.bioclipse.core.domain.IMoleculedownload3d(Integer cid) List<net.bioclipse.core.domain.IMolecule>download3d(List<Integer> cids) downloadAsString(Integer cid) net.bioclipse.rdf.business.IRDFStoredownloadRDF(Integer cid, net.bioclipse.rdf.business.IRDFStore store) loadCompound(int cid, String target) loadCompound3d(int cid, String target) loadCompoundRDF(int cid, String target) Searches PubChem for compounds using the given query.
-
Constructor Details
-
PubChemManager
Creates a newPubChemManager.- Parameters:
workspaceRoot- location of the workspace, e.g. "."
-
-
Method Details
-
search
public List<Integer> search(String query) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException Searches PubChem for compounds using the given query.- Parameters:
query- the string to search in PubChem- Returns:
- a Java
Listof PubChem compound identifiers - 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
-
download
public net.bioclipse.core.domain.IMolecule download(Integer cid) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
downloadAsString
public String downloadAsString(Integer cid) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
downloadRDF
public net.bioclipse.rdf.business.IRDFStore downloadRDF(Integer cid, net.bioclipse.rdf.business.IRDFStore store) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
download3d
public net.bioclipse.core.domain.IMolecule download3d(Integer cid) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
download3dAsString
public String download3dAsString(Integer cid) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
download
public List<net.bioclipse.core.domain.IMolecule> download(List<Integer> cids) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
download3d
public List<net.bioclipse.core.domain.IMolecule> download3d(List<Integer> cids) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
loadCompound
public String loadCompound(int cid, String target) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
loadCompound3d
public String loadCompound3d(int cid, String target) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-
loadCompoundRDF
public String loadCompoundRDF(int cid, String target) throws IOException, net.bioclipse.core.business.BioclipseException, org.eclipse.core.runtime.CoreException - Throws:
IOExceptionnet.bioclipse.core.business.BioclipseExceptionorg.eclipse.core.runtime.CoreException
-