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

process cut_5pRACE {
  container = "${container_url}"
  label "small_mem_mono_cpus"
aliarifki's avatar
aliarifki committed
  tag "${barcode}"
xgrand's avatar
xgrand committed
  
  if (params.cutadapt_out != "") {
    publishDir "results/${params.cutadapt_out}", mode: 'copy'
  }

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

  output:
  tuple val(barcode), path("${barcode}_merged_porechoped_cut.fastq.gz"), emit: fastq_cutadapt
xgrand's avatar
xgrand committed

  """
  cutadapt -e 0.2 -g ${adapt} \
   --revcomp \
   -o "${barcode}_merged_porechoped_cut.fastq.gz" \
xgrand's avatar
xgrand committed
   ${fastq}
  """
}