Skip to content

Searching by name #8

Description

@ucb

Hi,

I am new to the library and am not sure if I could be coing somthing more, but I have experimented with PFOA translation. I get no results:

db_name<-'ctsgetr.sqlite' # local cache
id<-tolower(c("alanine",'lactic acid','Perfluorooctane Acid','PFOA','Perfluorooctanoic acid'))
from<-"Chemical Name"
to<-"CAS"

CTSgetR(id,from,to,db_name=db_name)

Output:

                      id         CAS
1                alanine 115967-49-2
2            lactic acid  10326-41-7
3   perfluorooctane acid        <NA>
4                   pfoa        <NA>
5 perfluorooctanoic acid        <NA>

The last entry in id is verbatim from PubChem. Also, if I turn tables and search by CID, I get a related CAS and not the main CAS for the CID:
PubChem Page

db_name<-'ctsgetr.sqlite' # local cache
id<-tolower(c("9554"))
from<-"PubChem CID"
to<-"CAS"

CTSgetR(id,from,to,db_name=db_name)

Output:

     id       CAS
 1 9554 2395-00-8

Are there some other databases I should be loading in addition to what is recommended as a local cache (db_name<-'ctsgetr.sqlite' # local cache)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions