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

Support for double-cut linkers with 0 atoms #64

Open
baoilleach opened this issue Oct 17, 2024 · 1 comment
Open

Support for double-cut linkers with 0 atoms #64

baoilleach opened this issue Oct 17, 2024 · 1 comment

Comments

@baoilleach
Copy link

I would like these two molecules to be identified as double-cut matched pairs (e.g. with exocyclic fragmentation):
image

The larger molecule has [*:1]C[*:2] as the linker, which is fine:

$ mmpdb smifrag "c1ccccc1OC2CCCNC2" --cut-smarts "exocyclic"
                   |------------  variable  ------------|       |-----------------------  constant  ---------------------
#cuts | enum.label | #heavies | symm.class | smiles     | order | #heavies | symm.class | smiles              | with-H
------+------------+----------+------------+------------+-------+----------+------------+---------------------+----------
  1   |     N      |    6     |      1     | *C1CCCNC1  |    0  |     7    |      1     | *Oc1ccccc1          | Oc1ccccc1
  1   |     N      |    7     |      1     | *Oc1ccccc1 |    0  |     6    |      1     | *C1CCCNC1           | C1CCNCC1
  2   |     N      |    1     |     11     | *O*        |   01  |    12    |     12     | *C1CCCNC1.*c1ccccc1 | -
  1   |     N      |    7     |      1     | *OC1CCCNC1 |    0  |     6    |      1     | *c1ccccc1           | c1ccccc1
  1   |     N      |    6     |      1     | *c1ccccc1  |    0  |     7    |      1     | *OC1CCCNC1          | OC1CCCNC1

The smaller molecule should have [*:1][*:2] as the linker, but nothing is found:

$ mmpdb smifrag "c1ccccc1C2CCCNC2" --cut-smarts "exocyclic"
                   |------------  variable  -----------|       |-----------------  constant  ----------------
#cuts | enum.label | #heavies | symm.class | smiles    | order | #heavies | symm.class | smiles    | with-H
------+------------+----------+------------+-----------+-------+----------+------------+-----------+---------
  1   |     N      |    6     |     1      | *C1CCCNC1 |   0   |    6     |     1      | *c1ccccc1 | c1ccccc1
  1   |     N      |    6     |     1      | *c1ccccc1 |   0   |    6     |     1      | *C1CCCNC1 | C1CCNCC1

I'm hoping there's a secret minsize somewhere I can change from 1 to 0, or is support for this likely to require much greater changes?

@adalke
Copy link
Contributor

adalke commented Oct 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants