Skip to content

get_cid() returns different results now vs. months ago #451

@francivita

Description

@francivita

Hi,

I’m seeing different results from get_cid() for the query "cyanocobalamin" compared to what I obtained a few months ago, and I’m trying to determine whether this is expected (e.g., PubChem changes) or whether something in webchem has changed.

Old results (saved from earlier runs)

Using:

get_cid(
  query = "cyanocobalamin",
  from = "name",
  domain = "compound",
  match = "all"
)

I previously obtained 22 CIDs, e.g.:

5311498
184933
70678590
16212801
24892734
25102581
46853873
54605677
118701720
129627537
... (12 more)

Current results (same code now)

Running the same call today:

get_cid(
  query = "cyanocobalamin",
  from = "name",
  domain = "compound",
  match = "all",
  verbose = TRUE
)

returns only a single CID:

166596686

Similarly:

get_cid(query = "cyanocobalamin", match = "first")

now returns 166596686, whereas older results had 5311498 as the first match.

Is this change expected?

  • Did PubChem update synonyms or name-matching behavior?
  • Has the way webchem handles match = "all" changed?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions