Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: RDKit Molecule Parsing | Molecular Representations and Parsing
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Chemoinformatics

bookChallenge: RDKit Molecule Parsing

Task

Swipe to start coding

Write a Python function using RDKit that takes a list of SMILES strings and returns a list of molecular weights.

  • Parse each SMILES string in the input list to generate a molecule object.
  • For each valid molecule object, calculate its molecular weight.
  • For any SMILES string that cannot be parsed, return None in the corresponding output position.
  • Return a list of molecular weights (or None where parsing failed).

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: RDKit Molecule Parsing

Swipe to show menu

Task

Swipe to start coding

Write a Python function using RDKit that takes a list of SMILES strings and returns a list of molecular weights.

  • Parse each SMILES string in the input list to generate a molecule object.
  • For each valid molecule object, calculate its molecular weight.
  • For any SMILES string that cannot be parsed, return None in the corresponding output position.
  • Return a list of molecular weights (or None where parsing failed).

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

some-alt