Challenge: RDKit Molecule Parsing
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 6.25
Challenge: RDKit Molecule Parsing
Stryg for at vise menuen
Opgave
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 alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4
single