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

Add 3.0.2 as a param option in astrocyte-pkg.yml, main.nf and biohpc.config to address #8

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