Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Don't let QC_FILTER handle any pre-filter or annotation of the data. …
Browse files Browse the repository at this point in the history
…Let this be handled by the parent workflows. This option is better especially when when don't what to perform the basic filtering but want to annotate the data.
  • Loading branch information
dweemx committed Oct 29, 2020
1 parent 4915786 commit a463b8a
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 12 deletions.
7 changes: 4 additions & 3 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,10 @@ Steps:
data
main:
// run the pipeline
out = data
out = SC__FILE_CONVERTER( data )
out = data | \
SC__FILE_CONVERTER | \
FILTER_AND_ANNOTATE_AND_CLEAN
if(params.sc.scanpy.containsKey("filter")) {
out = QC_FILTER( out ).filtered // Remove concat
}
Expand Down
9 changes: 7 additions & 2 deletions workflows/bbknn.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ include {
include {
FINALIZE;
} from '../src/utils/workflows/finalize.nf' params(params)
include {
FILTER_AND_ANNOTATE_AND_CLEAN;
} from '../src/utils/workflows/filterAnnotateClean.nf' params(params)
include {
UTILS__GENERATE_WORKFLOW_CONFIG_REPORT;
} from '../src/utils/processes/reports.nf' params(params)
Expand Down Expand Up @@ -69,8 +72,10 @@ workflow bbknn {
/*******************************************
* Data processing
*/
out = data
out = SC__FILE_CONVERTER( data )
out = data | \
SC__FILE_CONVERTER | \
FILTER_AND_ANNOTATE_AND_CLEAN

if(params.sc.scanpy.containsKey("filter")) {
out = QC_FILTER( out ).filtered // Remove concat
}
Expand Down
9 changes: 7 additions & 2 deletions workflows/harmony.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ include {
include {
FINALIZE;
} from '../src/utils/workflows/finalize.nf' params(params)
include {
FILTER_AND_ANNOTATE_AND_CLEAN;
} from '../src/utils/workflows/filterAnnotateClean.nf' params(params)
include {
UTILS__GENERATE_WORKFLOW_CONFIG_REPORT;
} from '../src/utils/processes/reports.nf' params(params)
Expand Down Expand Up @@ -71,8 +74,10 @@ workflow harmony {
/*******************************************
* Data processing
*/
out = data
out = SC__FILE_CONVERTER( data )
out = data | \
SC__FILE_CONVERTER | \
FILTER_AND_ANNOTATE_AND_CLEAN

if(params.sc.scanpy.containsKey("filter")) {
out = QC_FILTER( out ).filtered // Remove concat
}
Expand Down
9 changes: 7 additions & 2 deletions workflows/mnncorrect.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ include {
include {
FILE_CONVERTER;
} from '../src/utils/workflows/fileConverter.nf' params(params)
include {
FILTER_AND_ANNOTATE_AND_CLEAN;
} from '../src/utils/workflows/filterAnnotateClean.nf' params(params)
include {
UTILS__GENERATE_WORKFLOW_CONFIG_REPORT;
} from '../src/utils/processes/reports.nf' params(params)
Expand Down Expand Up @@ -80,8 +83,10 @@ workflow mnncorrect {
/*******************************************
* Data processing
*/
out = data
out = SC__FILE_CONVERTER( data )
out = data | \
SC__FILE_CONVERTER | \
FILTER_AND_ANNOTATE_AND_CLEAN

if(params.sc.scanpy.containsKey("filter")) {
out = QC_FILTER( out ).filtered // Remove concat
}
Expand Down
8 changes: 7 additions & 1 deletion workflows/multi_sample.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ include {
include {
FILE_CONVERTER;
} from '../src/utils/workflows/fileConverter.nf' params(params)
include {
FILTER_AND_ANNOTATE_AND_CLEAN;
} from '../src/utils/workflows/filterAnnotateClean.nf' params(params)
include {
UTILS__GENERATE_WORKFLOW_CONFIG_REPORT;
} from '../src/utils/processes/reports.nf' params(params)
Expand Down Expand Up @@ -77,7 +80,10 @@ workflow multi_sample {
/*******************************************
* Data processing
*/
out = SC__FILE_CONVERTER( data )
out = data | \
SC__FILE_CONVERTER | \
FILTER_AND_ANNOTATE_AND_CLEAN

if(params.sc.scanpy.containsKey("filter")) {
out = QC_FILTER( out ).filtered // Remove concat
}
Expand Down
8 changes: 6 additions & 2 deletions workflows/single_sample_star.nf
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ workflow single_sample_star {
UTILS__GENERATE_WORKFLOW_CONFIG_REPORT(
file(workflow.projectDir + params.utils.workflow_configuration.report_ipynb)
)
QC_FILTER( data )
NORMALIZE_TRANSFORM( QC_FILTER.out.filtered )
out = FILTER_AND_ANNOTATE_AND_CLEAN( data )

if(params.sc.scanpy.containsKey("filter")) {
out = QC_FILTER( out ).filtered // Remove concat
}
NORMALIZE_TRANSFORM( out )
HVG_SELECTION( NORMALIZE_TRANSFORM.out )
if(params.sc.scanpy.containsKey("regress_out")) {
preprocessed_data = SC__SCANPY__REGRESS_OUT( HVG_SELECTION.out.scaled )
Expand Down

0 comments on commit a463b8a

Please sign in to comment.