Sunil
10/02/2024, 12:08 PMfastqc module. I'm not sure if this is the normal behaviour of the module or if I'm doing something wrong in processing the file names from the csv:
sample_id,fastq_1,fastq_2
Input_WT_B4102_S14,data/Input_WT_B4102_S14_R1.fastq.gz,data/Input_WT_B4102_S14_R2.fastq.gz
this is my main.nf:
params.input = "$projectDir/sample_sheet1.csv"
params.outdir = "$projectDir/output"
include { FASTQC } from "./modules/nf-core/fastqc/main.nf"
include { MULTIQC } from "./modules/nf-core/multiqc/main.nf"
workflow {
Channel.fromPath(params.input, checkIfExists: true)
.splitCsv(header: true)
.map { row ->
println "Processing sample: ${row.sample_id}, R1: ${row.fastq_1}, R2: ${row.fastq_2}"
tuple([id: row.sample_id], [file(row.fastq_1), file(row.fastq_2)])
}
.set{input_ch}
fastqc_ch = FASTQC(input_ch)
fastqc_zip = fastqc_ch.zip.map { meta, zipFile -> zipFile }
MULTIQC(fastqc_zip, [], [], [], [], [])
}
The output filenames appear in fastqc and multiqc reports as
Input_WT_B4102_S14_1.gz
Input_WT_B4102_S14_2.gz
instead of Input_WT_B4102_S14_R1.gz and Input_WT_B4102_S14_R2.gzMahesh Binzer-Panchal
10/02/2024, 12:28 PMSunil
10/02/2024, 12:32 PM