Skip to content
Snippets Groups Projects
Commit fe307969 authored by Xavier Grand's avatar Xavier Grand
Browse files

Merge branch 'Alia' into 'master'

Ajout de l'outil ps au dockerfile r-bolero et résolution d'erreurs dans la...

See merge request testoni-lab/bolero!5
parents cd8b888d 2ce7330a
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,11 @@ RUN apt-get update \ ...@@ -13,6 +13,11 @@ RUN apt-get update \
## copy Rscript files ## copy Rscript files
COPY ./*.R . COPY ./*.R .
## Install packages
RUN Rscript Install_packages.R RUN Rscript Install_packages.R
RUN apt-get update && apt-get install -y procps
## Langage
CMD ["bash"] CMD ["bash"]
...@@ -53,7 +53,7 @@ def helpMessage() { ...@@ -53,7 +53,7 @@ def helpMessage() {
--chunk_size [int] Chunck size, default = 1900 (refer to guppy manual). --chunk_size [int] Chunck size, default = 1900 (refer to guppy manual).
Help: Help:
--help Display this help message. --help | --h Display this help message.
""".stripIndent() """.stripIndent()
} }
...@@ -111,7 +111,6 @@ params.pycoQC_out = "pycoQC/" ...@@ -111,7 +111,6 @@ params.pycoQC_out = "pycoQC/"
**************************************************************** ****************************************************************
*/ */
//to print multiline informations
log.info "fast5/q folder : ${params.input}" log.info "fast5/q folder : ${params.input}"
log.info "5'RACE adapter sequence : ${params.adapt}" log.info "5'RACE adapter sequence : ${params.adapt}"
if(!params.skipBC) log.info "Guppy basecalling calculation using GPU mode : ${params.gpu_mode}." if(!params.skipBC) log.info "Guppy basecalling calculation using GPU mode : ${params.gpu_mode}."
...@@ -163,8 +162,9 @@ if(!params.skipBC) { ...@@ -163,8 +162,9 @@ if(!params.skipBC) {
} }
// Replace concatenate by seqkit fct to parallelization: // Replace concatenate by seqkit fct to parallelization:
// include { concatenate } from "./nf_modules/seqkit/main.nf" include { concatenate } from "./nf_modules/seqkit/main.nf"
include { concatenate } from "./nf_modules/concatenate/main.nf" //include { concatenate } from "./nf_modules/concatenate/main.nf"
include { cut_5pRACE } from "./nf_modules/cutadapt/main.nf" include { cut_5pRACE } from "./nf_modules/cutadapt/main.nf"
include { hbv_genome } from "./nf_modules/minimap2/main.nf" include { hbv_genome } from "./nf_modules/minimap2/main.nf"
include { seqkit_grep } from "./nf_modules/seqkit/main.nf" include { seqkit_grep } from "./nf_modules/seqkit/main.nf"
...@@ -177,9 +177,6 @@ include { jwr_checker } from "./nf_modules/nanosplicer/main.nf" ...@@ -177,9 +177,6 @@ include { jwr_checker } from "./nf_modules/nanosplicer/main.nf"
include { junctions_nanosplicer } from "./nf_modules/junction_nanosplicer/main.nf" include { junctions_nanosplicer } from "./nf_modules/junction_nanosplicer/main.nf"
include { rna_count } from "./nf_modules/rna_count/main.nf" include { rna_count } from "./nf_modules/rna_count/main.nf"
/////////////////////////////////////////////////////////
// script R avec classification des reads par type d'ARN et graphiques associés
// creation des fonctions NanoSplicer: // creation des fonctions NanoSplicer:
// include { jwr_check } from "./nf_modules/nanosplicer/main.nf" // include { jwr_check } from "./nf_modules/nanosplicer/main.nf"
...@@ -211,7 +208,7 @@ workflow { ...@@ -211,7 +208,7 @@ workflow {
} }
} }
//####################### PREPROCESSING ####################### //####################### PREPROCESSING #######################
//Filtration (seqkit_grep looks for the 5'RACE and the gsp patterns in the reads to keep only mature ARNs) //Filtration (seqkit_grep looks for the 5'RACE and the gsp patterns in the reads to keep only mature ARNs)
...@@ -220,8 +217,10 @@ workflow { ...@@ -220,8 +217,10 @@ workflow {
//Cut of the 5'RACE sequence //Cut of the 5'RACE sequence
cut_5pRACE(seqkit_grep.out.filtered_fastq, params.adapt) cut_5pRACE(seqkit_grep.out.filtered_fastq, params.adapt)
//########################## MAPPING ##########################
//########################## MAPPING ##########################
hbv_genome(cut_5pRACE.out.fastq_cutadapt, genome) hbv_genome(cut_5pRACE.out.fastq_cutadapt, genome)
sort_index_bam(hbv_genome.out.bam) sort_index_bam(hbv_genome.out.bam)
......
...@@ -71,14 +71,15 @@ process concatenate { ...@@ -71,14 +71,15 @@ process concatenate {
} }
input: input:
path(fastq_dir) path fastq
output: output:
path "merged.fastq.gz", emit: merged_fastq path "merged.fastq.gz", emit: merged_fastq
script: script:
""" """
seqkit scat -j ${tasks.cpus} -f ${fastq_dir} --gz-only > merged.fastq path=\$(readlink -f ${fastq})
seqkit scat -j ${task.cpus} -f \${path} --gz-only > merged.fastq
gzip merged.fastq gzip merged.fastq
""" """
} }
\ 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