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

Fix designFile location passage to checkDesignFile process

parent 2ada067d
Branches
Tags
No related merge requests found
Pipeline #2347 failed with stage
Sample,fastq_R1,fastq_R2
D17PrPzF_BE,D17PrPzF_BE_S1_L001_R1_001.fastq.gz,D17PrPzF_BE_S1_L001_R2_001.fastq.gz
D17PrPzF_BE,D17PrPzF_BE_S1_L002_R1_001.fastq.gz,D17PrPzF_BE_S1_L002_R2_001.fastq.gz
D17PrPzF_LE,D17PrPzF_LE_S3_L001_R1_001.fastq.gz,D17PrPzF_LE_S3_L001_R2_001.fastq.gz
\ No newline at end of file
D17PrPzF_BE,/work/urology/ghenry/Grimoire/Astrocyte/cellranger_count/test_data/D17PrPzF_BE_S1_L001_R1_001.fastq.gz,/work/urology/ghenry/Grimoire/Astrocyte/cellranger_count/test_data/D17PrPzF_BE_S1_L001_R2_001.fastq.gz
D17PrPzF_BE,/work/urology/ghenry/Grimoire/Astrocyte/cellranger_count/test_data/D17PrPzF_BE_S1_L002_R1_001.fastq.gz,/work/urology/ghenry/Grimoire/Astrocyte/cellranger_count/test_data/D17PrPzF_BE_S1_L002_R2_001.fastq.gz
D17PrPzF_LE,/work/urology/ghenry/Grimoire/Astrocyte/cellranger_count/test_data/D17PrPzF_LE_S3_L001_R1_001.fastq.gz,/work/urology/ghenry/Grimoire/Astrocyte/cellranger_count/test_data/D17PrPzF_LE_S3_L001_R2_001.fastq.gz
......@@ -10,14 +10,15 @@ params.genome = '/project/apps_database/cellranger/refdata-cellranger-GRCh38-1.2
params.expectCells = 10000
params.forceCells = 0
// Define List of Files
// Define regular variables
designLocation = Channel
.fromPath(params.designFile)
.ifEmpty { exit 1, "design file not found: ${params.designFile}" }
fastqList = Channel
.fromPath(params.fastq)
.flatten()
.map { file -> [ file.getFileName().toString(), file.toString() ].join("\t") }
.collectFile(name: 'fileList.tsv', newLine: true)
// Define regular variables
refLocation = Channel
.fromPath(params.genome)
.ifEmpty { exit 1, "referene not found: ${params.genome}" }
......@@ -30,7 +31,7 @@ process checkDesignFile {
input:
params.designFile
file designLocation
file fastqList
output:
......@@ -41,7 +42,7 @@ process checkDesignFile {
"""
module load python/3.6.1-2-anaconda
python3 $baseDir/scripts/check_design.py -d $params.designFile -f $fastqList
python3 $baseDir/scripts/check_design.py -d $designLocation -f $fastqList
"""
}
......
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