Skip to content
Snippets Groups Projects
Commit 0ecff9bd authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Merge branch '8-cellranger3.0.2' into 'develop'

Resolve "Add cellranger 3.0.2 as option"

Closes #8

See merge request !4
parents 1a425310 fd8f3ac6
2 merge requests!16Develop,!4Resolve "Add cellranger 3.0.2 as option"
Pipeline #3130 failed with stage
in 10 seconds
......@@ -42,6 +42,7 @@ workflow_modules:
- 'python/3.6.1-2-anaconda'
- 'cellranger/2.1.1'
- 'cellranger/3.0.1'
- 'cellranger/3.0.2'
- 'bcl2fastq/2.17.1.14'
# A list of parameters used by the workflow, defining how to present them,
......@@ -125,10 +126,11 @@ workflow_parameters:
- id: version
type: select
default: 3.0.1
default: 3.0.2
choices:
- [ 3, '3.0.1']
- [ 2, '2.0.1']
- [ 3.0.2, '3.0.2']
- [ 3.0.1, '3.0.1']
- [ 2.1.1, '2.1.1']
required: true
description: |
10x cellranger version.
......
......@@ -7,12 +7,15 @@ process {
module = ['python/3.6.1-2-anaconda']
executor = 'local'
}
$count2 {
$count211 {
module = ['cellranger/2.1.1']
}
$count3 {
$count301 {
module = ['cellranger/3.0.1']
}
$count302 {
module = ['cellranger/3.0.2']
}
}
trace {
......
......@@ -9,7 +9,7 @@ params.designFile = "$baseDir/../test_data/design.csv"
params.genome = '/project/apps_database/cellranger/refdata-cellranger-GRCh38-1.2.0'
params.expectCells = 10000
params.forceCells = 0
params.version = 3
params.version = 3.0.2
// Define regular variables
designLocation = Channel
......@@ -56,76 +56,112 @@ samples = designPaths
// Duplicate variables
samples.into {
samples2
samples3
samples211
samples301
samples302
}
refLocation.into {
refLocation2
refLocation3
refLocation211
refLocation301
refLocation302
}
expectCells2 = expectCells
expectCells3 = expectCells
forceCells2 = forceCells
forceCells3 = forceCells
process count2 {
tag "count2-$sample"
expectCells211 = expectCells
expectCells301 = expectCells
expectCells302 = expectCells
forceCells211 = forceCells
forceCells301 = forceCells
forceCells302 = forceCells
process count211 {
tag "count211-$sample"
publishDir "$baseDir/output", mode: 'copy'
input:
set sample, file("${sample}_S1_L00?_R1_001.fastq.gz"), file("${sample}_S1_L00?_R2_001.fastq.gz") from samples211
file ref from refLocation211.first()
expectCells211
forceCells211
output:
file("**/outs/**") into outPaths211
when:
version == 211
script:
if (forceCells211 == 0){
"""
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --expect-cells=$expectCells211
"""
} else {
"""
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --force-cells=$forceCells211
"""
}
}
process count301 {
tag "count301-$sample"
publishDir "$baseDir/output", mode: 'copy'
input:
set sample, file("${sample}_S1_L00?_R1_001.fastq.gz"), file("${sample}_S1_L00?_R2_001.fastq.gz") from samples2
file ref from refLocation2.first()
expectCells2
forceCells2
set sample, file("${sample}_S1_L00?_R1_001.fastq.gz"), file("${sample}_S1_L00?_R2_001.fastq.gz") from samples301
file ref from refLocation301.first()
expectCells301
forceCells301
output:
file("**/outs/**") into outPaths2
file("**/outs/**") into outPaths301
when:
version == 2
version == 301
script:
if (forceCells2 == 0){
if (forceCells301 == 0){
"""
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --expect-cells=$expectCells2
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --expect-cells=$expectCells301
"""
} else {
"""
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --force-cells=$forceCells2
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --force-cells=$forceCells301
"""
}
}
process count3 {
tag "count3-$sample"
process count302 {
tag "count302-$sample"
publishDir "$baseDir/output", mode: 'copy'
input:
set sample, file("${sample}_S1_L00?_R1_001.fastq.gz"), file("${sample}_S1_L00?_R2_001.fastq.gz") from samples3
file ref from refLocation3.first()
expectCells3
forceCells3
set sample, file("${sample}_S1_L00?_R1_001.fastq.gz"), file("${sample}_S1_L00?_R2_001.fastq.gz") from samples302
file ref from refLocation302.first()
expectCells302
forceCells302
output:
file("**/outs/**") into outPaths3
file("**/outs/**") into outPaths302
when:
version == 3
version == 302
script:
if (forceCells3 == 0){
if (forceCells302 == 0){
"""
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --expect-cells=$expectCells3
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --expect-cells=$expectCells302
"""
} else {
"""
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --force-cells=$forceCells3
cellranger count --id="$sample" --transcriptome="./$ref" --fastqs=. --sample="$sample" --force-cells=$forceCells302
"""
}
}
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