mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
Fixed intersect, complement indentation issues
This commit is contained in:
parent
3da39dfc88
commit
19b55fc67c
4 changed files with 36 additions and 28 deletions
|
@ -29,7 +29,13 @@ process BEDTOOLS_COMPLEMENT {
|
|||
def software = getSoftwareName(task.process)
|
||||
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
|
||||
"""
|
||||
bedtools complement -i $beds -g $sizes ${options.args} > ${prefix}.complement.bed
|
||||
bedtools \\
|
||||
complement \\
|
||||
-i $beds \\
|
||||
-g $sizes \\
|
||||
$options.args \\
|
||||
> ${prefix}.complement.bed
|
||||
|
||||
bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt
|
||||
"""
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ tools:
|
|||
description: |
|
||||
A set of tools for genomic analysis tasks, specifically enabling genome arithmetic (merge, count, complement) on various file types.
|
||||
documentation: https://bedtools.readthedocs.io/en/latest/content/tools/complement.html
|
||||
|
||||
params:
|
||||
- outdir:
|
||||
type: string
|
||||
|
|
|
@ -25,7 +25,7 @@ process BEDTOOLS_INTERSECT {
|
|||
tuple val(meta), path("*.intersect.bed"), emit: bed
|
||||
path "*.version.txt", emit: version
|
||||
|
||||
script: // TODO change script to account for multiple possible intersections
|
||||
script:
|
||||
def software = getSoftwareName(task.process)
|
||||
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
|
||||
"""
|
||||
|
|
|
@ -9,7 +9,6 @@ tools:
|
|||
description: |
|
||||
A set of tools for genomic analysis tasks, specifically enabling genome arithmetic (merge, count, complement) on various file types.
|
||||
documentation: https://bedtools.readthedocs.io/en/latest/content/tools/intersect.html
|
||||
|
||||
params:
|
||||
- outdir:
|
||||
type: string
|
||||
|
@ -33,10 +32,15 @@ input:
|
|||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- bed:
|
||||
- bed1:
|
||||
type: file
|
||||
description: List of bed files
|
||||
description: Bed file, each feature in 1 is compared to 2 in search of overlaps
|
||||
pattern: "*.{bed}"
|
||||
- bed2:
|
||||
type: file
|
||||
description: Second bed file, used to compare to 1.
|
||||
pattern: "*.{bed}"
|
||||
|
||||
output:
|
||||
- meta:
|
||||
type: map
|
||||
|
@ -52,7 +56,6 @@ output:
|
|||
type: file
|
||||
description: File containing software version
|
||||
pattern: "*.{version.txt}"
|
||||
|
||||
authors:
|
||||
-"@Emiller88"
|
||||
-"@sruthipsuresh"
|
||||
|
|
Loading…
Reference in a new issue