Hi!
I am new to nextflow so apologies if this one is a FAQ.
I am trying to figure out nextflow through setting up running the program fastqc on some files. This is how far I've gotten:
params.reads = "fastq_files/*R{1,2}_001.fastq.gz"
Channel
.fromFilePairs( params.reads )
.ifEmpty { error "Cannot find any reads matching: ${params.reads}" }
.set { read_pairs }
process run_fastqc {
input:
set pair_id, file(reads) from read_pairs
output:
file '*_fastqc.{zip,html}' into fastqc_results
"""
mkdir ${pair_id}
fastqc -q ${reads} -o ${pair_id}
"""
}
My questions are as follows:
1. I can see that the pair_id directory is being created in the work directory. However, I would like to put these resulting directories in a directory of my choosing. How do I do that?
2. I would like to run a script on the directory containing the resulting fastqc zip files once all of the fastcqs are done. How do I do that?
Thanks!
Karin