Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Find Similar Drug-like Molecules | Similarity, Clustering and Drug Discovery
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Chemoinformatics

bookChallenge: Find Similar Drug-like Molecules

Aufgabe

Swipe to start coding

Write a function to identify molecules from a list of candidate SMILES strings that are similar to a given reference SMILES, using Tanimoto similarity.

  • Parse the reference_smiles string into an RDKit molecule and generate its Morgan fingerprint with a radius of 2.
  • For each SMILES in candidate_smiles_list, parse it into an RDKit molecule and generate its Morgan fingerprint with a radius of 2.
  • Compute the Tanimoto similarity between the reference fingerprint and each candidate fingerprint.
  • Return a list of SMILES strings for those candidates with similarity strictly greater than 0.7.

Before running this code or the tests, you must install the RDKit library in your environment. If you control the environment, use 'conda install -c conda-forge rdkit' or 'pip install rdkit'. If you do not control the environment, contact the platform support or check their documentation for available packages.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you provide an example to illustrate this?

close

bookChallenge: Find Similar Drug-like Molecules

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

Write a function to identify molecules from a list of candidate SMILES strings that are similar to a given reference SMILES, using Tanimoto similarity.

  • Parse the reference_smiles string into an RDKit molecule and generate its Morgan fingerprint with a radius of 2.
  • For each SMILES in candidate_smiles_list, parse it into an RDKit molecule and generate its Morgan fingerprint with a radius of 2.
  • Compute the Tanimoto similarity between the reference fingerprint and each candidate fingerprint.
  • Return a list of SMILES strings for those candidates with similarity strictly greater than 0.7.

Before running this code or the tests, you must install the RDKit library in your environment. If you control the environment, use 'conda install -c conda-forge rdkit' or 'pip install rdkit'. If you do not control the environment, contact the platform support or check their documentation for available packages.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

some-alt