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

fix beugs in RNAseq pipeline

parent c2bf2271
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ profiles { ...@@ -3,7 +3,7 @@ profiles {
process{ process{
withName: trimming { withName: trimming {
beforeScript = "source $baseDir/.conda_psmn.sh" beforeScript = "source $baseDir/.conda_psmn.sh"
conda = "$baseDir/.conda_envs/cutadapt_2.1" conda = "$baseDir/.conda_envs/cutadapt_2.4"
executor = "sge" executor = "sge"
clusterOptions = "-cwd -V" clusterOptions = "-cwd -V"
cpus = 1 cpus = 1
......
...@@ -27,11 +27,11 @@ process trimming { ...@@ -27,11 +27,11 @@ process trimming {
script: script:
""" """
cutadapt -a AGATCGGAAGAGC -A AGATCGGAAGAGC \ cutadapt -a AGATCGGAAGAGC -A AGATCGGAAGAGC \
-o ${pair_id}_cut_R1.fastq.gz -p ${pair_id}_tmp_R2.fastq.gz \ -o ${file_id}_cut_R1.fastq.gz -p ${file_id}_tmp_R2.fastq.gz \
${reads[0]} ${reads[1]} > ${pair_id}_report.txt ${reads[0]} ${reads[1]} > ${file_id}_report.txt
cutadapt -u -14 -o ${pair_id}_cut_R2.fastq.gz ${pair_id}_tmp_R2.fastq.gz \ cutadapt -u -14 -o ${file_id}_cut_R2.fastq.gz ${file_id}_tmp_R2.fastq.gz \
> ${pair_id}_cut_report.txt > ${file_id}_cut_report.txt
""" """
} }
...@@ -82,13 +82,13 @@ log.info "index : ${params.index_hg38}" ...@@ -82,13 +82,13 @@ log.info "index : ${params.index_hg38}"
Channel Channel
.fromPath ( params.index_hg38 ) .fromPath ( params.index_hg38 )
.ifEmpty { error "Cannot find any hg38 index files matching: ${params.index_hg38}" } .ifEmpty { error "Cannot find any hg38 index files matching: ${params.index_hg38}" }
.set { index_file_hg38 }--paired .set { index_file_hg38 }
process hisat2_human { process hisat2_human {
tag "$file_id" tag "$file_id"
input: input:
set file_id, file(fastq_filtred) from rRNA_removed_reads set file_id, file(fastq_filtred) from rRNA_removed_files
file index from index_file_hg38.toList() file index from index_file_hg38.toList()
output: output:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment