Skip to content
Snippets Groups Projects
main.nf 526 B
Newer Older
xgrand's avatar
xgrand committed
version = "0.2.4"
container_url = "xgrand/porechop:${version}"

xgrand's avatar
xgrand committed
process porechop {
    container = "${container_url}"
    label "small_mem_multi_cpus"
xgrand's avatar
xgrand committed
    if (params.porechop_out != "") {
      publishDir "results/${params.porechop_out}", mode: 'copy'
    }

  input:
    tuple val(barcode), path(fastq)
xgrand's avatar
xgrand committed

  output:
    tuple val(barcode), path("*"), emit: porechoped_fastq
xgrand's avatar
xgrand committed
  script:
"""
porechop --input ${fastq} -o ${barcode}_merged_porechoped.fastq.gz --threads ${task.cpus}
xgrand's avatar
xgrand committed
"""
}