Skip to content
Snippets Groups Projects
Commit a44e9826 authored by nlecouvr's avatar nlecouvr
Browse files

functionnal version of the pipeline

parent 948ad068
No related branches found
No related tags found
No related merge requests found
...@@ -11,43 +11,33 @@ nextflow.enable.dsl=2 ...@@ -11,43 +11,33 @@ nextflow.enable.dsl=2
include { fastp } from "./nf_modules/fastp/main.nf" include { fastp } from "./nf_modules/fastp/main.nf"
include { index_fasta; mapping_fastq } from "./nf_modules/bowtie2/main.nf" include { index_fasta; mapping_fastq } from "./nf_modules/bowtie2/main.nf" addParams(mapping_fastq_out: "mapping/")
params.genome = "data/genome/dm6.fasta" params.fasta = "data/genome/*_G.fasta"
params.reads = "data/reads/data.fastq" params.fastq = "data/reads/*_R.fastq"
params.help = false
log.info "reads files : ${params.reads}"
log.info "genome file : ${params.genome}"
channel channel
.fromPath("data/genome/dm6.fasta") .fromPath(params.fasta)
.set {genome} .ifEmpty { error "Cannot find any fasta files matching: ${params.genome}" }
/*
channel
.fromPath( params.bed )
.ifEmpty { error "Cannot find any bed files matching: ${params.bed}" }
.map { it -> [it.simpleName, it]} .map { it -> [it.simpleName, it]}
.set { bed_files } .set {fasta_files}
*/
channel channel
.fromFilePairs( "data/reads/data.fastq", size: -1 ) .fromFilePairs(params.fastq, size: -1)
.set {reads} .set {fastq_files}
/*================================ workflow ================================*/ /*================================ workflow ================================*/
workflow { workflow {
fastp(reads) fastp(fastq_files)
//mapping //mapping
index_fasta(genome) index_fasta(fasta_files)
mapping_fastq(index_fasta.out.index.collect(), mapping_fastq(index_fasta.out.index.collect(),
fastp.out.fastq) fastp.out.fastq)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment