Date
Participants
Discussion topics
Item | Notes |
---|---|
Review previous meeting / progress on questions and tests |
|
Vanderbilt collaboration |
|
OpenEye license |
|
Notebook on topology | from openff.toolkit.topology import Molecule, Topology smileses = ['CCO', 'OCC', "C1CCCCC1", "C1=CC=CC=C1", "c1ccccc1", "O", "O", "O", "[H]O[H]"] mols = [Molecule.from_smiles(smi) for smi in smileses] print(mols) [Molecule with name '' and SMILES '[H][O][C]([H])([H])[C]([H])([H])[H]', Molecule with name '' and SMILES '[H][O][C]([H])([H])[C]([H])([H])[H]', Molecule with name '' and SMILES '[H][C]1([H])[C]([H])([H])[C]([H])([H])[C]([H])([H])[C]([H])([H])[C]1([H])[H]', Molecule with name '' and SMILES '[H][c]1[c]([H])[c]([H])[c]([H])[c]([H])[c]1[H]', Molecule with name '' and SMILES '[H][c]1[c]([H])[c]([H])[c]([H])[c]([H])[c]1[H]', Molecule with name '' and SMILES '[H][O][H]', Molecule with name '' and SMILES '[H][O][H]', Molecule with name '' and SMILES '[H][O][H]', Molecule with name '' and SMILES '[H][O][H]'] mols[0].atoms [Atom(name=, atomic number=6), Atom(name=, atomic number=6), Atom(name=, atomic number=8), Atom(name=, atomic number=1), Atom(name=, atomic number=1), Atom(name=, atomic number=1), Atom(name=, atomic number=1), Atom(name=, atomic number=1), Atom(name=, atomic number=1)] mols[1].atoms [Atom(name=, atomic number=8), Atom(name=, atomic number=6), Atom(name=, atomic number=6), Atom(name=, atomic number=1), Atom(name=, atomic number=1), Atom(name=, atomic number=1), Atom(name=, atomic number=1), Atom(name=, atomic number=1), Atom(name=, atomic number=1)] top = Topology.from_molecules(mols) print(top) <openff.toolkit.topology.topology.Topology object at 0x144e459d0> for tm in top.topology_molecules: print(tm) print(tm.reference_molecule) <openff.toolkit.topology.topology.TopologyMolecule object at 0x144e45e80> Molecule with name '' and SMILES '[H][O][C]([H])([H])[C]([H])([H])[H]' <openff.toolkit.topology.topology.TopologyMolecule object at 0x144746c70> Molecule with name '' and SMILES '[H][O][C]([H])([H])[C]([H])([H])[H]' <openff.toolkit.topology.topology.TopologyMolecule object at 0x144e45970> Molecule with name '' and SMILES '[H][C]1([H])[C]([H])([H])[C]([H])([H])[C]([H])([H])[C]([H])([H])[C]1([H])[H]' <openff.toolkit.topology.topology.TopologyMolecule object at 0x144e45850> Molecule with name '' and SMILES '[H][c]1[c]([H])[c]([H])[c]([H])[c]([H])[c]1[H]' <openff.toolkit.topology.topology.TopologyMolecule object at 0x144af14c0> Molecule with name '' and SMILES '[H][c]1[c]([H])[c]([H])[c]([H])[c]([H])[c]1[H]' <openff.toolkit.topology.topology.TopologyMolecule object at 0x144af1490> Molecule with name '' and SMILES '[H][O][H]' <openff.toolkit.topology.topology.TopologyMolecule object at 0x14477fca0> Molecule with name '' and SMILES '[H][O][H]' <openff.toolkit.topology.topology.TopologyMolecule object at 0x14477fd00> Molecule with name '' and SMILES '[H][O][H]' <openff.toolkit.topology.topology.TopologyMolecule object at 0x14477fe20> Molecule with name '' and SMILES '[H][O][H]' for rm in top.reference_molecules: print(rm) Molecule with name '' and SMILES '[H][O][C]([H])([H])[C]([H])([H])[H]' Molecule with name '' and SMILES '[H][C]1([H])[C]([H])([H])[C]([H])([H])[C]([H])([H])[C]([H])([H])[C]1([H])[H]' Molecule with name '' and SMILES '[H][c]1[c]([H])[c]([H])[c]([H])[c]([H])[c]1[H]' Molecule with name '' and SMILES '[H][O][H]' top.topology_molecules[0].atom(0).atomic_number 6 top.topology_molecules[1].atom(0).atomic_number 8 top.topology_molecules[0]._top_to_ref_index {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8} top.topology_molecules[1]._top_to_ref_index {0: 2, 1: 1, 2: 0, 3: 8, 4: 6, 5: 7, 6: 4, 7: 5, 8: 3} |
Add Comment