|
| 1 | +--- |
| 2 | +title: QCSchema JSON |
| 3 | +--- |
| 4 | + |
| 5 | +## Specification |
| 6 | + |
| 7 | +@Note [Reference](https://molssi-qc-schema.readthedocs.io) |
| 8 | + |
| 9 | +JSON files are identified by the extension ``json`` and parsed following the ``qcschema_molecule`` or ``qcschema_input`` format. |
| 10 | +The ``molecule`` entry from a ``qcschema_input`` will be extracted, but there is no guarantee that the input information will be used by the program. |
| 11 | + |
| 12 | + |
| 13 | +## Example |
| 14 | + |
| 15 | +Caffeine molecule in ``qcschema_molecule`` format. |
| 16 | + |
| 17 | + |
| 18 | +```json |
| 19 | +{ |
| 20 | + "schema_version": 2, |
| 21 | + "schema_name": "qcschema_molecule", |
| 22 | + "provenance": { |
| 23 | + "creator": "mctc-lib", |
| 24 | + "version": "0.2.3", |
| 25 | + "routine": "mctc_io_write_qcschema::write_qcschema" |
| 26 | + }, |
| 27 | + "symbols": [ |
| 28 | + "C", "N", "C", "N", "C", "C", "C", "O", "N", "C", "O", "N", |
| 29 | + "C", "C", "H", "H", "H", "H", "H", "H", "H", "H", "H", "H" |
| 30 | + ], |
| 31 | + "geometry": [ |
| 32 | + 2.0280536328008760E+00, 9.2407587256767454E-02,-1.4305223630546618E-01, |
| 33 | + 4.7502035191684326E+00, 2.3810543955731494E-02,-1.4324120887654343E-01, |
| 34 | + 6.3343605825088858E+00, 2.0709504064354083E+00,-1.4229634602115726E-01, |
| 35 | + 8.7286430580574415E+00, 1.3800666865770403E+00,-1.4267429116331171E-01, |
| 36 | + 8.6532430021976250E+00,-1.1931728137816557E+00,-1.4229634602115726E-01, |
| 37 | + 6.2385514889727283E+00,-2.0836115686975827E+00,-1.4210737345008001E-01, |
| 38 | + 5.6327054260991156E+00,-4.6995588701197342E+00,-1.3946175745499875E-01, |
| 39 | + 3.4493163398727531E+00,-5.4809604515240968E+00,-1.4324120887654343E-01, |
| 40 | + 7.7750874644017181E+00,-6.2442206661050452E+00,-1.3114696432760045E-01, |
| 41 | + 1.0302217657417570E+01,-5.3974345751079591E+00,-1.3681614145991747E-01, |
| 42 | + 1.2074024483837716E+01,-6.9158291837135346E+00,-1.3662716888884024E-01, |
| 43 | + 1.0700382864677302E+01,-2.7907469296685923E+00,-1.4154045573684831E-01, |
| 44 | + 1.3246032369658721E+01,-1.7697281281382971E+00,-1.4210737345008001E-01, |
| 45 | + 7.4088586216540389E+00,-8.9590006222005893E+00,-1.1640710378357619E-01, |
| 46 | + 1.3870586717068980E+00, 2.0558326007492296E+00,-1.4172942830792554E-01, |
| 47 | + 1.3462405963542154E+00,-8.6360464982295970E-01, 1.5560001502499454E+00, |
| 48 | + 1.3462405963542154E+00,-8.6133697897003281E-01,-1.8434274308584184E+00, |
| 49 | + 5.6559490523416152E+00, 4.0016831651315083E+00,-1.4135148316577109E-01, |
| 50 | + 1.4674287061860456E+01,-3.2622334945062916E+00,-1.4343018144762065E-01, |
| 51 | + 1.3508893216027154E+01,-6.0811373372653921E-01, 1.5490081651200875E+00, |
| 52 | + 1.3507759380600691E+01,-6.0622400801576681E-01,-1.8320890765937843E+00, |
| 53 | + 5.4140641613627567E+00,-9.4924701903516215E+00,-1.1017100893802745E-01, |
| 54 | + 8.3191394965330758E+00,-9.7494728870166600E+00, 1.5654487788038070E+00, |
| 55 | + 8.3151710725404531E+00,-9.7685591166954602E+00,-1.7910820286700244E+00 |
| 56 | + ], |
| 57 | + "molecular_charge": 0, |
| 58 | + "connectivity": [ |
| 59 | + [ 0, 1, 1], |
| 60 | + [ 1, 2, 4], |
| 61 | + [ 2, 3, 4], |
| 62 | + [ 3, 4, 4], |
| 63 | + [ 1, 5, 1], |
| 64 | + [ 4, 5, 4], |
| 65 | + [ 5, 6, 1], |
| 66 | + [ 6, 7, 2], |
| 67 | + [ 6, 8, 1], |
| 68 | + [ 8, 9, 1], |
| 69 | + [ 9,10, 2], |
| 70 | + [ 4,11, 1], |
| 71 | + [ 9,11, 1], |
| 72 | + [11,12, 1], |
| 73 | + [ 8,13, 1], |
| 74 | + [ 0,14, 1], |
| 75 | + [ 0,15, 1], |
| 76 | + [ 0,16, 1], |
| 77 | + [ 2,17, 1], |
| 78 | + [12,18, 1], |
| 79 | + [12,19, 1], |
| 80 | + [12,20, 1], |
| 81 | + [13,21, 1], |
| 82 | + [13,22, 1], |
| 83 | + [13,23, 1] |
| 84 | + ] |
| 85 | +} |
| 86 | +``` |
| 87 | + |
| 88 | + |
| 89 | +## Missing features |
| 90 | + |
| 91 | +The schema is not verified on completeness and not all data is stored in the final structure type. |
| 92 | + |
| 93 | +@Note Feel free to contribute support for missing features |
| 94 | + or bring missing features to our attention by opening an issue. |
0 commit comments