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

fix typo beug

parent a6ff34dd
No related branches found
No related tags found
No related merge requests found
......@@ -332,6 +332,7 @@ process fastqc_genome {
/* Deduplication of reads */
////////////////////////////
if (params.do_dedup) {
process dedup_genome {
tag "$file_id"
publishDir "${params.output}/03_hisat2/dedup/", mode: 'copy'
......@@ -353,9 +354,8 @@ process dedup_genome {
2> ${file_id}_dedup.log
"""
}
if (! params.do_dedup) {
HISAT_ALIGNED_DEDUP.into{DEDUP_GENOME}
} else {
HISAT_ALIGNED_DEDUP.set{DEDUP_GENOME}
}
DEDUP_GENOME.into{DEDUP_GENOME_HTSEQ;
......@@ -474,6 +474,9 @@ hisat2 -x ${index2_id} \
-2 ${fastq_unaligned[1]} \
--rna-strandness ${params.strand} \
--dta\
--no-softclip\
--trim3 1\
--trim5 1\
2> ${file_id}_postgenome.txt \
| samtools view -bS -F 4 - \
| samtools sort -@ ${task.cpus} -o ${file_id}.bam \
......@@ -491,7 +494,7 @@ POSTGENOME_ALIGNED.into{POSTGENOME_ALIGNED_FASTQC;
////////////////////////////
/* Deduplication of reads */
////////////////////////////
if (params.do_dedup) {
process dedup_postgenome {
tag "$file_id"
publishDir "${params.output}/05_post_genome_hisat2/dedup/", mode: 'copy'
......@@ -513,6 +516,9 @@ process dedup_postgenome {
2> ${file_id}_dedup.log
"""
}
} else {
}
process fastqc_postgenome {
tag "$file_id"
......
......@@ -458,6 +458,9 @@ hisat2 -x ${index2_id} \
-U ${fastq_unaligned[0]} \
--rna-strandness ${params.strand} \
--dta\
--no-softclip\
--trim3 1\
--trim5 1\
2> ${file_id}_postgenome.txt \
| samtools view -bS -F 4 -F 256 - \
| samtools sort -@ ${task.cpus} -o ${file_id}.bam \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment