Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Filter a Compound Library | Virtual Screening and Compound Ranking
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Chemoinformatics

bookChallenge: Filter a Compound Library

Opgave

Swipe to start coding

Your task is to implement a function that filters a list of SMILES strings, returning only those that pass Lipinski's Rule of Five. Use RDKit to calculate molecular properties.

  • Define a function filter_druglike_smiles(smiles_list) that takes a list of SMILES strings.
  • For each valid molecule, check the following criteria:
    • Molecular weight is less than or equal to 500 daltons.
    • LogP (octanol-water partition coefficient) is less than or equal to 5.
    • No more than 5 hydrogen bond donors.
    • No more than 10 hydrogen bond acceptors.
  • Ignore any SMILES strings that cannot be parsed by RDKit.
  • Return a list of SMILES strings that pass all the rules.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Filter a Compound Library

Stryg for at vise menuen

Opgave

Swipe to start coding

Your task is to implement a function that filters a list of SMILES strings, returning only those that pass Lipinski's Rule of Five. Use RDKit to calculate molecular properties.

  • Define a function filter_druglike_smiles(smiles_list) that takes a list of SMILES strings.
  • For each valid molecule, check the following criteria:
    • Molecular weight is less than or equal to 500 daltons.
    • LogP (octanol-water partition coefficient) is less than or equal to 5.
    • No more than 5 hydrogen bond donors.
    • No more than 10 hydrogen bond acceptors.
  • Ignore any SMILES strings that cannot be parsed by RDKit.
  • Return a list of SMILES strings that pass all the rules.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 2
single

single

some-alt