Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Publish normalized and hvg scaled output results
Browse files Browse the repository at this point in the history
  • Loading branch information
dweemx committed May 7, 2020
1 parent 56bddfd commit 86d1456
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions workflows/hvg_selection.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ nextflow.preview.dsl=2
//////////////////////////////////////////////////////
// process imports:
// utils
include PUBLISH as PUBLISH_H5AD_HVG from "../../utils/workflows/utils.nf" params(params)
include PUBLISH as PUBLISH_H5AD_HVG_SCALED from "../../utils/workflows/utils.nf" params(params)

// scanpy:
include SC__SCANPY__FIND_HIGHLY_VARIABLE_GENES from '../processes/feature_selection.nf' params(params)
Expand All @@ -25,13 +25,13 @@ workflow HVG_SELECTION {
hvg = data \
| SC__SCANPY__FIND_HIGHLY_VARIABLE_GENES \
| SC__SCANPY__SUBSET_HIGHLY_VARIABLE_GENES
PUBLISH_H5AD_HVG(
SC__SCANPY__FIND_HIGHLY_VARIABLE_GENES.out,
null,
scaled = SC__SCANPY__FEATURE_SCALING( hvg )
PUBLISH_H5AD_HVG_SCALED(
scaled,
"SCANPY.hvg_scaled_output",
"scanpy",
false
)
scaled = SC__SCANPY__FEATURE_SCALING( hvg )
report = GENERATE_REPORT(
"HVG",
SC__SCANPY__FIND_HIGHLY_VARIABLE_GENES.out,
Expand Down
9 changes: 9 additions & 0 deletions workflows/normalize_transform.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ nextflow.preview.dsl=2

//////////////////////////////////////////////////////
// process imports:
// utils
include PUBLISH as PUBLISH_H5AD_NORMALIZED from "../../utils/workflows/utils.nf" params(params)


// scanpy:
include SC__SCANPY__DATA_TRANSFORMATION from '../processes/transform.nf' params(params)
Expand All @@ -16,6 +19,12 @@ workflow NORMALIZE_TRANSFORM {

main:
SC__SCANPY__NORMALIZATION( filtered )
PUBLISH_H5AD_NORMALIZED(
SC__SCANPY__NORMALIZATION.out,
"SCANPY.normalized_output",
"scanpy",
false
)
SC__SCANPY__DATA_TRANSFORMATION( SC__SCANPY__NORMALIZATION.out )

emit:
Expand Down

0 comments on commit 86d1456

Please sign in to comment.