-
See Also
- ServiceExecute
- ServiceConnect
-
- Service Connections
- ChemSpider
- PubChem
-
-
See Also
- ServiceExecute
- ServiceConnect
-
- Service Connections
- ChemSpider
- PubChem
-
See Also
Open PHACTS
Connecting & Authenticating
Requests
Compound Information
"CompoundInformation" — information about one or more compounds
| "URI" | (required) | a compound URI or List of URIs | |
| "InChI" | None | InChI compound identifier | |
| "InChIKey" | None | InChIKey compound identifier | |
| "SMILES" | None | SMILES compound identifier |
Number of Class Members from a Compound
"CompoundClassMembersCount" — the number of compounds classified with the given class in the supported hierarchies. Currently, the only supported hierarchy is the ChEBI Ontology.
| "URI" | (required) | a compound URI or List of URIs | |
| "InChI" | None | InChI string | |
| "InChIKey" | None | InChIKey string | |
| "SMILES" | None | SMILES string |
List of Class Members from a Compound
"CompoundClassMembersList" — a list of compounds classified with the given class in the supported hierarchies. Currently, the only supported hierarchy is the ChEBI Ontology.
| "URI" | (required) | a compound URI or List of URIs | |
| "InChI" | None | InChI string | |
| "InChIKey" | None | InChIKey string | |
| "SMILES" | None | SMILES string | |
| "StartIndex" | 1 | start index | |
| MaxItems | 10 | number of elements to return | |
| "SortBy" | None | variable to sort by |
Classes of a Compound
"CompoundClassifications" — the classes the given compound URI has been classified with. Currently supported hierarchies are the ChEBI Ontology and the Gene Ontology.
| "URI" | (required) | a compound URI or List of URIs | |
| "InChI" | None | InChI string | |
| "InChIKey" | None | InChIKey string | |
| "SMILES" | None | SMILES string |
Compound URI from InChI, InChiKey or SMILES
"GetURI" — a ChemSpider URI corresponding to the given InChI, InChIKey, or SMILES string
| "InChI" | None | InChI string | |
| "InChIKey" | None | InChIKey string | |
| "SMILES" | None | SMILES string |
Only one type of identifier can be used as an input.
Target Information
"TargetInformation" — information about one or more targets
| "URI" | (required) | a compound URI or List of URIs |
Number of Class Members from a Target
"TargetClassMembersCount" — The number of targets classified with the given class in the supported hierarchies. Currently supported hierarchies are the Enzyme Classification, the ChEMBL Target Tree, and the Gene Ontology.
| "URI" | (required) | a compound URI or List of URIs | |
| "TargetOrganism" | None | a literal organism in ChEMBL | |
| "TargetOrganismURI" | None | an organism URI from Uniprot |
List of Class Members from a Target
"TargetClassMembersList" — a list of targets classified with the given class in the supported hierarchies. Currently supported hierarchies are the Enzyme Classification, the ChEMBL Target Tree, and the Gene Ontology.
| "URI" | (required) | a compound URI or List of URIs | |
| "TargetOrganism" | None | a literal organism in ChEMBL | |
| "TargetOrganismURI" | None | an organism URI from Uniprot | |
| "StartIndex" | 1 | start index | |
| MaxItems | 10 | number of elements to return | |
| "SortBy" | None | the desired variable to sort by |
List of Target Types
"TargetTypes" — a list of target types in the LDC
Pathway Information
"PathwayInformation" — information about a single pathway
| "URI" | (required) | a pathway URI |
List of Compounds from a Pathway
"PathwayCompounds" — a list of compounds that are part of the pathway specified
| "URI" | (required) | a pathway URI |
Pathway Organisms
"PathwayOrganisms" — a list of organism URIs and labels for which pathway data is available
| "StartIndex" | 1 | start index | |
| MaxItems | 10 | number of elements to return | |
| "SortBy" | None | the desired variable to sort by |
Search by Similarity
"StructureSearchBySimilarity" — a set of ChemSpider compound URLs similar to the input molecule according to the specified algorithm and threshold
| "Molecule" | (required) | a SMILES string | |
| "SimilarityType" | None | "Tanimoto", "Tversky", or "Euclidian" | |
| "Threshold" | None | real number from 0 to 1 | |
| "Alpha" | None | real number from 0 to 1 (available only for Tversky metric) | |
| "Beta" | None | real number from 0 to 1 (available only for Tversky metric) | |
| "StartIndex" | 1 | start index | |
| MaxItems | 10 | number of elements to return |
Search by Substructure
"StructureSearchBySubstructure" — a set of ChemSpider compound URLs that contain the specified structure
| "Molecule" | (required) | a SMILES string | |
| "MolType" | None | either "SMILES" or "SMARTS" | |
| "StartIndex" | 1 | start index | |
| MaxItems | 10 | number of elements to return |
Parameter details
| "ChildNode" | child node | |
| "CompoundName" | compound name | |
| "CWCompound" | cW compound | |
| "Item" | item | |
| "NodeURI" | node URI | |
| "OCRSCompound" | OCRS compound |
| "ChildNode" | child node | |
| "Item" | item | |
| "NodeURI" | node URI | |
| "ChEMBLName" | ChEMBL name | |
| "ChEMBLOrganism" | ChEMBL organism | |
| "ChEMBLTarget" | ChEMBL target | |
| "G" | G | |
| "G2" | G2 | |
| "IMSUniprotTargetURI" | IMS uniprot target URI | |
| "Mapping" | mapping | |
| "MappingDataset" | mapping dataset | |
| "MappingName" | mapping name | |
| "MappingOrg" | mapping org | |
| "MappingOrgURI" | mapping org URI | |
| "MappingType" | mapping type | |
| "TargetType" | target type | |
| "UniprotName" | Uniprot name | |
| "UniprotOrganism" | Uniprot organism | |
| "UniprotTarget" | Uniprot target |
| "Count" | count | |
| "Item" | item | |
| "Label" | label | |
| "Pathway" | pathway |
Examples
Basic Examples (5)
Create a new connection by launching an authentication dialog:
op = ServiceConnect["OpenPHACTS"]Find the compound URI that corresponds to a given identifier:
op["GetURI", "SMILES" -> "CCCC(C(N=C(N1)C2=C(OCC)C=CC(S(N3CCN(CC3)C)(=O)=O)=C2)=C4C1=O)=NN4C"]op["GetURI", "InChI" -> "InChI=1S/C8H9NO2/c1-6(10)9-7-2-4-8(11)5-3-7/h2-5,11H,1H3,(H,9,10)"]Find URIs for structures containing a given substructure:
op["StructureSearchBySubstructure", {"Molecule" -> "ClC1=CC=C(Cl)C=C1", MaxItems -> 5}]Find similar structures within a given threshold:
op["StructureSearchBySimilarity", {"Molecule" -> "ClC(C=C1)=CC=C1C(C(Cl)(Cl)Cl)C2=CC=C(Cl)C=C2", "SimilarityType" -> "Tanimoto", "Threshold" -> 0.75, MaxItems -> 5}]Get detailed information about a compound:
sorafenib = ServiceExecute["OpenPHACTS", "CompoundInformation", "URI" -> "http://www.conceptwiki.org/concept/38932552-111f-4a4e-a46a-4ed1d7bdf9d5"];Keys[sorafenib]//Normalsorafenib[[3]]Get the number of compounds in a given class:
ServiceExecute["OpenPHACTS", "CompoundClassMembersCount", "URI" -> "http://purl.obolibrary.org/obo/CHEBI_24431"]Get a list of compounds in a given class:
ServiceExecute["OpenPHACTS", "CompoundClassMembersList", {"URI" -> "http://purl.obolibrary.org/obo/CHEBI_24431", MaxItems -> 5}]Get a list of ChEMBL target types and counts for each type:
ServiceExecute["OpenPHACTS", "TargetTypes"]Get a list of targets in a given class:
ServiceExecute["OpenPHACTS", "TargetClassMembersList", "URI" -> "http://purl.uniprot.org/enzyme/6.2.-.-"]Get a list of pathways stored in the linked data cache (LDC):
ServiceExecute["OpenPHACTS", "PathwayOrganisms"]Get a list of compounds that are explicitly mentioned in the specified pathway:
ServiceExecute["OpenPHACTS", "PathwayCompounds", "URI" -> "http://identifiers.org/wikipathways/WP1002"]