Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Find Similar Drug-like Molecules | Similarity, Clustering and Drug Discovery
Python for Chemoinformatics

bookChallenge: Find Similar Drug-like Molecules

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Find Similar Drug-like Molecules

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

some-alt