Challenge: RDKit Molecule Parsing
Uppgift
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
Nonein the corresponding output position. - Return a list of molecular weights (or
Nonewhere parsing failed).
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 6.25
Challenge: RDKit Molecule Parsing
Svep för att visa menyn
Uppgift
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
Nonein the corresponding output position. - Return a list of molecular weights (or
Nonewhere parsing failed).
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 4
single