Skip to content
Snippets Groups Projects
Commit 50f3b942 authored by aliarifki's avatar aliarifki Committed by Xavier Grand
Browse files

Contrôle qualité et basecalling en mode gpu

parent 9f526a98
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,7 @@ params.num_callers = 16
params.chunks_per_runner = 512
params.chunk_size = 1900
/* Params out */
params.basecalling_out = "01_Basecalling/"
......@@ -171,10 +172,14 @@ if(!params.skipBC) {
}
}
<<<<<<< HEAD
<<<<<<< HEAD
// include { barecode } from "./nf_modules/barecode/main.nf"
=======
>>>>>>> c281bb3789a8d844085e21f749580c29d43b35d6
=======
include { pycoqc } from "./nf_modules/pycoqc/main.nf"
>>>>>>> 9ef97be (Contrôle qualité et basecalling en mode gpu)
include { concatenate } from "./nf_modules/seqkit/main.nf"
include { cut_5pRACE } from "./nf_modules/cutadapt/main.nf"
include { hbv_genome } from "./nf_modules/minimap2/main.nf"
......@@ -196,9 +201,9 @@ include { rna_count } from "./nf_modules/rna_count/main.nf"
*/
workflow {
//######################## BASECALLING ########################
if(params.skipBC) { // we take fastq files as input and skip basecalling
concatenate(barcodes)
}
......@@ -208,10 +213,12 @@ workflow {
if(params.gpu_mode) {
basecall_fast5_gpu(input)
concatenate(basecall_fast5_gpu.out.pass)
pycoqc(basecall_fast5_gpu.sequencing_summary)
}
else {
basecall_fast5_cpu(input)
concatenate(basecall_fast5_cpu.out.pass)
pycoqc(basecall_fast5_cpu.sequencing_summary)
}
}
......@@ -245,5 +252,5 @@ workflow {
//#################### VARIANTS D'EPISSAGE ####################
rna_count(junctions_nanosplicer.out.identified_SPvariants, start_position_individuals.out.classification_of_reads)
*/
}
......@@ -72,37 +72,42 @@ profiles {
}
}
}
pollux {
singularity.enabled = true
singularity.cacheDir = "./bin/"
singularity.runOptions = "--bind /data,/home"
process {
errorStrategy = 'finish'
memory = '32GB'
withLabel: big_mem_mono_cpus {
cpus = 1
}
withLabel: big_mem_multi_cpus {
cpus = 16
}
withLabel: small_mem_mono_cpus {
cpus = 1
memory = '2GB'
}
withLabel: small_mem_multi_cpus {
cpus = 8
memory = '2GB'
}
withLabel: mid_mem_mono_cpus {
cpus = 1
memory = '8GB'
}
withLabel: mid_mem_multi_cpus {
cpus = 8
memory = '8GB'
singularity.enabled = true
singularity.cacheDir = "./bin/"
singularity.runOptions = "--bind /data,/home"
process {
errorStrategy = 'finish'
memory = '256GB'
withLabel: big_mem_mono_cpus {
cpus = 1
}
withLabel: big_mem_multi_cpus {
cpus = 16
}
withLabel: small_mem_mono_cpus {
cpus = 1
memory = '2GB'
}
withLabel: small_mem_multi_cpus {
cpus = 8
memory = '2GB'
}
withLabel: mid_mem_mono_cpus {
cpus = 1
memory = '8GB'
}
withLabel: mid_mem_multi_cpus {
cpus = 8
memory = '8GB'
}
withLabel: gpus {
maxForks = 1
containerOptions = '--nv'
}
}
}
}
singularity {
singularity.enabled = true
......
version = "6.4.6"
container_url = "xgrand/ont-guppy:${version}"
params.config_file = ""
params.basecalling_out = ""
params.flowcell = "FLO-MIN106"
params.kit = "SQK-PBK004"
......@@ -51,7 +52,8 @@ guppy_basecaller --compress_fastq \
--min_qscore ${params.min_qscore} \
--gpu_runners_per_device ${params.gpu_runners_per_device} \
--num_callers ${params.num_callers} \
--chunks_per_runner ${params.chunks_per_runner}
--chunks_per_runner ${params.chunks_per_runner} \
${params.config_file}
"""
}
......
version = "2.5.2"
container_url = "xgrand/pycoqc:${version}"
process pycoqc {
container = "${container_url}"
label "small_mem_mono_cpus"
if (params.basecalling_out != "") {
publishDir "results/${params.basecalling_out}", mode: 'copy'
}
input:
path(txt)
output:
path("*.html")
"""
pycoQC -f ${txt} -o quality_control.html)
"""
}
\ No newline at end of file
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