Skip to content

Commit

Permalink
Fix for presets undefined assemlingFeature (i.e. rna-seq)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolotin committed Nov 29, 2024
1 parent 9f942d2 commit b2bf6b4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-bats-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@platforma-open/milaboratories.mixcr-clonotyping.workflow': patch
---

Fix for presets undefined assemlingFeature (i.e. rna-seq)
18 changes: 14 additions & 4 deletions workflow/src/process.tpl.tengo
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,23 @@ self.body(func(inputs) {

// calculating clns annotations

clnsAnnotations := {
removeUndefined := func(m) {
r := {}
for k, v in m {
if !is_undefined(v) {
r[k] = v
}
}
return r;
}

clnsAnnotations := removeUndefined({
"mixcr.com/assemblingFeature": joinOrUndefined(presetContent.assemblingFeature),
"mixcr.com/cellTags": joinOrUndefined(presetContent.cellTags),
"mixcr.com/coveredFeaturesOnExport": joinOrUndefined(presetContent.coveredFeaturesOnExport),
"mixcr.com/umiTags": joinOrUndefined(presetContent.umiTags),
"pl7.app/label": "MiXCR Clonesets"
}
})
if hasAssembleContigs {
clnsAnnotations["mixcr.com/contigsAssembled"] = "true"
}
Expand All @@ -196,7 +206,7 @@ self.body(func(inputs) {
valueType: "File",
axesSpec: [
inputSpec.axesSpec[0]
]
]
}),
"qc.data": mixcrResults.output("qc"),

Expand All @@ -209,7 +219,7 @@ self.body(func(inputs) {
valueType: "Log",
axesSpec: [
inputSpec.axesSpec[0]
]
]
}),
"logs.data": mixcrResults.output("log"),

Expand Down

0 comments on commit b2bf6b4

Please sign in to comment.