Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dummy atoms should not be considered to be metals for M and MH queries #6106

Closed
greglandrum opened this issue Feb 18, 2023 · 0 comments
Closed
Labels
Milestone

Comments

@greglandrum
Copy link
Member

Describe the bug
This came up while fixing #6100.

In [2]: m = Chem.MolFromSmiles('CO*')

In [3]: from rdkit.Chem import rdqueries

In [4]: qa = rdqueries.MAtomQueryAtom()

In [7]: [x.GetIdx() for x in m.GetAtomsMatchingQuery(qa)]
Out[7]: [2]

I don't think a dummy should be considered to be a metal

Configuration (please complete the following information):

  • RDKit version: releases and master
  • OS: all
@greglandrum greglandrum added this to the 2022_09_5 milestone Feb 18, 2023
@greglandrum greglandrum changed the title Dummy atoms should not be considered to be metals Dummy atoms should not be considered to be metals for M and MH queries Feb 18, 2023
greglandrum added a commit to greglandrum/rdkit that referenced this issue Feb 18, 2023
greglandrum added a commit that referenced this issue Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant