@platforma-open/milaboratories.sequence-properties.model 1.2.0 → 1.2.2
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 +14 -14
- package/.turbo/turbo-check.log +5 -3
- package/CHANGELOG.md +12 -0
- package/dist/bundle.js +521 -176
- package/dist/bundle.js.map +1 -1
- package/dist/dataModel.cjs +2 -2
- package/dist/dataModel.cjs.map +1 -1
- package/dist/dataModel.js +2 -2
- package/dist/dataModel.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +6 -6
- package/src/dataModel.ts +2 -2
- package/src/index.ts +11 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-open/milaboratories.sequence-properties.model",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Block model",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"./dist/*": "./dist/*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@milaboratories/graph-maker": "1.
|
|
18
|
-
"@milaboratories/helpers": "
|
|
19
|
-
"@platforma-sdk/model": "1.
|
|
17
|
+
"@milaboratories/graph-maker": "1.4.0",
|
|
18
|
+
"@milaboratories/helpers": "1.14.2",
|
|
19
|
+
"@platforma-sdk/model": "1.75.5"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@milaboratories/ts-builder": "1.
|
|
22
|
+
"@milaboratories/ts-builder": "1.4.0",
|
|
23
23
|
"@milaboratories/ts-configs": "1.2.3",
|
|
24
|
-
"@platforma-sdk/block-tools": "2.7.
|
|
24
|
+
"@platforma-sdk/block-tools": "2.7.23"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@types/node": "*",
|
package/src/dataModel.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { createPlDataTableStateV2, DataModelBuilder } from "@platforma-sdk/model
|
|
|
3
3
|
import type { BlockData, BlockDataV1 } from "./types";
|
|
4
4
|
|
|
5
5
|
const DEFAULT_SCATTER_STATE: GraphMakerState = {
|
|
6
|
-
title: "",
|
|
6
|
+
title: "Property Relationships",
|
|
7
7
|
template: "dots",
|
|
8
8
|
currentTab: null,
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
const DEFAULT_HISTOGRAM_STATE: GraphMakerState = {
|
|
12
|
-
title: "",
|
|
12
|
+
title: "Property Distribution",
|
|
13
13
|
template: "bins",
|
|
14
14
|
currentTab: null,
|
|
15
15
|
layersSettings: {
|
package/src/index.ts
CHANGED
|
@@ -8,13 +8,15 @@ import {
|
|
|
8
8
|
Annotation,
|
|
9
9
|
ArrayColumnProvider,
|
|
10
10
|
BlockModelV3,
|
|
11
|
+
createPFrameForGraphs,
|
|
11
12
|
createPlDataTableV3,
|
|
12
13
|
} from "@platforma-sdk/model";
|
|
13
14
|
import { blockDataModel } from "./dataModel";
|
|
14
15
|
import type { BlockArgs, WorkflowInfo } from "./types";
|
|
15
16
|
|
|
16
|
-
export type
|
|
17
|
+
export type * from "@milaboratories/helpers";
|
|
17
18
|
export { blockDataModel } from "./dataModel";
|
|
19
|
+
export type { BlockArgs, BlockData, WorkflowInfo, WorkflowMode, WorkflowReceptor } from "./types";
|
|
18
20
|
|
|
19
21
|
const inputAnchorSpecs = [
|
|
20
22
|
// Peptide mode — universal naming
|
|
@@ -47,9 +49,7 @@ export const platforma = BlockModelV3.create(blockDataModel)
|
|
|
47
49
|
inputAnchor: data.inputAnchor,
|
|
48
50
|
};
|
|
49
51
|
})
|
|
50
|
-
.output("inputOptions", (ctx) =>
|
|
51
|
-
ctx.resultPool.getOptions(inputAnchorSpecs, { refsWithEnrichments: true }),
|
|
52
|
-
)
|
|
52
|
+
.output("inputOptions", (ctx) => ctx.resultPool.getOptions(inputAnchorSpecs))
|
|
53
53
|
.output("inputSpec", (ctx) =>
|
|
54
54
|
ctx.data.inputAnchor ? ctx.resultPool.getPColumnSpecByRef(ctx.data.inputAnchor) : undefined,
|
|
55
55
|
)
|
|
@@ -136,7 +136,9 @@ export const platforma = BlockModelV3.create(blockDataModel)
|
|
|
136
136
|
match: (spec) =>
|
|
137
137
|
!spec.annotations?.[Annotation.Trace]?.includes(
|
|
138
138
|
"milaboratories.sequence-properties",
|
|
139
|
-
) &&
|
|
139
|
+
) &&
|
|
140
|
+
spec.annotations?.["pl7.app/isLinkerColumn"] !== "true" &&
|
|
141
|
+
spec.annotations?.["pl7.app/isOutput"] !== "true",
|
|
140
142
|
visibility: "optional",
|
|
141
143
|
},
|
|
142
144
|
],
|
|
@@ -179,7 +181,7 @@ export const platforma = BlockModelV3.create(blockDataModel)
|
|
|
179
181
|
),
|
|
180
182
|
)
|
|
181
183
|
: [];
|
|
182
|
-
return ctx
|
|
184
|
+
return createPFrameForGraphs(ctx, [...pCols, ...upstreamMeta]);
|
|
183
185
|
})
|
|
184
186
|
.output("propertiesPfCols", (ctx): PColumnIdAndSpec[] | undefined => {
|
|
185
187
|
const pCols = ctx.outputs?.resolve("propertiesPf")?.getPColumns();
|
|
@@ -189,9 +191,9 @@ export const platforma = BlockModelV3.create(blockDataModel)
|
|
|
189
191
|
.title(() => "Sequence Properties")
|
|
190
192
|
.subtitle((ctx) => ctx.data.defaultBlockLabel ?? "")
|
|
191
193
|
.sections(() => [
|
|
192
|
-
{ type: "link"
|
|
193
|
-
{ type: "link"
|
|
194
|
-
{ type: "link"
|
|
194
|
+
{ type: "link", href: "/", label: "Main" },
|
|
195
|
+
{ type: "link", href: "/scatter", label: "Property Relationships" },
|
|
196
|
+
{ type: "link", href: "/histogram", label: "Property Distribution" },
|
|
195
197
|
])
|
|
196
198
|
.done();
|
|
197
199
|
|