Skip to content
Snippets Groups Projects
Commit 9fef6214 authored by nservant's avatar nservant
Browse files

[MODIF] add hicexplorer

parent f17ea6ff
No related branches found
No related tags found
No related merge requests found
/*
* 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
"""
}
/*
* hicexplorer - hicPlotDistVsCounts
*/
process HIC_PLOT_DIST_VS_COUNTS {
label 'process_medium'
input:
tuple val(meta), path(cool)
output:
path("*distcount*"), emit:results
path("versions.yml"), emit:versions
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
hicPlotDistVsCounts --matrices ${cool} \
--plotFile ${prefix}_distcount.png \
--outFileData ${prefix}_distcount.txt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
hicexplorer: \$(hicPlotDistVsCounts --version 2>&1 | sed 's/hicPlotDistVsCounts //')
END_VERSIONS
"""
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment