Skip to content

Commit

Permalink
project_id to merge_group_id
Browse files Browse the repository at this point in the history
  • Loading branch information
allyhawkins committed Dec 11, 2023
1 parent 5dc7879 commit becec88
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions merge.nf
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ process merge_sce {
label 'mem_16'
publishDir "${params.results_dir}/merged/${project_id}"
input:
tuple val(project_id), val(has_adt), val(library_ids), path(scpca_nf_file)
tuple val(merge_group_id), val(has_adt), val(library_ids), path(scpca_nf_file)
output:
tuple val(project_id), val(has_adt), path(merged_sce_file)
tuple val(merge_group_id), val(has_adt), path(merged_sce_file)
script:
input_library_ids = library_ids.join(',')
input_sces = scpca_nf_file.join(',')
merged_sce_file = "${project_id}_merged.rds"
merged_sce_file = "${merge_group_id}_merged.rds"
"""
merge_sces.R \
--input_library_ids "${input_library_ids}" \
Expand All @@ -63,23 +63,23 @@ process merge_report {
publishDir "${params.results_dir}/merged/${merge_group}"
label 'mem_16'
input:
tuple val(merge_group), path(merged_sce_file)
tuple val(merge_group_id), path(merged_sce_file)
path(report_template)
output:
path(merge_report)
script:
merge_report = "${merge_group}_summary_report.html"
merge_report = "${merge_group_id}_summary_report.html"
"""
Rscript -e "rmarkdown::render( \
'${report_template}', \
output_file = '${merge_report}', \
params = list(merge_group = '${merge_group}', \
params = list(merge_group = '${merge_group_id}', \
merged_sce = '${merged_sce_file}', \
batch_column = 'library_id') \
)"
"""
stub:
merge_report = "${merge_group}_summary_report.html"
merge_report = "${merge_group_id}_summary_report.html"
"""
touch ${merge_report}
"""
Expand Down

0 comments on commit becec88

Please sign in to comment.