@platforma-open/milaboratories.repertoire-diversity-2.model 1.5.5 → 1.5.6
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 +3 -3
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/bundle.js +5 -3
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
- package/src/index.ts +9 -7
package/dist/index.cjs
CHANGED
|
@@ -6,9 +6,10 @@ var converters = require('./converters.cjs');
|
|
|
6
6
|
const model = model$1.BlockModel.create()
|
|
7
7
|
.withArgs({
|
|
8
8
|
metrics: [],
|
|
9
|
+
defaultBlockLabel: '',
|
|
10
|
+
customBlockLabel: '',
|
|
9
11
|
})
|
|
10
12
|
.withUiState({
|
|
11
|
-
blockTitle: 'Repertoire Diversity',
|
|
12
13
|
graphState: {
|
|
13
14
|
title: 'Repertoire Diversity',
|
|
14
15
|
template: 'bar',
|
|
@@ -76,7 +77,7 @@ const model = model$1.BlockModel.create()
|
|
|
76
77
|
'pl7.app/abundance/isPrimary': 'true',
|
|
77
78
|
},
|
|
78
79
|
},
|
|
79
|
-
]))
|
|
80
|
+
], { includeNativeLabel: true }))
|
|
80
81
|
.outputWithStatus('pt', (ctx) => {
|
|
81
82
|
const pCols = ctx.outputs?.resolve('pf')?.getPColumns();
|
|
82
83
|
if (pCols === undefined) {
|
|
@@ -103,7 +104,8 @@ const model = model$1.BlockModel.create()
|
|
|
103
104
|
}));
|
|
104
105
|
})
|
|
105
106
|
.output('isRunning', (ctx) => ctx.outputs?.getIsReadyOrError() === false)
|
|
106
|
-
.title((
|
|
107
|
+
.title(() => 'Repertoire Diversity')
|
|
108
|
+
.subtitle((ctx) => ctx.args.customBlockLabel || ctx.args.defaultBlockLabel)
|
|
107
109
|
.sections((_) => [
|
|
108
110
|
{ type: 'link', href: '/', label: 'Main' },
|
|
109
111
|
{ type: 'link', href: '/diversityGraph', label: 'Diversity Graph' },
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import type { GraphMakerState } from '@milaboratories/graph-maker';\nimport type {
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import type { GraphMakerState } from '@milaboratories/graph-maker';\nimport type { PColumnIdAndSpec, PlDataTableStateV2, PlRef } from '@platforma-sdk/model';\nimport { BlockModel, createPFrameForGraphs, createPlDataTableStateV2, createPlDataTableV2 } from '@platforma-sdk/model';\n\nexport * from './converters';\n\nexport type DiversityType = 'chao1' | 'd50' | 'efronThisted' |\n 'observed' | 'shannonWienerIndex' | 'shannonWiener' |\n 'normalizedShannonWiener' | 'inverseSimpson' | 'gini';\n\nexport type Metric = {\n type: DiversityType | undefined;\n downsampling: {\n type?: 'none' | 'top' | 'cumtop' | 'hypergeometric' ;\n valueChooser?: 'min' | 'fixed' | 'max' | 'auto';\n n?: number;\n };\n};\n\nexport type MetricUI = Metric & {\n id: string;\n isExpanded?: boolean;\n};\n\nexport type BlockArgs = {\n defaultBlockLabel: string;\n customBlockLabel: string;\n abundanceRef?: PlRef;\n metrics: Metric[];\n};\n\nexport type UiState = {\n metrics: MetricUI[];\n tableState: PlDataTableStateV2;\n graphState: GraphMakerState;\n};\n\nexport const model = BlockModel.create()\n .withArgs<BlockArgs>({\n metrics: [],\n defaultBlockLabel: '',\n customBlockLabel: '',\n })\n\n .withUiState<UiState>({\n graphState: {\n title: 'Repertoire Diversity',\n template: 'bar',\n currentTab: null,\n },\n\n tableState: createPlDataTableStateV2(),\n\n metrics: [\n {\n id: 'observed',\n type: 'observed',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n {\n id: 'shannonWiener',\n type: 'shannonWiener',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n {\n id: 'chao1',\n type: 'chao1',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n {\n id: 'gini',\n type: 'gini',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n {\n id: 'd50',\n type: 'd50',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n ],\n })\n\n .argsValid((ctx) => ctx.args.abundanceRef !== undefined\n && ctx.args.metrics.every((metric) => metric.type !== undefined))\n\n .output('abundanceOptions', (ctx) =>\n ctx.resultPool.getOptions([{\n axes: [\n { name: 'pl7.app/sampleId' },\n { },\n ],\n annotations: {\n 'pl7.app/isAbundance': 'true',\n 'pl7.app/abundance/normalized': 'false',\n 'pl7.app/abundance/isPrimary': 'true',\n },\n },\n ], { includeNativeLabel: true }),\n )\n\n .outputWithStatus('pt', (ctx) => {\n const pCols = ctx.outputs?.resolve('pf')?.getPColumns();\n if (pCols === undefined) {\n return undefined;\n }\n\n return createPlDataTableV2(ctx, pCols, ctx.uiState.tableState);\n })\n\n .outputWithStatus('pf', (ctx) => {\n const pCols = ctx.outputs?.resolve('pf')?.getPColumns();\n if (pCols === undefined) {\n return undefined;\n }\n\n return createPFrameForGraphs(ctx, pCols);\n })\n\n // Return a list of Pcols for plot defaults\n .output('pcols', (ctx) => {\n const pCols = ctx.outputs?.resolve('pf')?.getPColumns();\n\n if (pCols === undefined || pCols.length === 0) {\n return undefined;\n }\n\n return pCols.map(\n (c) =>\n ({\n columnId: c.id,\n spec: c.spec,\n } satisfies PColumnIdAndSpec),\n );\n })\n\n .output('isRunning', (ctx) => ctx.outputs?.getIsReadyOrError() === false)\n\n .title(() => 'Repertoire Diversity')\n\n .subtitle((ctx) => ctx.args.customBlockLabel || ctx.args.defaultBlockLabel)\n\n .sections((_) => [\n { type: 'link', href: '/', label: 'Main' },\n { type: 'link', href: '/diversityGraph', label: 'Diversity Graph' },\n ])\n\n .done(2);\n"],"names":["BlockModel","createPlDataTableStateV2","createPlDataTableV2","createPFrameForGraphs"],"mappings":";;;;;AAqCO,MAAM,KAAK,GAAGA,kBAAU,CAAC,MAAM;AACnC,KAAA,QAAQ,CAAY;AACnB,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,iBAAiB,EAAE,EAAE;AACrB,IAAA,gBAAgB,EAAE,EAAE;CACrB;AAEA,KAAA,WAAW,CAAU;AACpB,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,sBAAsB;AAC7B,QAAA,QAAQ,EAAE,KAAK;AACf,QAAA,UAAU,EAAE,IAAI;AACjB,KAAA;IAED,UAAU,EAAEC,gCAAwB,EAAE;AAEtC,IAAA,OAAO,EAAE;AACP,QAAA;AACE,YAAA,EAAE,EAAE,UAAU;AACd,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,YAAY,EAAE;AACZ,gBAAA,IAAI,EAAE,gBAAgB;AACtB,gBAAA,YAAY,EAAE,MAAM;AACrB,aAAA;AACD,YAAA,UAAU,EAAE,KAAK;AAClB,SAAA;AACD,QAAA;AACE,YAAA,EAAE,EAAE,eAAe;AACnB,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,YAAY,EAAE;AACZ,gBAAA,IAAI,EAAE,gBAAgB;AACtB,gBAAA,YAAY,EAAE,MAAM;AACrB,aAAA;AACD,YAAA,UAAU,EAAE,KAAK;AAClB,SAAA;AACD,QAAA;AACE,YAAA,EAAE,EAAE,OAAO;AACX,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,YAAY,EAAE;AACZ,gBAAA,IAAI,EAAE,gBAAgB;AACtB,gBAAA,YAAY,EAAE,MAAM;AACrB,aAAA;AACD,YAAA,UAAU,EAAE,KAAK;AAClB,SAAA;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EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;CACpE;KAEA,IAAI,CAAC,CAAC;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphMakerState } from '@milaboratories/graph-maker';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PlDataTableStateV2, PlRef } from '@platforma-sdk/model';
|
|
3
3
|
export * from './converters';
|
|
4
4
|
export type DiversityType = 'chao1' | 'd50' | 'efronThisted' | 'observed' | 'shannonWienerIndex' | 'shannonWiener' | 'normalizedShannonWiener' | 'inverseSimpson' | 'gini';
|
|
5
5
|
export type Metric = {
|
|
@@ -15,12 +15,13 @@ export type MetricUI = Metric & {
|
|
|
15
15
|
isExpanded?: boolean;
|
|
16
16
|
};
|
|
17
17
|
export type BlockArgs = {
|
|
18
|
+
defaultBlockLabel: string;
|
|
19
|
+
customBlockLabel: string;
|
|
18
20
|
abundanceRef?: PlRef;
|
|
19
21
|
metrics: Metric[];
|
|
20
22
|
};
|
|
21
23
|
export type UiState = {
|
|
22
24
|
metrics: MetricUI[];
|
|
23
|
-
blockTitle: string;
|
|
24
25
|
tableState: PlDataTableStateV2;
|
|
25
26
|
graphState: GraphMakerState;
|
|
26
27
|
};
|
|
@@ -78,5 +79,4 @@ export declare const model: import("@platforma-sdk/model").PlatformaExtended<imp
|
|
|
78
79
|
__unwrap: true;
|
|
79
80
|
};
|
|
80
81
|
}, UiState, "/" | "/diversityGraph">>;
|
|
81
|
-
export type BlockOutputs = InferOutputsType<typeof model>;
|
|
82
82
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,
|
|
1
|
+
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@@ -4,9 +4,10 @@ export { convertMetricsUiToArgs } from './converters.js';
|
|
|
4
4
|
const model = BlockModel.create()
|
|
5
5
|
.withArgs({
|
|
6
6
|
metrics: [],
|
|
7
|
+
defaultBlockLabel: '',
|
|
8
|
+
customBlockLabel: '',
|
|
7
9
|
})
|
|
8
10
|
.withUiState({
|
|
9
|
-
blockTitle: 'Repertoire Diversity',
|
|
10
11
|
graphState: {
|
|
11
12
|
title: 'Repertoire Diversity',
|
|
12
13
|
template: 'bar',
|
|
@@ -74,7 +75,7 @@ const model = BlockModel.create()
|
|
|
74
75
|
'pl7.app/abundance/isPrimary': 'true',
|
|
75
76
|
},
|
|
76
77
|
},
|
|
77
|
-
]))
|
|
78
|
+
], { includeNativeLabel: true }))
|
|
78
79
|
.outputWithStatus('pt', (ctx) => {
|
|
79
80
|
const pCols = ctx.outputs?.resolve('pf')?.getPColumns();
|
|
80
81
|
if (pCols === undefined) {
|
|
@@ -101,7 +102,8 @@ const model = BlockModel.create()
|
|
|
101
102
|
}));
|
|
102
103
|
})
|
|
103
104
|
.output('isRunning', (ctx) => ctx.outputs?.getIsReadyOrError() === false)
|
|
104
|
-
.title((
|
|
105
|
+
.title(() => 'Repertoire Diversity')
|
|
106
|
+
.subtitle((ctx) => ctx.args.customBlockLabel || ctx.args.defaultBlockLabel)
|
|
105
107
|
.sections((_) => [
|
|
106
108
|
{ type: 'link', href: '/', label: 'Main' },
|
|
107
109
|
{ type: 'link', href: '/diversityGraph', label: 'Diversity Graph' },
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { GraphMakerState } from '@milaboratories/graph-maker';\nimport type {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { GraphMakerState } from '@milaboratories/graph-maker';\nimport type { PColumnIdAndSpec, PlDataTableStateV2, PlRef } from '@platforma-sdk/model';\nimport { BlockModel, createPFrameForGraphs, createPlDataTableStateV2, createPlDataTableV2 } from '@platforma-sdk/model';\n\nexport * from './converters';\n\nexport type DiversityType = 'chao1' | 'd50' | 'efronThisted' |\n 'observed' | 'shannonWienerIndex' | 'shannonWiener' |\n 'normalizedShannonWiener' | 'inverseSimpson' | 'gini';\n\nexport type Metric = {\n type: DiversityType | undefined;\n downsampling: {\n type?: 'none' | 'top' | 'cumtop' | 'hypergeometric' ;\n valueChooser?: 'min' | 'fixed' | 'max' | 'auto';\n n?: number;\n };\n};\n\nexport type MetricUI = Metric & {\n id: string;\n isExpanded?: boolean;\n};\n\nexport type BlockArgs = {\n defaultBlockLabel: string;\n customBlockLabel: string;\n abundanceRef?: PlRef;\n metrics: Metric[];\n};\n\nexport type UiState = {\n metrics: MetricUI[];\n tableState: PlDataTableStateV2;\n graphState: GraphMakerState;\n};\n\nexport const model = BlockModel.create()\n .withArgs<BlockArgs>({\n metrics: [],\n defaultBlockLabel: '',\n customBlockLabel: '',\n })\n\n .withUiState<UiState>({\n graphState: {\n title: 'Repertoire Diversity',\n template: 'bar',\n currentTab: null,\n },\n\n tableState: createPlDataTableStateV2(),\n\n metrics: [\n {\n id: 'observed',\n type: 'observed',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n {\n id: 'shannonWiener',\n type: 'shannonWiener',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n {\n id: 'chao1',\n type: 'chao1',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n {\n id: 'gini',\n type: 'gini',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n {\n id: 'd50',\n type: 'd50',\n downsampling: {\n type: 'hypergeometric',\n valueChooser: 'auto',\n },\n isExpanded: false,\n },\n ],\n })\n\n .argsValid((ctx) => ctx.args.abundanceRef !== undefined\n && ctx.args.metrics.every((metric) => metric.type !== undefined))\n\n .output('abundanceOptions', (ctx) =>\n ctx.resultPool.getOptions([{\n axes: [\n { name: 'pl7.app/sampleId' },\n { },\n ],\n annotations: {\n 'pl7.app/isAbundance': 'true',\n 'pl7.app/abundance/normalized': 'false',\n 'pl7.app/abundance/isPrimary': 'true',\n },\n },\n ], { includeNativeLabel: true }),\n )\n\n .outputWithStatus('pt', (ctx) => {\n const pCols = ctx.outputs?.resolve('pf')?.getPColumns();\n if (pCols === undefined) {\n return undefined;\n }\n\n return createPlDataTableV2(ctx, pCols, ctx.uiState.tableState);\n })\n\n .outputWithStatus('pf', (ctx) => {\n const pCols = ctx.outputs?.resolve('pf')?.getPColumns();\n if (pCols === undefined) {\n return undefined;\n }\n\n return createPFrameForGraphs(ctx, pCols);\n })\n\n // Return a list of Pcols for plot defaults\n .output('pcols', (ctx) => {\n const pCols = ctx.outputs?.resolve('pf')?.getPColumns();\n\n if (pCols === undefined || pCols.length === 0) {\n return undefined;\n }\n\n return pCols.map(\n (c) =>\n ({\n columnId: c.id,\n spec: c.spec,\n } satisfies PColumnIdAndSpec),\n );\n })\n\n .output('isRunning', (ctx) => ctx.outputs?.getIsReadyOrError() === false)\n\n .title(() => 'Repertoire Diversity')\n\n .subtitle((ctx) => ctx.args.customBlockLabel || ctx.args.defaultBlockLabel)\n\n .sections((_) => [\n { type: 'link', href: '/', label: 'Main' },\n { type: 'link', href: '/diversityGraph', label: 'Diversity Graph' },\n ])\n\n .done(2);\n"],"names":[],"mappings":";;;AAqCO,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM;AACnC,KAAA,QAAQ,CAAY;AACnB,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,iBAAiB,EAAE,EAAE;AACrB,IAAA,gBAAgB,EAAE,EAAE;CACrB;AAEA,KAAA,WAAW,CAAU;AACpB,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,sBAAsB;AAC7B,QAAA,QAAQ,EAAE,KAAK;AACf,QAAA,UAAU,EAAE,IAAI;AACjB,KAA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