Nextflow CLI
Nextflow CLI
Installation
Tutorial project
main.nf
nextflow.enable.dsl = 2
process INDEX {
input:
path transcriptome_file
output:
path 'salmon_index'
script:
"""
salmon index -t $transcriptome_file -i salmon_index
"""
}
process QUANTIFICATION {
publishDir 'out', mode: 'symlink'
input:
path salmon_index
tuple path(read1), path(read2)
val(quant)
output:
path "$quant"
script:
"""
salmon quant --libType=U -i $salmon_index -1 $read1 -2 $read2 -o $quant
"""
}
process FASTQC {
input:
tuple path(read1), path(read2)
output:
path "fastqc_logs"
script:
"""
mkdir fastqc_logs
fastqc -o fastqc_logs -f fastq -q ${read1} ${read2}
"""
}
process MULTIQC {
publishDir 'out', mode:'symlink'
input:
path '*'
output:
path 'multiqc_report.html'
script:
"""
multiqc .
"""
}
workflow {
index_ch = INDEX(Channel.fromPath(params.transcriptome_file))
quant_ch = QUANTIFICATION(index_ch, Channel.of([file(params.read1), file(params.read2)]),Channel.of("quant"))
fastqc_ch = FASTQC(Channel.of([file(params.read1), file(params.read2)]))
MULTIQC(quant_ch.mix(fastqc_ch).collect())
}Docker image upload
Nextflow configuration file
Parameters file
Last updated
Was this helpful?
