@platforma-open/milaboratories.top-antibodies.workflow 2.0.1 → 2.1.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.
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/work/antibody-tcr-lead-selection/antibody-tcr-lead-selection/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.top-antibodies.workflow@2.0.1 build /home/runner/work/antibody-tcr-lead-selection/antibody-tcr-lead-selection/workflow
3
+ > @platforma-open/milaboratories.top-antibodies.workflow@2.1.0 build /home/runner/work/antibody-tcr-lead-selection/antibody-tcr-lead-selection/workflow
4
4
  > shx rm -rf dist && pl-tengo check && pl-tengo build
5
5
 
6
6
  Processing "src/assembling-fasta.tpl.tengo"...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @platforma-open/milaboratories.top-antibodies.workflow
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 84a7fe5: Deal with ANARCI numbering issues
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [84a7fe5]
12
+ - @platforma-open/milaboratories.top-antibodies.anarci-kabat@1.4.0
13
+
3
14
  ## 2.0.1
4
15
 
5
16
  ### Patch Changes
Binary file
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.top-antibodies.workflow",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "description": "Block Workflow",
6
6
  "dependencies": {
7
7
  "@platforma-sdk/workflow-tengo": "5.8.2",
8
8
  "@platforma-open/milaboratories.software-anarci": "^0.0.3",
9
9
  "@platforma-open/milaboratories.top-antibodies.sample-clonotypes": "2.0.0",
10
- "@platforma-open/milaboratories.top-antibodies.assembling-fasta": "1.3.0",
11
10
  "@platforma-open/milaboratories.top-antibodies.umap": "1.2.1",
12
- "@platforma-open/milaboratories.top-antibodies.anarci-kabat": "1.3.0",
13
- "@platforma-open/milaboratories.top-antibodies.spectratype": "1.8.1"
11
+ "@platforma-open/milaboratories.top-antibodies.spectratype": "1.8.1",
12
+ "@platforma-open/milaboratories.top-antibodies.assembling-fasta": "1.3.0",
13
+ "@platforma-open/milaboratories.top-antibodies.anarci-kabat": "1.4.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@platforma-sdk/tengo-builder": "2.4.18"
@@ -6,7 +6,7 @@ pt := import("@platforma-sdk/workflow-tengo:pt")
6
6
  pframes := import("@platforma-sdk/workflow-tengo:pframes")
7
7
  anarciSw := assets.importSoftware("@platforma-open/milaboratories.software-anarci:main")
8
8
 
9
- self.defineOutputs("kabat")
9
+ self.defineOutputs("kabat", "kabatStats")
10
10
 
11
11
  self.body(func(inputs) {
12
12
 
@@ -37,13 +37,17 @@ self.body(func(inputs) {
37
37
 
38
38
  anarciFileNameBulk := "anarci.csv_" + bulkChain + ".csv"
39
39
 
40
+ // Pre-create empty CSV placeholders so that saveFile always finds the files,
41
+ // even when ANARCI cannot number any sequences (e.g. heavily engineered scaffolds)
40
42
  anarciBuilder := exec.builder().
41
43
  software(anarciSw).
42
44
  arg("-i").arg("assembling.fasta").
43
45
  arg("--scheme").arg("kabat").
44
46
  arg("--ncpu").argWithVar("{system.cpu}").
45
47
  arg("-o").arg("anarci.csv").arg("--csv").
46
- addFile("assembling.fasta", cmd.getFile("assembling.fasta"))
48
+ addFile("assembling.fasta", cmd.getFile("assembling.fasta")).
49
+ writeFile("anarci.csv_H.csv", "Id\n").
50
+ writeFile("anarci.csv_KL.csv", "Id\n")
47
51
  if isSingleCell {
48
52
  anarciBuilder = anarciBuilder.saveFile("anarci.csv_H.csv").saveFile("anarci.csv_KL.csv")
49
53
  } else {
@@ -73,16 +77,16 @@ self.body(func(inputs) {
73
77
  }
74
78
  kabatExec = kabatExec.
75
79
  arg("--out_tsv").arg("kabat.tsv").
80
+ arg("--numbered_count_file").arg("numbered_count.txt").
76
81
  saveFile("kabat.tsv").
82
+ saveFileContent("numbered_count.txt").
77
83
  printErrStreamToStdout().
78
84
  cache(24 * 60 * 60 * 1000).
79
85
  run()
80
-
81
- kabat := kabatExec.getFile("kabat.tsv")
82
86
 
83
87
  return {
84
- kabat: kabat
85
- // kabatPf: pframes.exportFrame(kabatDf)
88
+ kabat: kabatExec.getFile("kabat.tsv"),
89
+ kabatStats: kabatExec.getFileContent("numbered_count.txt")
86
90
  }
87
91
  })
88
92
 
@@ -246,6 +246,7 @@ wf.body(func(args) {
246
246
  // Convert kabat.tsv to PFrame with proper specs (bulk: select heavy/light)
247
247
  kabatPf := xsv.importFile(kabatFile, "tsv", kabatConv.getColumns(datasetSpec, featName, bulkChain), {cpu: 1, mem: "8GiB"})
248
248
  outputs["assemblingKabatPf"] = pframes.exportFrame(kabatPf)
249
+ outputs["kabatStatsContent"] = assem.output("kabatStats")
249
250
  }
250
251
  }
251
252
  }