Repository navigation
Expand file tree
/
Copy pathcustom-modifications.schema.json
More file actions
80 lines (80 loc) · 2.21 KB
/
Copy pathcustom-modifications.schema.json
File metadata and controls
80 lines (80 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/PerinMu/MolTranscode/blob/main/docs/custom-modifications.schema.json",
"title": "MolTranscode custom modification registry",
"type": "object",
"additionalProperties": false,
"properties": {
"schema_version": {
"const": 1,
"default": 1
},
"override": {
"type": "boolean",
"default": false
},
"side_chain_modifications": {
"type": "array",
"items": {
"$ref": "#/$defs/sideChain"
}
},
"n_terminal_modifications": {
"type": "array",
"items": {
"$ref": "#/$defs/nTerminus"
}
},
"c_terminal_modifications": {
"type": "array",
"items": {
"$ref": "#/$defs/cTerminus"
}
}
},
"$defs": {
"aliases": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
},
"sideChain": {
"type": "object",
"additionalProperties": false,
"required": ["name", "residue", "side_chain_smiles"],
"properties": {
"name": {"type": "string", "minLength": 1},
"residue": {"type": "string", "pattern": "^[ARNDCQEGHILKMFPSTWYVarndcqeghilkmfpstwyv]$"},
"side_chain_smiles": {"type": "string", "minLength": 1},
"d_side_chain_smiles": {"type": "string", "minLength": 1},
"aliases": {"$ref": "#/$defs/aliases"},
"description": {"type": "string"}
}
},
"nTerminus": {
"type": "object",
"additionalProperties": false,
"required": ["name", "prefix_smiles"],
"properties": {
"name": {"type": "string", "minLength": 1},
"prefix_smiles": {"type": "string", "minLength": 1},
"aliases": {"$ref": "#/$defs/aliases"},
"description": {"type": "string"}
}
},
"cTerminus": {
"type": "object",
"additionalProperties": false,
"required": ["name", "terminus_smiles"],
"properties": {
"name": {"type": "string", "minLength": 1},
"terminus_smiles": {"type": "string", "minLength": 1},
"aliases": {"$ref": "#/$defs/aliases"},
"description": {"type": "string"}
}
}
}
}