Skip to content
Snippets Groups Projects
Select Git revision
  • 1d102f5d58e7bd744e050a2593fc46a60ceacdcf
  • master default protected
  • dev
  • v2.0.0
  • v0.4.0
  • v0.3.0
  • v0.2.9
  • v0.2.8
  • v0.2.7
  • v0.2.6
  • v0.1.0
  • v0.2.5
  • v0.2.4
  • v0.2.3
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.2
18 results

Dam_ID_analysis.nf

Blame
  • Forked from LBMC / nextflow
    Source project has a limited visibility.
    Dam_ID_analysis.nf 1.07 KiB
    nextflow.enable.dsl=2
    /*
    ./nextflow src/Dam_ID_analysis.nf -profile docker --reads "data/reads/data.fastq --genome "data/genome/dm6.fa
    */
    
    
    
    
    
    /*========================= modules import ================================*/
    
    include { fastp } from "./nf_modules/fastp/main.nf"
    
    include { index_fasta; mapping_fastq } from "./nf_modules/bowtie2/main.nf"
    
    
    params.help             = false
    
    log.info "reads files : ${params.reads}"
    log.info "genome file : ${params.genome}"
    
    genome = file (params.genome)
    
    
    /*
    channel
        .fromPath( params.bed )
        .ifEmpty { error "Cannot find any bed files matching: ${params.bed}" }
        .map { it -> [it.simpleName, it]}
        .set { bed_files }
    */
    
    channel
        .fromPath( params.reads )
        .set {reads}
    
    
    /*================================ workflow ================================*/
    
    workflow {
        fastp(reads)
        //mapping
        index_fasta(genome)
        mapping_fastq(index_fasta.out.index.collect(), 
                      reads)
    }
    
    workflow.onComplete {
        println ( workflow.success "Au moins ça a pas planté, mais ça a surement pas marché quand même" )
    }