Skip to content
Snippets Groups Projects
Commit e82db028 authored by John Lafin's avatar John Lafin
Browse files

Include sample sheet in workdir

parent bfcf2b9f
Branches
Tags
No related merge requests found
...@@ -27,6 +27,7 @@ process cr_count { ...@@ -27,6 +27,7 @@ process cr_count {
input: input:
tuple val(sample), val(ref), val(expectCells), val(chemistry), val(introns), val(noBam) tuple val(sample), val(ref), val(expectCells), val(chemistry), val(introns), val(noBam)
path(fastq) path(fastq)
path(sample_sheet)
output: output:
tuple val(sample), path("${task.index}_${sample}/outs/**") tuple val(sample), path("${task.index}_${sample}/outs/**")
...@@ -80,8 +81,9 @@ process cr_count { ...@@ -80,8 +81,9 @@ process cr_count {
workflow { workflow {
// Parse sample sheet and run cellranger count // Parse sample sheet and run cellranger count
fastq = channel.fromPath(params.fastq).collect() fastq = channel.fromPath(params.fastq).collect()
sample_sheet = channel.fromPath(params.sample_sheet)
input = channel.fromPath(params.sample_sheet) \ input = channel.fromPath(params.sample_sheet) \
| splitCsv(header: true) \ | splitCsv(header: true) \
| map{ row -> tuple( row.sample, row.reference, row.expectCells, row.chemistry, row.introns, row.noBam ) } | map{ row -> tuple( row.sample, row.reference, row.expectCells, row.chemistry, row.introns, row.noBam ) }
cr_count(input, fastq) cr_count(input, fastq, sample_sheet)
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment