Skip to content
Snippets Groups Projects
hicFindTADs.nf 604 B
Newer Older
nservant's avatar
nservant committed
/*
 * hicexplorer - hicFindTADs
 */
 
process HIC_FIND_TADS {
  label 'process_medium'

  input:
  tuple val(meta), path(cool)

  output:
  path("*hicfindtads*"), emit:results
  path("versions.yml"), emit:versions

  script:
  def args = task.ext.args ?: ''
  def prefix = task.ext.prefix ?: "${meta.id}"
  """
  hicFindTADs --matrix ${cool} \
  	      --outPrefix ${prefix}_hicfindtads \
	      ${args} \
	      --numberOfProcessors ${task.cpus}

  cat <<-END_VERSIONS > versions.yml
  "${task.process}":
      hicexplorer: \$(hicFindTADs --version 2>&1 | sed 's/hicFindTADs //')
  END_VERSIONS
  """
}