I realised that the filenames are not being displa...
# modules
s
I realised that the filenames are not being displayed the way they should by running the
fastqc
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:
Copy code
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:
Copy code
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
Copy code
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.gz
m
FastQC renames the files in the module: See https://github.com/nf-core/modules/blob/eb7b70119bfb1877334c996d13e520c61b21067d/modules/nf-core/fastqc/main.nf#L25-L27 I don't remember exactly why though. Perhaps @hpatel does.
s
oh, that's very strange. thanks for the quick response though.