@extantape/onephylogeny-engine 0.0.0-stage → 0.1.0-alpha.9
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.
- package/LICENSE +75 -0
- package/README.md +8 -2
- package/dist/index.d.ts +441 -0
- package/dist/index.js +1327 -0
- package/package.json +46 -3
- package/schemas/dataset.schema.json +77 -0
- package/schemas/examples.schema.json +165 -0
package/package.json
CHANGED
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extantape/onephylogeny-engine",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0-alpha.9",
|
|
4
|
+
"description": "OnePhylogeny engine: runs profiles end to end with immutable run records and structured logs: fetch, anchor, gate, build panels, validate, test samples and build trees through replaceable ports.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"phylogenetics",
|
|
7
|
+
"reference-panel",
|
|
8
|
+
"genbank"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/ExtantApe/OnePhylogeny#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/ExtantApe/OnePhylogeny/issues"
|
|
13
|
+
},
|
|
14
|
+
"license": "PolyForm-Noncommercial-1.0.0",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/ExtantApe/OnePhylogeny.git",
|
|
18
|
+
"directory": "packages/engine"
|
|
19
|
+
},
|
|
20
|
+
"type": "module",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./schemas/*.json": "./schemas/*.json"
|
|
28
|
+
},
|
|
29
|
+
"main": "./dist/index.js",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"schemas",
|
|
34
|
+
"README.md",
|
|
35
|
+
"LICENSE"
|
|
36
|
+
],
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=22"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@extantape/onephylogeny-core": "^0.1.0-alpha.9",
|
|
42
|
+
"@extantape/onephylogeny-acquire": "^0.1.0-alpha.9"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsup src/index.ts --format esm --dts --clean --target es2022",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"test": "vitest run --passWithNoTests"
|
|
48
|
+
}
|
|
6
49
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "urn:onephylogeny:schema:dataset:v1",
|
|
3
|
+
"title": "OnePhylogeny dataset, schema version 1",
|
|
4
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"$ref": "#/definitions/DatasetManifest",
|
|
6
|
+
"definitions": {
|
|
7
|
+
"DatasetManifest": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": {
|
|
11
|
+
"type": "number",
|
|
12
|
+
"const": 1
|
|
13
|
+
},
|
|
14
|
+
"panel": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"id": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Records are plain JSON: ISO date strings, no classes. See docs/architecture/data-schema.md."
|
|
20
|
+
},
|
|
21
|
+
"version": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"checksum": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"id",
|
|
30
|
+
"version",
|
|
31
|
+
"checksum"
|
|
32
|
+
],
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
},
|
|
35
|
+
"files": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"builtWith": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"name": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"version": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"name",
|
|
55
|
+
"version"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
},
|
|
59
|
+
"description": "The software that wrote the examples. A copy is compatible with any version whose rerun of the examples matches."
|
|
60
|
+
},
|
|
61
|
+
"citations": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"description": "The panel's sources, as it cites them."
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": [
|
|
70
|
+
"schemaVersion",
|
|
71
|
+
"panel",
|
|
72
|
+
"files"
|
|
73
|
+
],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "urn:onephylogeny:schema:examples:v1",
|
|
3
|
+
"title": "OnePhylogeny examples, schema version 1",
|
|
4
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"$ref": "#/definitions/PanelExamples",
|
|
6
|
+
"definitions": {
|
|
7
|
+
"PanelExamples": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": {
|
|
11
|
+
"type": "number",
|
|
12
|
+
"const": 1
|
|
13
|
+
},
|
|
14
|
+
"panel": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"id": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Records are plain JSON: ISO date strings, no classes. See docs/architecture/data-schema.md."
|
|
20
|
+
},
|
|
21
|
+
"version": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"checksum": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"id",
|
|
30
|
+
"version",
|
|
31
|
+
"checksum"
|
|
32
|
+
],
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
},
|
|
35
|
+
"producedBy": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"name": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"version": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"name",
|
|
49
|
+
"version"
|
|
50
|
+
],
|
|
51
|
+
"additionalProperties": false
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"examples": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"$ref": "#/definitions/PanelExample"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"schemaVersion",
|
|
63
|
+
"panel",
|
|
64
|
+
"producedBy",
|
|
65
|
+
"examples"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
},
|
|
69
|
+
"PanelExample": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"id": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"kind": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"enum": [
|
|
78
|
+
"member",
|
|
79
|
+
"fragment",
|
|
80
|
+
"control"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"note": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Why this example is here, in words."
|
|
86
|
+
},
|
|
87
|
+
"sequence": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"expected": {
|
|
91
|
+
"$ref": "#/definitions/ExampleExpectation"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"id",
|
|
96
|
+
"kind",
|
|
97
|
+
"note",
|
|
98
|
+
"sequence",
|
|
99
|
+
"expected"
|
|
100
|
+
],
|
|
101
|
+
"additionalProperties": false
|
|
102
|
+
},
|
|
103
|
+
"ExampleExpectation": {
|
|
104
|
+
"anyOf": [
|
|
105
|
+
{
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"outcome": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"const": "result"
|
|
111
|
+
},
|
|
112
|
+
"statuses": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"additionalProperties": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"enum": [
|
|
117
|
+
"consistent",
|
|
118
|
+
"excluded_within_panel",
|
|
119
|
+
"not_evaluable",
|
|
120
|
+
"inconclusive"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"propertyNames": {
|
|
124
|
+
"description": "Records are plain JSON: ISO date strings, no classes. See docs/architecture/data-schema.md."
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"pairs": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"additionalProperties": {
|
|
130
|
+
"type": "string"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"required": [
|
|
135
|
+
"outcome",
|
|
136
|
+
"statuses",
|
|
137
|
+
"pairs"
|
|
138
|
+
],
|
|
139
|
+
"additionalProperties": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"outcome": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"const": "refused"
|
|
147
|
+
},
|
|
148
|
+
"codes": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"items": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": [
|
|
156
|
+
"outcome",
|
|
157
|
+
"codes"
|
|
158
|
+
],
|
|
159
|
+
"additionalProperties": false
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"description": "What an example must give again. Statuses per group and how each pair resolved, or the codes that refused it."
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|