@platforma-open/milaboratories.immune-assay-data.model 1.5.4 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.immune-assay-data.model",
3
- "version": "1.5.4",
3
+ "version": "1.7.0",
4
4
  "description": "Block model",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,13 +15,13 @@
15
15
  "./dist/model.json": "./dist/model.json"
16
16
  },
17
17
  "dependencies": {
18
- "@platforma-sdk/model": "1.58.3",
19
- "@milaboratories/graph-maker": "1.2.0"
18
+ "@platforma-sdk/model": "1.58.19",
19
+ "@milaboratories/graph-maker": "1.2.3"
20
20
  },
21
21
  "devDependencies": {
22
- "@milaboratories/ts-builder": "1.2.11",
23
- "@milaboratories/ts-configs": "1.2.1",
24
- "@platforma-sdk/block-tools": "2.6.62",
22
+ "@milaboratories/ts-builder": "1.3.0",
23
+ "@milaboratories/ts-configs": "1.2.2",
24
+ "@platforma-sdk/block-tools": "2.6.67",
25
25
  "@platforma-sdk/eslint-config": "1.2.0",
26
26
  "eslint": "^9.25.1",
27
27
  "typescript": "~5.6.3",
package/src/index.ts CHANGED
@@ -39,10 +39,14 @@ export type BlockArgs = {
39
39
  targetRef?: SUniversalPColumnId;
40
40
  fileHandle?: ImportFileHandle;
41
41
  fileExtension?: string;
42
+ detectedXsvType?: 'csv' | 'tsv';
42
43
  importColumns?: ImportColumnInfo[];
43
44
  sequenceColumnHeader?: string;
44
45
  selectedColumns: string[];
45
46
  settings: Settings;
47
+ lessSensitive: boolean;
48
+ mem?: number;
49
+ cpu?: number;
46
50
  };
47
51
 
48
52
  export type UiState = {
@@ -96,6 +100,7 @@ export const model = BlockModel.create()
96
100
  similarityType: 'alignment-score',
97
101
  },
98
102
  selectedColumns: [],
103
+ lessSensitive: false,
99
104
  })
100
105
 
101
106
  .withUiState<UiState>({
@@ -174,7 +179,7 @@ export const model = BlockModel.create()
174
179
  )
175
180
 
176
181
  .outputWithStatus('table', (ctx) => {
177
- if (ctx.outputs?.resolve('emptyResults')?.getDataAsJson<boolean>()) {
182
+ if (ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true) {
178
183
  return undefined;
179
184
  }
180
185
  const cols = ctx.outputs?.resolve('table')?.getPColumns();
@@ -189,7 +194,7 @@ export const model = BlockModel.create()
189
194
  })
190
195
 
191
196
  .output('pf', (ctx) => {
192
- if (ctx.outputs?.resolve('emptyResults')?.getDataAsJson<boolean>()) {
197
+ if (ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true) {
193
198
  return undefined;
194
199
  }
195
200
  const cols = ctx.outputs?.resolve('table')?.getPColumns();
@@ -200,7 +205,7 @@ export const model = BlockModel.create()
200
205
  })
201
206
 
202
207
  .output('assaySequenceSpec', (ctx): PColumnSpec | undefined => {
203
- if (ctx.outputs?.resolve('emptyResults')?.getDataAsJson<boolean>()) {
208
+ if (ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true) {
204
209
  return undefined;
205
210
  }
206
211
  const cols = ctx.outputs?.resolve('table')?.getPColumns();
@@ -212,7 +217,7 @@ export const model = BlockModel.create()
212
217
  })
213
218
 
214
219
  .output('msaPf', (ctx) => {
215
- if (ctx.outputs?.resolve('emptyResults')?.getDataAsJson<boolean>()) {
220
+ if (ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true) {
216
221
  return undefined;
217
222
  }
218
223
  const cols = ctx.outputs?.resolve('table')?.getPColumns();
@@ -230,6 +235,10 @@ export const model = BlockModel.create()
230
235
  return createPFrameForGraphs(ctx, [...msaCols, ...cols, ...columns.props]);
231
236
  })
232
237
 
238
+ .output('emptyClonesInput', (ctx) =>
239
+ ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true,
240
+ )
241
+
233
242
  .output('isRunning', (ctx) => ctx.outputs?.getIsReadyOrError() === false)
234
243
 
235
244
  .title(() => 'Immune Assay Data')
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,gBAAgB,EAIhB,kBAAkB,EAClB,6BAA6B,EAC7B,KAAK,EAEL,mBAAmB,EAEpB,MAAM,sBAAsB,CAAC;AAS9B,KAAK,QAAQ,GAAG;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,mBAAmB,GAAG,iBAAiB,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAClC,oEAAoE;IACpE,YAAY,CAAC,EAAE,YAAY,GAAG,WAAW,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACnC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,cAAc,EAAE,6BAA6B,CAAC;CAC/C,CAAC;AAgCF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+JR,CAAC;AAEX,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../src/label.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,UAqBA"}