Skip to content

Option to search substances in PubChem #216

@stanstrup

Description

@stanstrup

Could we have an option in get_cid to also search through substances?

For example the CAS number "152957-32-9" is listed as a synonym for SID 349678457 but not in the CID entry. Yet the SID can point me to the CID.
So the following URL would give me what I was after:
https://pubchem.ncbi.nlm.nih.gov/rest/pug/substance/name/152957-32-9/cids/JSON

So I suggested an option that if TRUE would also search "substance". You might get duplicate CIDs returned from compounds and substance and those should be de-duplicated with unique.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or enhancementquestionIssue or pull request needs more information

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions