Skip to content

Commit

Permalink
various small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Mar 21, 2018
1 parent e52b8dd commit 6b23408
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Pipeline overview:
def helpMessage() {
log.info"""
=========================================
OrganDiet version ${version}, last updated on ${version_date}
OrganDiet version ${version}
Last updated on ${version_date}
=========================================
Usage:
The typical command for running the pipeline is as follows:
Expand Down Expand Up @@ -66,7 +67,7 @@ def helpMessage() {
}

//Pipeline version
version = "0.2.4"
version = "0.2.5"
version_date = "March 21th, 2018"

params.reads = "*_{1,2}.fastq.gz"
Expand Down Expand Up @@ -120,6 +121,7 @@ if (params.help || params.h){
// Header log info
log.info "========================================="
log.info " OrganDiet version ${version}"
log.info " Last updated on ${version_date}"
log.info "========================================="
def summary = [:]
summary['Reads'] = params.reads
Expand Down Expand Up @@ -255,8 +257,8 @@ if (params.adna == true){
file '*_fastqc.{zip,html}' into fastqc_results_after_trim

script:
out1 = name+".pair1.truncated.fastq"
out2 = name+".pair2.truncated.fastq"
out1 = name+".pair1.discarded.fastq"
out2 = name+".pair2.discarded.fastq"
col_out = name+".collapsed.fastq"
"""
AdapterRemoval --basename $name --file1 ${reads[0]} --file2 ${reads[1]} --trimns --trimqualities --collapse --output1 $out1 --output2 $out2 --outputcollapsed $col_out --threads ${task.cpus} --qualitybase $PHRED
Expand Down Expand Up @@ -751,27 +753,6 @@ if (params.aligner2 == "diamond"){
/*
* STEP 10 - Assign LCA - Krona output
*/
// process recentrifuge {
// tag "${centrifuge_aligned[0].baseName}"
//
// beforeScript "set +u; source activate py36"
// afterScript "set +u; source deactivate py36"
//
// publishDir "${params.results}/krona", mode: 'copy',
// saveAs: {filename -> "./$filename"}
//
// input:
// file centrifuge_aligned from nt_aligned.toList()
//
// output:
// file("recentrifuge_result.html") into recentrifuge_result
//
// script:
// allfiles = centrifuge_aligned.join(" -f ")
// """
// $recentrifuge -f $allfiles -n ${params.recentrifugedb} -o recentrifuge_result.html
// """
// }

process CentrifugeToKrona {
tag "${centrifuge_aligned[0].baseName}"
Expand Down Expand Up @@ -861,7 +842,6 @@ if (params.adna == true){
output:
file '*multiqc_report.html' into multiqc_report
file '*_data' into multiqc_data
file '*.command.err' into multiqc_stderr

script:
prefix = fastqc[0].toString() - '_fastqc.html' - 'fastqc_before_trimming/'
Expand All @@ -887,7 +867,6 @@ if (params.adna == true){
output:
file '*multiqc_report.html' into multiqc_report
file '*_data' into multiqc_data
file '.command.err' into multiqc_stderr

script:
prefix = fastqc[0].toString() - '_fastqc.html' - 'fastqc_before_trimming/'
Expand Down

0 comments on commit 6b23408

Please sign in to comment.