Skip to content
Snippets Groups Projects
Commit ca8ad0bb authored by elabaron's avatar elabaron
Browse files

src/RNAseq.nf : add adaptor and strand in parameters

parent 86f83e67
No related branches found
No related tags found
No related merge requests found
...@@ -26,12 +26,14 @@ params.do_fastqc = true ...@@ -26,12 +26,14 @@ params.do_fastqc = true
params.do_dedup = true params.do_dedup = true
params.do_postgenome = true params.do_postgenome = true
//////////////////////// ///////////////////////
// ADAPTORS SEQUENCES // // LIBRARIES OPTIONS //
//////////////////////// ///////////////////////
params.adaptorR1 = "AGATCGGAAGAGCACACGTCTGAACTCCAGTCA" params.adaptorR1 = "AGATCGGAAGAGCACACGTCTGAACTCCAGTCA"
params.adaptorR2 = "AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT" params.adaptorR2 = "AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT"
params.strand = "FR"
////////////// //////////////
// LOG INFO // // LOG INFO //
...@@ -137,8 +139,8 @@ process trimming { ...@@ -137,8 +139,8 @@ process trimming {
script: script:
""" """
cutadapt -j ${task.cpus} \ cutadapt -j ${task.cpus} \
-a "AGATCGGAAGAGCACACGTCTGAACTCCAGTCA" \ -a ${params.adaptorR1} \
-A "AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT" \ -A ${params.adaptorR2} \
-o ${file_id}_tmp_R1.fastq.gz \ -o ${file_id}_tmp_R1.fastq.gz \
-p ${file_id}_tmp_R2.fastq.gz \ -p ${file_id}_tmp_R2.fastq.gz \
--minimum-length 70 \ --minimum-length 70 \
...@@ -285,7 +287,7 @@ hisat2 -x ${index_id} \ ...@@ -285,7 +287,7 @@ hisat2 -x ${index_id} \
-1 ${fastq_filtred[0]} \ -1 ${fastq_filtred[0]} \
-2 ${fastq_filtred[1]} \ -2 ${fastq_filtred[1]} \
--un-conc-gz ${file_id}_notaligned_R%.fastq.gz \ --un-conc-gz ${file_id}_notaligned_R%.fastq.gz \
--rna-strandness 'FR' \ --rna-strandness ${params.strand} \
--dta \ --dta \
2> ${file_id}_genome.txt \ 2> ${file_id}_genome.txt \
| samtools view -bS -F 4 - \ | samtools view -bS -F 4 - \
...@@ -466,7 +468,7 @@ hisat2 -x ${index2_id} \ ...@@ -466,7 +468,7 @@ hisat2 -x ${index2_id} \
-p ${task.cpus} \ -p ${task.cpus} \
-1 ${fastq_unaligned[0]} \ -1 ${fastq_unaligned[0]} \
-2 ${fastq_unaligned[1]} \ -2 ${fastq_unaligned[1]} \
--rna-strandness 'FR' \ --rna-strandness ${params.strand} \
--dta\ --dta\
2> ${file_id}_postgenome.txt \ 2> ${file_id}_postgenome.txt \
| samtools view -bS -F 4 - \ | samtools view -bS -F 4 - \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment