Skip to content
Snippets Groups Projects
Verified Commit 93338e8d authored by Laurent Modolo's avatar Laurent Modolo
Browse files

add split process

parent e8636934
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ Testing pipeline for marseq scRNASeq analysis
*/
include { FASTKMERS } from "./modules/fastkmers"
include { SPLIT } from "./modules/split"
Channel.fromPath( file(params.csv) )
......@@ -18,5 +19,6 @@ Channel.fromPath( file(params.csv) )
.set{ fastq }
workflow {
FASTKMERS(fastq.r1.mix(fastq.r2).splitFastq( by: 1000000, compress: true, file: true ))
SPLIT(fastq.r1.mix(fastq.r2))
FASTKMERS(SPLIT.out.fastq.transpose())
}
......@@ -3,7 +3,7 @@
*/
process FASTKMERS {
tag "$meta.id"
label 'process_single'
label 'big_mem_mono_cpus'
publishDir "results/${meta.specie}/${meta.sex}/${meta.read}/", mode: 'copy'
container "lbmc/fastkmers:025efdf"
......
process SPLIT {
tag "$meta.id"
label 'small_mem_mono_cpus'
container "alpine:3.17"
input:
tuple val(meta), path(fastq)
output:
tuple val(meta), path("*.fastq.gz"), emit: fastq
path "versions.yml" , emit: versions
script:
def args = task.ext.args ?: ''
"""
zcat ${fastq} | split -d -l4000000 --filter='gzip > \$FILE.fastq.gz' ${fastq.simpleName}_
"${task.process}":
split: v1.35.0
END_VERSIONS
"""
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment