@platforma-open/milaboratories.mixcr-shm-trees.workflow 2.3.0 → 2.3.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @platforma-open/milaboratories.mixcr-shm-trees.workflow
2
2
 
3
+ ## 2.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1edb8af: - Fix for column name "Number of clones" -> "Number of nodes"
8
+ - Added "Distance to parent" column
9
+ - "Distance to parent" column is now used as distance measure for tree visualization by default
10
+ - Assembling feature (i.e. VDJRegion) is added as individual export column
11
+
3
12
  ## 2.3.0
4
13
 
5
14
  ### Minor Changes
@@ -101,7 +101,7 @@ shmTreeTableOptions := func(dataDescription) {
101
101
  "name": "pl7.app/vdj/numberOfNodesWithClones",
102
102
  "valueType": "Long",
103
103
  "annotations": {
104
- "pl7.app/label": "Number of clones"
104
+ "pl7.app/label": "Number of nodes"
105
105
  }
106
106
  }
107
107
  })
@@ -306,8 +306,31 @@ shmTreeNodesTableOptions := func(dataDescription) {
306
306
  "spec": {
307
307
  "name": "pl7.app/dendrogram/distance",
308
308
  "valueType": "Double",
309
+ "domain": {
310
+ "pl7.app/dendrogram/distance/from": "germline"
311
+ },
309
312
  "annotations": {
310
313
  "pl7.app/label": "Distanse from germline",
314
+ "pl7.app/dendrogram/distance/from": "germline", // change to domain only, once can be selected in graphmaker
315
+ "pl7.app/dendrogram/isDistance": "true"
316
+ }
317
+ }
318
+ })
319
+
320
+ cmdArgs = append(cmdArgs, "-distance", "parent")
321
+ columns = append(columns, {
322
+ "column": "DistanceFromParent",
323
+ "id": "distance-from-parent",
324
+ "allowNA": true,
325
+ "spec": {
326
+ "name": "pl7.app/dendrogram/distance",
327
+ "valueType": "Double",
328
+ "domain": {
329
+ "pl7.app/dendrogram/distance/from": "parent"
330
+ },
331
+ "annotations": {
332
+ "pl7.app/label": "Distanse from parent",
333
+ "pl7.app/dendrogram/distance/from": "parent", // change to domain only, once can be selected in graphmaker
311
334
  "pl7.app/dendrogram/isDistance": "true"
312
335
  }
313
336
  }
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.mixcr-shm-trees.workflow",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "type": "module",
5
5
  "description": "Tengo-based template",
6
6
  "//": {
@@ -101,7 +101,7 @@ shmTreeTableOptions := func(dataDescription) {
101
101
  "name": "pl7.app/vdj/numberOfNodesWithClones",
102
102
  "valueType": "Long",
103
103
  "annotations": {
104
- "pl7.app/label": "Number of clones"
104
+ "pl7.app/label": "Number of nodes"
105
105
  }
106
106
  }
107
107
  })
@@ -306,8 +306,31 @@ shmTreeNodesTableOptions := func(dataDescription) {
306
306
  "spec": {
307
307
  "name": "pl7.app/dendrogram/distance",
308
308
  "valueType": "Double",
309
+ "domain": {
310
+ "pl7.app/dendrogram/distance/from": "germline"
311
+ },
309
312
  "annotations": {
310
313
  "pl7.app/label": "Distanse from germline",
314
+ "pl7.app/dendrogram/distance/from": "germline", // change to domain only, once can be selected in graphmaker
315
+ "pl7.app/dendrogram/isDistance": "true"
316
+ }
317
+ }
318
+ })
319
+
320
+ cmdArgs = append(cmdArgs, "-distance", "parent")
321
+ columns = append(columns, {
322
+ "column": "DistanceFromParent",
323
+ "id": "distance-from-parent",
324
+ "allowNA": true,
325
+ "spec": {
326
+ "name": "pl7.app/dendrogram/distance",
327
+ "valueType": "Double",
328
+ "domain": {
329
+ "pl7.app/dendrogram/distance/from": "parent"
330
+ },
331
+ "annotations": {
332
+ "pl7.app/label": "Distanse from parent",
333
+ "pl7.app/dendrogram/distance/from": "parent", // change to domain only, once can be selected in graphmaker
311
334
  "pl7.app/dendrogram/isDistance": "true"
312
335
  }
313
336
  }
@@ -52,12 +52,15 @@ self.body(func(inputs) {
52
52
  dataDescription.coveredFeatures = text.re_split(',', presetAnnotations["mixcr.com/coveredFeaturesOnExport"])
53
53
  // check that assemblingFeature feature is the same. If so, coveredFeatures will be the same too
54
54
  if (assemblingFeature == "") {
55
- assemblingFeature = dataDescription["mixcr.com/assemblingFeature"]
56
- } else if (assemblingFeature != dataDescription["mixcr.com/assemblingFeature"]) {
57
- ll.panic("Assmble features should be the same to process tress. Got " + assemblingFeature + " and " + dataDescription["mixcr.com/assemblingFeature"])
55
+ assemblingFeature = presetAnnotations["mixcr.com/assemblingFeature"]
56
+ } else if (assemblingFeature != presetAnnotations["mixcr.com/assemblingFeature"]) {
57
+ ll.panic("Assmble features should be the same to process tress. Got " + assemblingFeature + " and " + presetAnnotations["mixcr.com/assemblingFeature"])
58
58
  }
59
59
  }
60
60
 
61
+ // adding assembling feature to the list of covered features
62
+ dataDescription.coveredFeatures = append(dataDescription.coveredFeatures, assemblingFeature)
63
+
61
64
  // there should be call join on pfFrames, but it's not implements, so we will do it by hand
62
65
  dataGroupedByDonorId := prepareDonorColumn.groupDataByDonorId(inputs.donorColumn, inputs.datasets)
63
66