Challenge: Filter a Compound Library
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 2
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 6.25
Challenge: Filter a Compound Library
Pyyhkäise näyttääksesi valikon
Tehtävä
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 2
single