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

"roundtrip" retrieval not working #2

Open
shortydutchie opened this issue Sep 20, 2024 · 2 comments
Open

"roundtrip" retrieval not working #2

shortydutchie opened this issue Sep 20, 2024 · 2 comments

Comments

@shortydutchie
Copy link

shortydutchie commented Sep 20, 2024

Hi

I tried a 'roundtrip' retrieval:

  • US20210277002 gives me a list of smiles.

  • Selecting one of these smiles as query, eg. "CC1COCCN1C1=CC(C2=C(S(=O)(=O)NC3CC3)C=CC=C2)=C2C=NN(C3=NNC=C3)C2=N1" from page 114 does not seem to give me back the patent.

My script works fine with the example query_smiles "CC1(C)C2(C)CC2CC1CC1C(CO)(C)C1" from the examples directory.

I further note that all chirality has been stripped, and that smiles need to be specifically kekulised, as per following, is that correct? It's worth stating that explicitly somewhere, think it should be as follows?

    molecule = Chem.MolFromSmiles(query_smiles)
    Chem.RemoveStereochemistry(molecule)           #NB chirality not present in db
    Chem.RemoveHs(molecule)                       
    Chem.Kekulize(molecule)
    query_smiles = Chem.MolToSmiles(molecule,kekuleSmiles=True)

Thank you!

@lucas-morin
Copy link
Collaborator

Hi @shortydutchie,

Sorry for the late reply, and thanks for pointing out this problem.

It should now be fixed. You can try the latest version of the notebook molecule_query.ipynb, with your query_smiles:
"CC1COCCN1C1=CC(C2=C(S(=O)(=O)NC3CC3)C=CC=C2)=C2C=NN(C3=NNC=C3)C2=N1".

For information, the issue was that when using grep to search for the string "CC1COCCN1c1cc(-c2ccccc2S(=O)(=O)NC2CC2)c2cnn(-c3cc[nH]n3)c2n1", I forgot to escape the characters [ and ].

The query smiles should not be kekulized, and the stereo-chemistry must be removed.
As you suggested, I added this in the notebook.

Best,
Lucas

@shortydutchie
Copy link
Author

shortydutchie commented Nov 26, 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