Skip to content

Commit 2e9d9fd

Browse files
authored
Merge pull request #10 from Materials-Consortia/component-stdinchi
Introduce standard InChIs for connected components
2 parents 39e4b86 + 700cea5 commit 2e9d9fd

3 files changed

Lines changed: 97 additions & 0 deletions

File tree

src/v0.1.0/entrytypes/structures.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ x-optimade-definition:
99
name: "structures"
1010
label: "structures_entrytype_cheminformatics"
1111
properties:
12+
_cheminfo_components_stdinchi:
13+
$$inherit: "/properties/structures/_cheminfo_components_stdinchi"
14+
x-optimade-implementation:
15+
support: "may"
16+
sortable: false
17+
query-support: "none"
18+
response-level: "yes"
19+
_cheminfo_components_stdinchi_counts:
20+
$$inherit: "/properties/structures/_cheminfo_components_stdinchi_counts"
21+
x-optimade-implementation:
22+
support: "may"
23+
sortable: false
24+
query-support: "none"
25+
response-level: "yes"
1226
_cheminfo_preferred_iupac_name:
1327
$$inherit: "/properties/structures/_cheminfo_preferred_iupac_name"
1428
x-optimade-implementation:
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
$$schema: "https://schemas.optimade.org/meta/v1.2/optimade/property_definition"
2+
$id: "https://schemas.optimade.org/namespaces/cheminformatics/v0.1/properties/structures/_cheminfo_components_stdinchi"
3+
title: "The standard InChI identifiers for molecular entities of the structure"
4+
x-optimade-type: "list"
5+
x-optimade-definition:
6+
kind: "property"
7+
version: "0.1.0"
8+
format: "1.2"
9+
name: "_cheminfo_components_stdinchi"
10+
label: "_cheminfo_components_stdinchi_structures"
11+
type:
12+
- "array"
13+
- "null"
14+
x-optimade-dimensions:
15+
names: ["dim__cheminfo_components"]
16+
description: |-
17+
The standard InChI identifiers for the molecular entities of the structure.
18+
The InChI identifier is defined by the InChI Trust (https://www.inchi-trust.org).
19+
Values MUST start with `InChI=` and MUST be unique.
20+
Molecular entities MUST NOT overlap, i.e., any atom of a structure MUST NOT appear in more than one entity.
21+
There MAY be atoms participating in none of the molecular entities: providers are allowed to exclude certain entities if they wish.
22+
23+
**Explained examples**:
24+
25+
- `["InChI=1S/ClH/h1H/p-1", "InChI=1S/Na/q+1"]`: NaCl (salt) broken into constituent ions.
26+
- `["InChI=1S/C7H6O3/c8-6-4-2-1-3-5(6)7(9)10/h1-4,8H,(H,9,10)", "InChI=1S/C8H10N4O2/c1-10-4-9-6-5(10)7(13)12(3)8(14)11(6)2/h4H,1-3H3"]`: a co-crystal of two organic compounds.
27+
examples:
28+
- ["InChI=1S/ClH/h1H/p-1", "InChI=1S/Na/q+1"]
29+
- ["InChI=1S/C7H6O3/c8-6-4-2-1-3-5(6)7(9)10/h1-4,8H,(H,9,10)", "InChI=1S/C8H10N4O2/c1-10-4-9-6-5(10)7(13)12(3)8(14)11(6)2/h4H,1-3H3"]
30+
x-optimade-metadata-definition:
31+
title: "Metadata for the _cheminfo_components_stdinchi field"
32+
description: "This dictionary contains the per-entry metadata for the _cheminfo_components_stdinchi field."
33+
x-optimade-type: "dictionary"
34+
type:
35+
- "object"
36+
- "null"
37+
properties:
38+
_cheminfo_library_version:
39+
description: |-
40+
The version of the InChI software library (https://github.com/IUPAC-InChI/InChI) used to generate the standard InChI values.
41+
MUST NOT start with 'v'.
42+
x-optimade-type: "string"
43+
type:
44+
- "string"
45+
examples:
46+
- "1.07.4"
47+
x-optimade-unit: "inapplicable"
48+
x-optimade-unit: "inapplicable"
49+
x-optimade-unit: "inapplicable"
50+
items:
51+
type:
52+
- "string"
53+
x-optimade-type: "string"
54+
x-optimade-unit: "inapplicable"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
$$schema: "https://schemas.optimade.org/meta/v1.2/optimade/property_definition"
2+
$id: "https://schemas.optimade.org/namespaces/cheminformatics/v0.1/properties/structures/_cheminfo_components_stdinchi_counts"
3+
title: "The counts of molecular entities of the structure as expressed in '_cheminfo_components_stdinchi' property"
4+
x-optimade-type: "list"
5+
x-optimade-definition:
6+
kind: "property"
7+
version: "0.1.0"
8+
format: "1.2"
9+
name: "_cheminfo_components_stdinchi_counts"
10+
label: "_cheminfo_components_stdinchi_counts_structures"
11+
type:
12+
- "array"
13+
- "null"
14+
x-optimade-dimensions:
15+
names: ["dim__cheminfo_components"]
16+
description: |-
17+
The occurrence count of the molecular entities in the structure as given in '_cheminfo_components_stdinchi' property.
18+
It MUST be a list of length equal to the length of '_cheminfo_components_stdinchi'.
19+
examples:
20+
- [1, 1]
21+
- [2, 10]
22+
- [1, 0.5]
23+
x-optimade-unit: "inapplicable"
24+
items:
25+
type:
26+
- "number"
27+
x-optimade-type: "float"
28+
x-optimade-unit: "dimensionless"
29+
minimum: 0.0

0 commit comments

Comments
 (0)