error "\n\n========\n\nERROR IN NEXTFLOW EXECUTION\n\nINVALID ref_path: ${ref_path}\nOR ref_file: ${ref_file}\nPARAMETER IN nextflow.config FILE\n\nIF POINTING TO A DISTANT SERVER, CHECK THAT IT IS MOUNTED\n\n========\n\n"
}
def file_exists4 = k2db_ch_test.exists()
if( ! file_exists4){
error "\n\n========\n\nERROR IN NEXTFLOW EXECUTION\n\nINVALID kraken db path: ${kraken_db}\nPARAMETER IN nextflow.config FILE\n\nIF POINTING TO A DISTANT SERVER, CHECK THAT IT IS MOUNTED\n\n========\n\n"
}
}else{
error "\n\n========\n\nERROR IN NEXTFLOW EXECUTION\n\nINVALID system_exec PARAMETER IN nextflow.config FILE: ${system_exec}\n\n========\n\n"
}
...
...
@@ -140,7 +147,7 @@ process trim { // Trim the oligo sequences. See section 8.4 of the labbook 20200
val alien_l_param from alientrimmer_l_param
output:
file "${file_name}_trim.fq" into fastq_trim_ch1, fastq_trim_ch2
file "${file_name}_trim.fq" into fastq_trim_ch1, fastq_trim_ch2, fastq_trim_ch3
file "report.rmd" into log_ch2
script:
...
...
@@ -149,6 +156,22 @@ process trim { // Trim the oligo sequences. See section 8.4 of the labbook 20200
"""
}
process kraken {
label 'kraken'
input:
file fastq from fastq_trim_ch3
file k2db
output:
file "${fastq.baseName}_kraken_std.txt" into krakenreports