-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
606e9ae
commit 0ed8526
Showing
7 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@platforma-open/milaboratories.repertoire-diversity.workflow': minor | ||
'@platforma-open/milaboratories.repertoire-diversity.model': minor | ||
--- | ||
|
||
Outliers removed from table and plots if option "Drop outliers" is on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
ll := import("@platforma-sdk/workflow-tengo:ll") | ||
exec := import("@platforma-sdk/workflow-tengo:exec") | ||
assets := import("@platforma-sdk/workflow-tengo:assets") | ||
json := import("json") | ||
paggregateSw := assets.importSoftware("@platforma-open/milaboratories.software-ptransform:main") | ||
|
||
//// aggregating by-nodes output to make it uniquely addressable by it's native key | ||
filterOutliers := func(inputTsv) { | ||
filterWorkflow := { steps: [ | ||
{ | ||
type: "filter", | ||
predicate: { | ||
type: "gt", | ||
value: 0, | ||
column: "Observed diversity" | ||
} | ||
} | ||
] | ||
} | ||
|
||
|
||
filterCmd := exec.builder(). | ||
printErrStreamToStdout(). | ||
software(paggregateSw). | ||
arg("--workflow").arg("wf.json"). | ||
writeFile("wf.json", json.encode(filterWorkflow)). | ||
arg("input.tsv").addFile("input.tsv", inputTsv). | ||
arg("output.tsv").saveFile("output.tsv"). | ||
run() | ||
|
||
return filterCmd.getFile("output.tsv") | ||
} | ||
|
||
export ll.toStrict({ | ||
filterOutliers: filterOutliers | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters