mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-02 20:52:07 -05:00
Corrected sort
This commit is contained in:
parent
70de0331a5
commit
29639c522f
2 changed files with 3 additions and 2 deletions
|
@ -21,14 +21,14 @@ process BEDTOOLS_SORT {
|
|||
tuple val(meta), path(beds)
|
||||
|
||||
output:
|
||||
tuple val(meta), path("*.sort"), emit: sort
|
||||
tuple val(meta), path("*.sort.bed"), emit: sort
|
||||
path "*.version.txt", emit: version
|
||||
|
||||
script:
|
||||
def software = getSoftwareName(task.process)
|
||||
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
|
||||
"""
|
||||
bedtools sort -i $beds ${options.args} > ${prefix}.sort
|
||||
bedtools sort -i $beds ${options.args} > ${prefix}.sort.bed
|
||||
bedtools --version | sed -e "s/Bedtools v//g" > ${software}.version.txt
|
||||
"""
|
||||
}
|
||||
|
|
|
@ -77,6 +77,7 @@ workflow test_bedtools_sort {
|
|||
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ]
|
||||
|
||||
BEDTOOLS_SORT( input )
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue