Challenge: Compute Descriptors for a Compound Library
Tâche
Swipe to start coding
Write a Python function that takes a list of SMILES strings and returns a dictionary mapping each SMILES to its molecular weight and logP.
- For each SMILES string in
smiles_list, generate a molecule object. - If the molecule object is valid, compute its molecular weight and logP.
- Store the results in the dictionary with the SMILES string as the key and a dictionary of
molecular_weightandlogPas the value. - If the molecule object is not valid, store
Noneas the value for that SMILES string.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 6
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 6.25
Challenge: Compute Descriptors for a Compound Library
Glissez pour afficher le menu
Tâche
Swipe to start coding
Write a Python function that takes a list of SMILES strings and returns a dictionary mapping each SMILES to its molecular weight and logP.
- For each SMILES string in
smiles_list, generate a molecule object. - If the molecule object is valid, compute its molecular weight and logP.
- Store the results in the dictionary with the SMILES string as the key and a dictionary of
molecular_weightandlogPas the value. - If the molecule object is not valid, store
Noneas the value for that SMILES string.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 6
single