nazuchem 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,494 @@
1
+ {
2
+ "$defs": {
3
+ "Atom": {
4
+ "additionalProperties": false,
5
+ "description": "An atom with its stated hydrogen origin, locants, and attachment label.\n\nJSON omits zero charge, zero radical electrons, and false\n`hydrogens_stated`, restoring those defaults when the fields are absent.",
6
+ "properties": {
7
+ "atom_map": {
8
+ "description": "An explicit SMILES atom-map number, independent of text labels.",
9
+ "format": "uint32",
10
+ "maximum": 4294967295,
11
+ "minimum": 0,
12
+ "type": [
13
+ "integer",
14
+ "null"
15
+ ]
16
+ },
17
+ "attachment_point": {
18
+ "description": "A numbered wildcard attachment, corresponding to OPSIN `_AP{n}`.",
19
+ "format": "uint32",
20
+ "maximum": 4294967295,
21
+ "minimum": 0,
22
+ "type": [
23
+ "integer",
24
+ "null"
25
+ ]
26
+ },
27
+ "charge": {
28
+ "description": "Formal charge; defaults to zero when omitted from JSON.",
29
+ "format": "int8",
30
+ "maximum": 127,
31
+ "minimum": -128,
32
+ "type": "integer"
33
+ },
34
+ "element": {
35
+ "description": "Atomic number; zero denotes a wildcard or attachment point.",
36
+ "format": "uint8",
37
+ "maximum": 118,
38
+ "minimum": 0,
39
+ "type": "integer"
40
+ },
41
+ "hydrogens": {
42
+ "description": "Hydrogen atoms not represented as graph vertices.",
43
+ "format": "uint8",
44
+ "maximum": 255,
45
+ "minimum": 0,
46
+ "type": "integer"
47
+ },
48
+ "hydrogens_stated": {
49
+ "description": "Distinguishes explicitly stated counts such as `[CH4]` from inferred `C`.\nDefaults to false when omitted from JSON.",
50
+ "type": "boolean"
51
+ },
52
+ "isotope": {
53
+ "description": "Isotope mass number. Isotopic hydrogen is an atom, never a count.",
54
+ "format": "uint16",
55
+ "maximum": 65535,
56
+ "minimum": 1,
57
+ "type": [
58
+ "integer",
59
+ "null"
60
+ ]
61
+ },
62
+ "label": {
63
+ "type": [
64
+ "string",
65
+ "null"
66
+ ]
67
+ },
68
+ "locants": {
69
+ "description": "All name locants, in name order. Parent membership controls display.",
70
+ "items": {
71
+ "type": "string"
72
+ },
73
+ "type": "array"
74
+ },
75
+ "radical_electrons": {
76
+ "description": "Stated unpaired electron count; defaults to zero when omitted from JSON.",
77
+ "format": "uint8",
78
+ "maximum": 255,
79
+ "minimum": 0,
80
+ "type": "integer"
81
+ }
82
+ },
83
+ "required": [
84
+ "element",
85
+ "hydrogens"
86
+ ],
87
+ "type": "object"
88
+ },
89
+ "AxialWinding": {
90
+ "description": "Axis winding relative to its ordered references, independent of CIP ranking.\n\nLook along `bond.atoms[0]` toward `bond.atoms[1]`. The first reference pair is\nattached to the near end, the second to the far end. `Clockwise` means the\nshortest turn from the projection of `refs[0]` to `refs[2]` is clockwise;\n`Anticlockwise` means anticlockwise. Swapping either pair reverses winding.\nReversing the bond and exchanging the two pairs preserves winding. These\nvalues describe the stored reference order, not CIP M/P descriptors; no\nligand priorities are inferred. `Unknown` records stated unknown winding.",
91
+ "enum": [
92
+ "clockwise",
93
+ "anticlockwise",
94
+ "unknown"
95
+ ],
96
+ "type": "string"
97
+ },
98
+ "Bond": {
99
+ "additionalProperties": false,
100
+ "description": "A localized bond; endpoint order defines double-bond references and the position-variation attachment end.",
101
+ "properties": {
102
+ "atoms": {
103
+ "items": {
104
+ "format": "uint32",
105
+ "maximum": 4294967295,
106
+ "minimum": 0,
107
+ "type": "integer"
108
+ },
109
+ "maxItems": 2,
110
+ "minItems": 2,
111
+ "type": "array",
112
+ "uniqueItems": true
113
+ },
114
+ "order": {
115
+ "$ref": "#/$defs/BondOrder"
116
+ }
117
+ },
118
+ "required": [
119
+ "atoms",
120
+ "order"
121
+ ],
122
+ "type": "object"
123
+ },
124
+ "BondOrder": {
125
+ "enum": [
126
+ "single",
127
+ "double",
128
+ "triple",
129
+ "quadruple"
130
+ ],
131
+ "type": "string"
132
+ },
133
+ "Connectivity": {
134
+ "enum": [
135
+ "head_to_tail",
136
+ "head_to_head",
137
+ "unknown"
138
+ ],
139
+ "type": "string"
140
+ },
141
+ "PositionVariation": {
142
+ "additionalProperties": false,
143
+ "description": "Possible attachment endpoints for a position-variation bond.",
144
+ "properties": {
145
+ "bond": {
146
+ "format": "uint32",
147
+ "maximum": 4294967295,
148
+ "minimum": 0,
149
+ "type": "integer"
150
+ },
151
+ "endpoints": {
152
+ "items": {
153
+ "format": "uint32",
154
+ "maximum": 4294967295,
155
+ "minimum": 0,
156
+ "type": "integer"
157
+ },
158
+ "minItems": 1,
159
+ "type": "array",
160
+ "uniqueItems": true
161
+ }
162
+ },
163
+ "required": [
164
+ "bond",
165
+ "endpoints"
166
+ ],
167
+ "type": "object"
168
+ },
169
+ "Ref": {
170
+ "anyOf": [
171
+ {
172
+ "format": "uint32",
173
+ "maximum": 4294967295,
174
+ "minimum": 0,
175
+ "type": "integer"
176
+ },
177
+ {
178
+ "enum": [
179
+ "implicit_hydrogen",
180
+ "lone_pair"
181
+ ],
182
+ "type": "string"
183
+ }
184
+ ]
185
+ },
186
+ "Relation": {
187
+ "enum": [
188
+ "cis",
189
+ "trans",
190
+ "unknown"
191
+ ],
192
+ "type": "string"
193
+ },
194
+ "RepeatUnit": {
195
+ "additionalProperties": false,
196
+ "description": "A repeating unit, including its bonds to atoms outside the unit.",
197
+ "properties": {
198
+ "atoms": {
199
+ "items": {
200
+ "format": "uint32",
201
+ "maximum": 4294967295,
202
+ "minimum": 0,
203
+ "type": "integer"
204
+ },
205
+ "minItems": 1,
206
+ "type": "array",
207
+ "uniqueItems": true
208
+ },
209
+ "attachment_points": {
210
+ "description": "External wildcard atom identities that represent polymer end roles.",
211
+ "items": {
212
+ "format": "uint32",
213
+ "maximum": 4294967295,
214
+ "minimum": 0,
215
+ "type": "integer"
216
+ },
217
+ "type": "array",
218
+ "uniqueItems": true
219
+ },
220
+ "connectivity": {
221
+ "$ref": "#/$defs/Connectivity"
222
+ },
223
+ "crossing_bonds": {
224
+ "items": {
225
+ "format": "uint32",
226
+ "maximum": 4294967295,
227
+ "minimum": 0,
228
+ "type": "integer"
229
+ },
230
+ "type": "array",
231
+ "uniqueItems": true
232
+ },
233
+ "label": {
234
+ "type": [
235
+ "string",
236
+ "null"
237
+ ]
238
+ }
239
+ },
240
+ "required": [
241
+ "atoms",
242
+ "connectivity"
243
+ ],
244
+ "type": "object"
245
+ },
246
+ "Stereo": {
247
+ "description": "Ordered structural stereochemistry, independent of CIP assignment.\n\nUnknown winding/relation records stated unknown (wavy/ξ) stereochemistry;\nan absent entry means unspecified stereochemistry. For a double bond,\n`refs[i]` is attached to `bonds[bond].atoms[i]`. For an atropisomer,\n`refs[0..2]` are attached to the first bond end and `refs[2..4]` to the second.\nAxial chirality of allenes and other cumulenes is not representable in v1.\nEquality is structural: equivalent configurations with permuted references\nand adjusted winding can compare unequal.",
248
+ "oneOf": [
249
+ {
250
+ "additionalProperties": false,
251
+ "properties": {
252
+ "center": {
253
+ "format": "uint32",
254
+ "maximum": 4294967295,
255
+ "minimum": 0,
256
+ "type": "integer"
257
+ },
258
+ "kind": {
259
+ "const": "tetrahedral",
260
+ "type": "string"
261
+ },
262
+ "neighbors": {
263
+ "items": {
264
+ "$ref": "#/$defs/Ref"
265
+ },
266
+ "maxItems": 4,
267
+ "minItems": 4,
268
+ "type": "array",
269
+ "uniqueItems": true
270
+ },
271
+ "winding": {
272
+ "$ref": "#/$defs/Winding"
273
+ }
274
+ },
275
+ "required": [
276
+ "kind",
277
+ "center",
278
+ "neighbors",
279
+ "winding"
280
+ ],
281
+ "type": "object"
282
+ },
283
+ {
284
+ "additionalProperties": false,
285
+ "properties": {
286
+ "bond": {
287
+ "format": "uint32",
288
+ "maximum": 4294967295,
289
+ "minimum": 0,
290
+ "type": "integer"
291
+ },
292
+ "kind": {
293
+ "const": "double_bond",
294
+ "type": "string"
295
+ },
296
+ "refs": {
297
+ "items": {
298
+ "format": "uint32",
299
+ "maximum": 4294967295,
300
+ "minimum": 0,
301
+ "type": "integer"
302
+ },
303
+ "maxItems": 2,
304
+ "minItems": 2,
305
+ "type": "array",
306
+ "uniqueItems": true
307
+ },
308
+ "relation": {
309
+ "$ref": "#/$defs/Relation"
310
+ }
311
+ },
312
+ "required": [
313
+ "kind",
314
+ "bond",
315
+ "refs",
316
+ "relation"
317
+ ],
318
+ "type": "object"
319
+ },
320
+ {
321
+ "additionalProperties": false,
322
+ "properties": {
323
+ "bond": {
324
+ "format": "uint32",
325
+ "maximum": 4294967295,
326
+ "minimum": 0,
327
+ "type": "integer"
328
+ },
329
+ "kind": {
330
+ "const": "atropisomer",
331
+ "type": "string"
332
+ },
333
+ "refs": {
334
+ "items": {
335
+ "$ref": "#/$defs/Ref"
336
+ },
337
+ "maxItems": 4,
338
+ "minItems": 4,
339
+ "type": "array"
340
+ },
341
+ "winding": {
342
+ "$ref": "#/$defs/AxialWinding"
343
+ }
344
+ },
345
+ "required": [
346
+ "kind",
347
+ "bond",
348
+ "refs",
349
+ "winding"
350
+ ],
351
+ "type": "object"
352
+ }
353
+ ]
354
+ },
355
+ "StereoGroup": {
356
+ "oneOf": [
357
+ {
358
+ "additionalProperties": false,
359
+ "properties": {
360
+ "id": {
361
+ "format": "uint32",
362
+ "maximum": 4294967295,
363
+ "minimum": 0,
364
+ "type": "integer"
365
+ },
366
+ "kind": {
367
+ "const": "and",
368
+ "type": "string"
369
+ },
370
+ "stereo": {
371
+ "items": {
372
+ "format": "uint32",
373
+ "maximum": 4294967295,
374
+ "minimum": 0,
375
+ "type": "integer"
376
+ },
377
+ "minItems": 1,
378
+ "type": "array",
379
+ "uniqueItems": true
380
+ }
381
+ },
382
+ "required": [
383
+ "kind",
384
+ "id",
385
+ "stereo"
386
+ ],
387
+ "type": "object"
388
+ },
389
+ {
390
+ "additionalProperties": false,
391
+ "properties": {
392
+ "id": {
393
+ "format": "uint32",
394
+ "maximum": 4294967295,
395
+ "minimum": 0,
396
+ "type": "integer"
397
+ },
398
+ "kind": {
399
+ "const": "or",
400
+ "type": "string"
401
+ },
402
+ "stereo": {
403
+ "items": {
404
+ "format": "uint32",
405
+ "maximum": 4294967295,
406
+ "minimum": 0,
407
+ "type": "integer"
408
+ },
409
+ "minItems": 1,
410
+ "type": "array",
411
+ "uniqueItems": true
412
+ }
413
+ },
414
+ "required": [
415
+ "kind",
416
+ "id",
417
+ "stereo"
418
+ ],
419
+ "type": "object"
420
+ }
421
+ ]
422
+ },
423
+ "Winding": {
424
+ "description": "Tetrahedral winding, viewed from `neighbors[0]` toward the center.\n\n`Clockwise` means `neighbors[1]`, `neighbors[2]`, `neighbors[3]` occur in\nclockwise order in that view; `Anticlockwise` means the reverse order.\n`Unknown` records explicitly unknown configuration. No stereo entry means\nunspecified configuration.",
425
+ "enum": [
426
+ "clockwise",
427
+ "anticlockwise",
428
+ "unknown"
429
+ ],
430
+ "type": "string"
431
+ }
432
+ },
433
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
434
+ "additionalProperties": false,
435
+ "properties": {
436
+ "atoms": {
437
+ "items": {
438
+ "$ref": "#/$defs/Atom"
439
+ },
440
+ "type": "array"
441
+ },
442
+ "bonds": {
443
+ "items": {
444
+ "$ref": "#/$defs/Bond"
445
+ },
446
+ "type": "array"
447
+ },
448
+ "nazuchem_ir": {
449
+ "const": 1,
450
+ "type": "integer"
451
+ },
452
+ "parent": {
453
+ "items": {
454
+ "format": "uint32",
455
+ "maximum": 4294967295,
456
+ "minimum": 0,
457
+ "type": "integer"
458
+ },
459
+ "type": "array",
460
+ "uniqueItems": true
461
+ },
462
+ "polymers": {
463
+ "items": {
464
+ "$ref": "#/$defs/RepeatUnit"
465
+ },
466
+ "type": "array"
467
+ },
468
+ "position_variation": {
469
+ "items": {
470
+ "$ref": "#/$defs/PositionVariation"
471
+ },
472
+ "type": "array"
473
+ },
474
+ "stereo": {
475
+ "items": {
476
+ "$ref": "#/$defs/Stereo"
477
+ },
478
+ "type": "array"
479
+ },
480
+ "stereo_groups": {
481
+ "items": {
482
+ "$ref": "#/$defs/StereoGroup"
483
+ },
484
+ "type": "array"
485
+ }
486
+ },
487
+ "required": [
488
+ "nazuchem_ir",
489
+ "atoms",
490
+ "bonds"
491
+ ],
492
+ "title": "Molecule",
493
+ "type": "object"
494
+ }