Files
Greg Landrum 5cf8a6a9b7 Support for a JSON-based molecule interchange format (#1798)
* expose addRing to python

* backup commit

* basics of atom and bond loading

* basics of atom and bond loading

* do bond stereo too

* Loads of cleanups
Read conformers and molecule properties
Better tests
update one of the test values so that we aren't always testing ccw

* enable auto-download of rapidjson distrib

* reader now mostly done (still missing atomic/bond properties)

* a bit of optimization

* a bit of cleanup

* a bit more optimization

* backup

* test zero-order bonds

* prep work for writer (not done)

* add isotope support

* backup

* getting there with the writing

* progress on writing; still need to do the RDKit part though

* can now roundtrip, including chirality.
double bond stereo needs to wait for backend fixes

* add a timing test for benchmarking

* add a timing test for benchmarking

* add another template

* add parse params; optionally set bond types to aromatic; add python wrapper

* disable benchmark run by default

* write conformers

* refactoring

* docs

* port to commonchem

* switch representation

* start reading and writing properties

* fix a memory problem

* set a common_property for gasteiger charges

* parse partial charges

* add partial charge writing

* reformatting

* add support for disabling parts of the parsing

* remove the "name" property from files

* editing

* more post-review changes

* make the molinterchange build optional

* make them really optional
2018-04-02 05:12:03 +02:00

48 lines
1.3 KiB
JSON

{"commonchem": {"version": 10 },
"defaults": {
"atom": {"z": 6, "impHs": 0, "chg": 0, "stereo": "unspecified", "nrad": 0},
"bond": {"bo": 1, "stereo": "unspecified", "stereoAtoms": []}
},
"molecules": [{"name": "example 1", "atoms": [{"z": 6, "impHs": 1},
{"z": 6},
{"z": 6, "impHs": 1},
{"z": 6, "impHs": 1},
{"z": 6, "impHs": 3},
{"z": 6, "impHs": 1},
{"z": 6, "impHs": 1},
{"z": 6, "impHs": 1},
{"z": 6},
{"z": 8},
{"z": 6, "impHs": 1},
{"z": 6, "impHs": 1},
{"z": 6, "impHs": 1, "stereo": "ccw"},
{"z": 7, "impHs": 3, "chg": 1},
{"z": 17}],
"bonds": [{"atoms": [0, 1],
"bo": 2},
{"atoms": [1, 2]},
{"atoms": [2, 3],
"bo": 2},
{"atoms": [3, 4]},
{"atoms": [1, 5]},
{"atoms": [5, 6],
"bo": 2},
{"atoms": [6, 7]},
{"atoms": [7, 8],
"bo": 2},
{"atoms": [8, 9]},
{"atoms": [9, 10]},
{"atoms": [10, 11],
"bo": 2, "stereoAtoms": [9, 12],
"stereo": "cis"},
{"atoms": [11, 12]},
{"atoms": [12, 13]},
{"atoms": [12, 14]},
{"atoms": [8, 0]}],
"properties": {"prop1": 1, "prop2": 3.14, "prop3": "foo"},
"extensions": [{"name": "rdkitRepresentation", "toolkitVersion": "2018.03.1.dev1", "formatVersion": 1, "aromaticAtoms": [0, 1, 5, 6, 7, 8],
"aromaticBonds": [0, 4, 5, 6, 7, 14],
"cipRanks": [6, 8, 3, 1, 0, 4, 2, 5, 10, 13, 9, 7, 11, 12, 14],
"cipCodes": [[12, "R"]],
"atomRings": [[0, 8, 7, 6, 5, 1]]}]}]}