@platforma-open/milaboratories.repertoire-diversity-2.model 1.1.2 → 1.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.
- package/.turbo/turbo-build.log +13 -13
- package/CHANGELOG.md +6 -0
- package/dist/bundle.js +439 -369
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +16 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +4 -4
- package/src/index.ts +14 -6
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-open/milaboratories.repertoire-diversity-2.model",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Block model",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@platforma-sdk/model": "^1.29.
|
|
11
|
-
"@milaboratories/graph-maker": "^1.1.
|
|
10
|
+
"@platforma-sdk/model": "^1.29.17",
|
|
11
|
+
"@milaboratories/graph-maker": "^1.1.74"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@platforma-sdk/block-tools": "^2.5.
|
|
14
|
+
"@platforma-sdk/block-tools": "^2.5.38",
|
|
15
15
|
"typescript": "~5.5.4",
|
|
16
16
|
"vite": "^6.2.2",
|
|
17
17
|
"tsup": "~8.3.5",
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GraphMakerState } from '@milaboratories/graph-maker';
|
|
2
2
|
import type { InferOutputsType, PColumnSpec, PlDataTableState, PlRef } from '@platforma-sdk/model';
|
|
3
|
-
import { BlockModel, createPFrameForGraphs, createPlDataTable
|
|
3
|
+
import { BlockModel, createPFrameForGraphs, createPlDataTable } from '@platforma-sdk/model';
|
|
4
4
|
|
|
5
5
|
export type DiversityType = 'chao1' | 'd50' | 'efronThisted' |
|
|
6
6
|
'observed' | 'shannonWienerIndex' | 'shannonWiener' |
|
|
@@ -92,11 +92,19 @@ export const model = BlockModel.create()
|
|
|
92
92
|
.argsValid((ctx) => ctx.args.abundanceRef !== undefined)
|
|
93
93
|
|
|
94
94
|
.output('abundanceOptions', (ctx) =>
|
|
95
|
-
ctx.resultPool.getOptions(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
ctx.resultPool.getOptions([{
|
|
96
|
+
axes: [
|
|
97
|
+
{ name: 'pl7.app/sampleId' },
|
|
98
|
+
{ },
|
|
99
|
+
],
|
|
100
|
+
annotations: {
|
|
101
|
+
'pl7.app/isAbundance': 'true',
|
|
102
|
+
'pl7.app/abundance/normalized': 'false',
|
|
103
|
+
'pl7.app/abundance/isPrimary': 'true',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
]),
|
|
107
|
+
)
|
|
100
108
|
|
|
101
109
|
.output('pt', (ctx) => {
|
|
102
110
|
const pCols = ctx.outputs?.resolve('pf')?.getPColumns();
|