mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Fix bedtools sort module
This commit is contained in:
parent
f3b5af4ed5
commit
5779b180da
4 changed files with 20 additions and 19 deletions
|
@ -11,7 +11,7 @@ process BEDTOOLS_SORT {
|
|||
mode: params.publish_dir_mode,
|
||||
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) }
|
||||
|
||||
conda (params.enable_conda ? "bioconda::bedtools=2.30.0" : null)
|
||||
conda (params.enable_conda ? "bioconda::bedtools=2.30.0=hc088bd4_0" : null)
|
||||
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
|
||||
container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0"
|
||||
} else {
|
||||
|
@ -19,11 +19,11 @@ process BEDTOOLS_SORT {
|
|||
}
|
||||
|
||||
input:
|
||||
tuple val(meta), path(beds)
|
||||
tuple val(meta), path(bed)
|
||||
|
||||
output:
|
||||
tuple val(meta), path('*.sort.bed'), emit: bed
|
||||
path '*.version.txt' , emit: version
|
||||
tuple val(meta), path('*.bed'), emit: bed
|
||||
path '*.version.txt' , emit: version
|
||||
|
||||
script:
|
||||
def software = getSoftwareName(task.process)
|
||||
|
@ -31,9 +31,9 @@ process BEDTOOLS_SORT {
|
|||
"""
|
||||
bedtools \\
|
||||
sort \\
|
||||
-i $beds \\
|
||||
-i $bed \\
|
||||
$options.args \\
|
||||
> ${prefix}.sort.bed
|
||||
> ${prefix}.bed
|
||||
|
||||
bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt
|
||||
"""
|
||||
|
|
|
@ -24,18 +24,21 @@ params:
|
|||
description: |
|
||||
Run the module with Conda using the software specified
|
||||
via the `conda` directive
|
||||
|
||||
- singularity_pull_docker_container:
|
||||
type: boolean
|
||||
description: |
|
||||
Instead of directly downloading Singularity images for use with Singularity,
|
||||
force the workflow to pull and convert Docker containers instead.
|
||||
input:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- beds:
|
||||
- bed:
|
||||
type: file
|
||||
description: List of bed files
|
||||
description: Input BED file
|
||||
pattern: "*.{bed}"
|
||||
|
||||
output:
|
||||
- meta:
|
||||
type: map
|
||||
|
@ -44,14 +47,13 @@ output:
|
|||
e.g. [ id:'test', single_end:false ]
|
||||
- bed:
|
||||
type: file
|
||||
description: Sorted bed file
|
||||
pattern: "*.{sort.bed}"
|
||||
|
||||
description: Sorted BED file
|
||||
pattern: "*.{bed}"
|
||||
- version:
|
||||
type: file
|
||||
description: File containing software version
|
||||
pattern: "*.{version.txt}"
|
||||
|
||||
authors:
|
||||
-"@Emiller88"
|
||||
-"@sruthipsuresh"
|
||||
- "@Emiller88"
|
||||
- "@sruthipsuresh"
|
||||
- "@drpatelh"
|
||||
|
|
|
@ -9,6 +9,5 @@ workflow test_bedtools_sort {
|
|||
input = [ [ id:'test'],
|
||||
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ]
|
||||
|
||||
BEDTOOLS_SORT( input )
|
||||
|
||||
BEDTOOLS_SORT ( input )
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@
|
|||
- bedtools
|
||||
- bedtools_sort
|
||||
files:
|
||||
- path: output/bedtools/test.sort.bed
|
||||
- path: output/bedtools/test.bed
|
||||
md5sum: 4279202e33fcce3d19f420f1b27fddee
|
||||
|
|
Loading…
Reference in a new issue