Description Usage Arguments Details Value Author(s) References Examples
View source: R/ChemicalCuration.R
Retrieves the various types of literature co-associations from PubChem using display download. NOTE many results are truncated and functionality is preliminary. Thanks to Paul Thiessen, Leonid Zaslavsky and Evan Bolton from PubChem team for assistance.
1 | getPcCand.coassoc(query, query_type, file_name="", timeout=30, test=FALSE)
|
query |
Input identifier, either a CID, MeSH ID or Gene symbol (as string) to search |
query_type |
Type of query. Accepted are currently |
file_name |
File name for the CSV output. If empty, this is auto-created
based on |
timeout |
The timeout, in seconds. |
test |
Default |
PubChem have a range of literature co-association data that may be useful for identification purposes, see for example https://pubchem.ncbi.nlm.nih.gov/compound/2256#section=Chemical-Co-Occurrences-in-Literature. This function enables you to retrieve identifiers, names, article counts and the co-occurrence score for several cases, leveraging the current display format. NOTE that as the display may change, this function may break without warning; in which case please post an issue to https://github.com/schymane/RChemMass/issues.
Current cases accepted are: ChemicalNeighbor, ChemicalGeneSymbolNeighbor, ChemicalDiseaseNeighbor, GeneSymbolChemicalNeighbor and DiseaseChemicalNeighbor.
Available but not yet implemented (possible upon request) are Gene-Disease, Disease-Gene, Gene-Gene and Disease-Disease co-associations, as these do not directly involve chemicals.
Functions that work off the full dataset (i.e. are not truncated) are in progress.
File name of a 4-column CSV containing the coassociated identifier, name, article count and co-occurrence score. Header varies with query type.
Emma Schymanski <emma.schymanski@uni.lu>
PubChem: http://pubchem.ncbi.nlm.nih.gov/
PubChem Knowledge Panels: https://pubchemdocs.ncbi.nlm.nih.gov/knowledge-panels
1 2 3 4 5 6 7 8 9 10 11 | # Chemical-Chemical co-associations (truncated at 25)
getPcCand.coassoc(query = '2256',query_type = 'ChemicalNeighbor')
# Chemical-Gene co-associations (truncated at 100)
getPcCand.coassoc(query = '2256',query_type = 'ChemicalGeneSymbolNeighbor')
# Chemical-Disease co-associations (truncated at 25)
getPcCand.coassoc(query = '2256',query_type = 'ChemicalDiseaseNeighbor')
# Gene-Chemical co-associations (truncated at 25)
getPcCand.coassoc(query = 'CLN3',query_type = 'GeneSymbolChemicalNeighbor')
Disease-Chemical co-associations (test=TRUE only; may break at any time)
getPcCand.coassoc(query = 'C000657245',query_type = 'DiseaseChemicalNeighbor',
test=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.