Merge pull request #151 from drpatelh/bedtools

Follow up fixes for bedtools modules added in #79
This commit is contained in:
Harshil Patel 2021-02-09 01:54:31 +00:00 committed by GitHub
commit 46e5df2cf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 158 additions and 161 deletions

View file

@ -25,7 +25,7 @@ jobs:
matrix: matrix:
nxf_version: ['20.11.0-edge'] nxf_version: ['20.11.0-edge']
tags: ['${{ fromJson(needs.changes.outputs.modules) }}'] tags: ['${{ fromJson(needs.changes.outputs.modules) }}']
profile: ['docker', 'singularity'] ## 'conda' profile: ['docker', 'singularity', 'conda']
env: env:
NXF_ANSI_LOG: false NXF_ANSI_LOG: false
steps: steps:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View file

@ -11,7 +11,7 @@ process BEDTOOLS_COMPLEMENT {
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) } 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) { if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0" container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0"
} else { } else {
@ -19,10 +19,11 @@ process BEDTOOLS_COMPLEMENT {
} }
input: input:
tuple val(meta), path(beds), path(sizes) tuple val(meta), path(bed)
path sizes
output: output:
tuple val(meta), path('*.complement.bed'), emit: bed tuple val(meta), path('*.bed'), emit: bed
path '*.version.txt' , emit: version path '*.version.txt' , emit: version
script: script:
@ -31,10 +32,10 @@ process BEDTOOLS_COMPLEMENT {
""" """
bedtools \\ bedtools \\
complement \\ complement \\
-i $beds \\ -i $bed \\
-g $sizes \\ -g $sizes \\
$options.args \\ $options.args \\
> ${prefix}.complement.bed > ${prefix}.bed
bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt
""" """

View file

@ -24,22 +24,25 @@ params:
description: | description: |
Run the module with Conda using the software specified Run the module with Conda using the software specified
via the `conda` directive 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: input:
- meta: - meta:
type: map type: map
description: | description: |
Groovy Map containing sample information Groovy Map containing sample information
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- beds: - bed:
type: file type: file
description: List of bed files description: Input BED file
pattern: "*.{bed}" pattern: "*.{bed}"
- sizes: - sizes:
type: file type: file
description: File which defines the chromosome lengths for a given genome description: File which defines the chromosome lengths for a given genome
pattern: "*.{sizes}" pattern: "*.{sizes}"
output: output:
- meta: - meta:
type: map type: map
@ -49,11 +52,12 @@ output:
- bed: - bed:
type: file type: file
description: Bed file with all genomic intervals that are not covered by at least one record from the input file. description: Bed file with all genomic intervals that are not covered by at least one record from the input file.
pattern: "*.{complement.bed}" pattern: "*.{bed}"
- version: - version:
type: file type: file
description: File containing software version description: File containing software version
pattern: "*.{version.txt}" pattern: "*.{version.txt}"
authors: authors:
-"@Emiller88" - "@Emiller88"
-"@sruthipsuresh" - "@sruthipsuresh"
- "@drpatelh"

View file

@ -11,7 +11,7 @@ process BEDTOOLS_GENOMECOV {
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) } 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) { if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0" container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0"
} else { } else {
@ -19,11 +19,11 @@ process BEDTOOLS_GENOMECOV {
} }
input: input:
tuple val(meta), path(bams) tuple val(meta), path(bam)
output: output:
tuple val(meta), path("*.bed"), emit: coverage tuple val(meta), path("*.bed"), emit: bed
path "*.version.txt", emit: version path "*.version.txt" , emit: version
script: script:
def software = getSoftwareName(task.process) def software = getSoftwareName(task.process)
@ -31,7 +31,7 @@ process BEDTOOLS_GENOMECOV {
""" """
bedtools \\ bedtools \\
genomecov \\ genomecov \\
-ibam $bams \\ -ibam $bam \\
$options.args \\ $options.args \\
> ${prefix}.bed > ${prefix}.bed

View file

@ -9,7 +9,6 @@ tools:
description: | description: |
A set of tools for genomic analysis tasks, specifically enabling genome arithmetic (merge, count, complement) on various file types. 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/genomecov.html documentation: https://bedtools.readthedocs.io/en/latest/content/tools/genomecov.html
params: params:
- outdir: - outdir:
type: string type: string
@ -26,7 +25,11 @@ params:
description: | description: |
Run the module with Conda using the software specified Run the module with Conda using the software specified
via the `conda` directive 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: input:
- meta: - meta:
type: map type: map
@ -35,7 +38,7 @@ input:
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- bam: - bam:
type: file type: file
description: List of bam files description: Input BAM file
pattern: "*.{bam}" pattern: "*.{bam}"
output: output:
- meta: - meta:
@ -47,12 +50,11 @@ output:
type: file type: file
description: Computed genomecov bed file description: Computed genomecov bed file
pattern: "*.{bed}" pattern: "*.{bed}"
- version: - version:
type: file type: file
description: File containing software version description: File containing software version
pattern: "*.{version.txt}" pattern: "*.{version.txt}"
authors: authors:
-"@Emiller88" - "@Emiller88"
-"@sruthipsuresh" - "@sruthipsuresh"
- "@drpatelh"

View file

@ -11,7 +11,7 @@ process BEDTOOLS_INTERSECT {
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) } 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) { if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0" container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0"
} else { } else {
@ -22,7 +22,7 @@ process BEDTOOLS_INTERSECT {
tuple val(meta), path(bed1), path(bed2) tuple val(meta), path(bed1), path(bed2)
output: output:
tuple val(meta), path('*.intersect.bed'), emit: bed tuple val(meta), path('*.bed'), emit: bed
path '*.version.txt' , emit: version path '*.version.txt' , emit: version
script: script:
@ -31,10 +31,10 @@ process BEDTOOLS_INTERSECT {
""" """
bedtools \\ bedtools \\
intersect \\ intersect \\
-a ${bed1} \\ -a $bed1 \\
-b ${bed2} \\ -b $bed2 \\
$options.args \\ $options.args \\
> ${prefix}.intersect.bed > ${prefix}.bed
bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt
""" """

View file

@ -24,7 +24,11 @@ params:
description: | description: |
Run the module with Conda using the software specified Run the module with Conda using the software specified
via the `conda` directive 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: input:
- meta: - meta:
type: map type: map
@ -33,13 +37,12 @@ input:
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- bed1: - bed1:
type: file type: file
description: Bed file, each feature in 1 is compared to 2 in search of overlaps description: BED file, each feature in 1 is compared to 2 in search of overlaps
pattern: "*.{bed}" pattern: "*.{bed}"
- bed2: - bed2:
type: file type: file
description: Second bed file, used to compare to 1. description: Second bed file, used to compare to first BED file
pattern: "*.{bed}" pattern: "*.{bed}"
output: output:
- meta: - meta:
type: map type: map
@ -48,12 +51,13 @@ output:
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- bed: - bed:
type: file type: file
description: Overlapped bed file description: BED file with intersected intervals
pattern: "*.{intersect.bed}" pattern: "*.{bed}"
- version: - version:
type: file type: file
description: File containing software version description: File containing software version
pattern: "*.{version.txt}" pattern: "*.{version.txt}"
authors: authors:
-"@Emiller88" - "@Emiller88"
-"@sruthipsuresh" - "@sruthipsuresh"
- "@drpatelh"

View file

@ -9,9 +9,9 @@ process BEDTOOLS_MERGE {
label 'process_medium' label 'process_medium'
publishDir "${params.outdir}", publishDir "${params.outdir}",
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') } 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) { if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0" container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0"
} else { } else {
@ -19,10 +19,10 @@ process BEDTOOLS_MERGE {
} }
input: input:
tuple val(meta), path(beds) tuple val(meta), path(bed)
output: output:
tuple val(meta), path('*.merged.bed'), emit: bed tuple val(meta), path('*.bed'), emit: bed
path '*.version.txt' , emit: version path '*.version.txt' , emit: version
script: script:
@ -31,9 +31,9 @@ process BEDTOOLS_MERGE {
""" """
bedtools \\ bedtools \\
merge \\ merge \\
-i $beds \\ -i $bed \\
$options.args \\ $options.args \\
> ${prefix}.merged.bed > ${prefix}.bed
bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt
""" """

View file

@ -24,7 +24,11 @@ params:
description: | description: |
Run the module with Conda using the software specified Run the module with Conda using the software specified
via the `conda` directive 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: input:
- meta: - meta:
type: map type: map
@ -33,9 +37,8 @@ input:
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- bed: - bed:
type: file type: file
description: Presorted interval bed file description: Input BED file
pattern: "*.{bed}" pattern: "*.{bed}"
output: output:
- meta: - meta:
type: map type: map
@ -45,11 +48,12 @@ output:
- bed: - bed:
type: file type: file
description: Overlapped bed file with combined features description: Overlapped bed file with combined features
pattern: "*.{merged.bed}" pattern: "*.{bed}"
- version: - version:
type: file type: file
description: File containing software version description: File containing software version
pattern: "*.{version.txt}" pattern: "*.{version.txt}"
authors: authors:
-"@Emiller88" - "@Emiller88"
-"@sruthipsuresh" - "@sruthipsuresh"
- "@drpatelh"

View file

@ -11,20 +11,20 @@ process BEDTOOLS_SLOP {
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) } 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) { if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0" container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0"
} else { } else {
container "quay.io/biocontainers/bedtools:2.30.0--hc088bd4_0" container "quay.io/biocontainers/bedtools:2.30.0--hc088bd4_0"
} }
input: input:
tuple val(meta), path(beds), path (sizes) tuple val(meta), path(bed)
path sizes
output: output:
tuple val(meta), path("*.slop.bed"), emit: bed tuple val(meta), path("*.bed"), emit: bed
path "*.version.txt", emit: version path "*.version.txt" , emit: version
script: script:
def software = getSoftwareName(task.process) def software = getSoftwareName(task.process)
@ -32,10 +32,10 @@ process BEDTOOLS_SLOP {
""" """
bedtools \\ bedtools \\
slop \\ slop \\
-i $beds \\ -i $bed \\
-g $sizes \\ -g $sizes \\
$options.args \\ $options.args \\
> ${prefix}.slop.bed > ${prefix}.bed
bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt
""" """

View file

@ -8,27 +8,7 @@ tools:
description: | description: |
A set of tools for genomic analysis tasks, specifically enabling genome arithmetic (merge, count, complement) on various file types. 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/slop.html documentation: https://bedtools.readthedocs.io/en/latest/content/tools/slop.html
params: params:
- l:
type: integer
description: The number of base pairs to subtract from the start coordinate
- r:
type: integer
description: The number of base pairs to add to the end coordinate
- b:
type: integer
description: Increases the entry by the same number base pairs in each direction
- pct:
type: boolean
description: |
Define -l and -r as a fraction of the features length. E.g. if used on a 1000bp feature, -l 0.50, will add 500 bp “upstream”. By default this is set to false.
- header:
type: boolean
description: |
Print the header from the input file prior to results.
- outdir: - outdir:
type: string type: string
description: | description: |
@ -44,7 +24,11 @@ params:
description: | description: |
Run the module with Conda using the software specified Run the module with Conda using the software specified
via the `conda` directive 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: input:
- meta: - meta:
type: map type: map
@ -53,7 +37,7 @@ input:
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- bed: - bed:
type: file type: file
description: List of bed files description: Input BED file
pattern: "*.{bed}" pattern: "*.{bed}"
output: output:
- meta: - meta:
@ -63,13 +47,13 @@ output:
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- bed: - bed:
type: file type: file
description: Edited bed file description: Slopped BED file
pattern: "*.{slop.bed}" pattern: "*.{bed}"
- version: - version:
type: file type: file
description: File containing software version description: File containing software version
pattern: "*.{version.txt}" pattern: "*.{version.txt}"
authors:
authors: -"@Emiller88" - "@Emiller88"
-"@sruthipsuresh" - "@sruthipsuresh"
- "@drpatelh"

View file

@ -11,7 +11,7 @@ process BEDTOOLS_SORT {
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) } 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) { if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0" container "https://depot.galaxyproject.org/singularity/bedtools:2.30.0--hc088bd4_0"
} else { } else {
@ -19,10 +19,10 @@ process BEDTOOLS_SORT {
} }
input: input:
tuple val(meta), path(beds) tuple val(meta), path(bed)
output: output:
tuple val(meta), path('*.sort.bed'), emit: bed tuple val(meta), path('*.bed'), emit: bed
path '*.version.txt' , emit: version path '*.version.txt' , emit: version
script: script:
@ -31,9 +31,9 @@ process BEDTOOLS_SORT {
""" """
bedtools \\ bedtools \\
sort \\ sort \\
-i $beds \\ -i $bed \\
$options.args \\ $options.args \\
> ${prefix}.sort.bed > ${prefix}.bed
bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt bedtools --version | sed -e "s/bedtools v//g" > ${software}.version.txt
""" """

View file

@ -24,18 +24,21 @@ params:
description: | description: |
Run the module with Conda using the software specified Run the module with Conda using the software specified
via the `conda` directive 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: input:
- meta: - meta:
type: map type: map
description: | description: |
Groovy Map containing sample information Groovy Map containing sample information
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- beds: - bed:
type: file type: file
description: List of bed files description: Input BED file
pattern: "*.{bed}" pattern: "*.{bed}"
output: output:
- meta: - meta:
type: map type: map
@ -44,14 +47,13 @@ output:
e.g. [ id:'test', single_end:false ] e.g. [ id:'test', single_end:false ]
- bed: - bed:
type: file type: file
description: Sorted bed file description: Sorted BED file
pattern: "*.{sort.bed}" pattern: "*.{bed}"
- version: - version:
type: file type: file
description: File containing software version description: File containing software version
pattern: "*.{version.txt}" pattern: "*.{version.txt}"
authors: authors:
-"@Emiller88" - "@Emiller88"
-"@sruthipsuresh" - "@sruthipsuresh"
- "@drpatelh"

View file

@ -7,8 +7,7 @@ include { BEDTOOLS_COMPLEMENT } from '../../../../software/bedtools/complement/m
workflow test_bedtools_complement { workflow test_bedtools_complement {
def input = [] def input = []
input = [ [ id:'test'], input = [ [ id:'test'],
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true), file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ]
file("${launchDir}/tests/data/bed/genome.sizes", checkIfExists: true) ]
BEDTOOLS_COMPLEMENT( input ) BEDTOOLS_COMPLEMENT ( input, file("${launchDir}/tests/data/bed/genome.sizes", checkIfExists: true) )
} }

View file

@ -4,5 +4,5 @@
- bedtools - bedtools
- bedtools_complement - bedtools_complement
files: files:
- path: output/bedtools/test.complement.bed - path: output/bedtools/test.bed
md5sum: 55a43973abb1a08ac57290ff44f6c502 md5sum: 55a43973abb1a08ac57290ff44f6c502

View file

@ -4,12 +4,11 @@ nextflow.enable.dsl = 2
include { BEDTOOLS_GENOMECOV } from '../../../../software/bedtools/genomecov/main.nf' addParams( options: [:] ) include { BEDTOOLS_GENOMECOV } from '../../../../software/bedtools/genomecov/main.nf' addParams( options: [:] )
workflow test_bedtools_genomecov { workflow test_bedtools_genomecov {
def input = [] def input = []
input = [ [ id:'test'], input = [ [ id:'test'],
file("${launchDir}/tests/data/bam/test.paired_end.name.sorted.bam", checkIfExists: true) ] file("${launchDir}/tests/data/bam/test.paired_end.name.sorted.bam", checkIfExists: true) ]
BEDTOOLS_GENOMECOV( input ) BEDTOOLS_GENOMECOV ( input )
} }

View file

@ -10,5 +10,5 @@ workflow test_bedtools_intersect {
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true), file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true),
file("${launchDir}/tests/data/bed/B.bed", checkIfExists: true) ] file("${launchDir}/tests/data/bed/B.bed", checkIfExists: true) ]
BEDTOOLS_INTERSECT( input ) BEDTOOLS_INTERSECT ( input )
} }

View file

@ -4,5 +4,5 @@
- bedtools - bedtools
- bedtools_intersect - bedtools_intersect
files: files:
- path: output/bedtools/test.intersect.bed - path: output/bedtools/test.bed
md5sum: cc1bb317886e7df0a942b56f8a320d9c md5sum: cc1bb317886e7df0a942b56f8a320d9c

View file

@ -9,6 +9,6 @@ workflow test_bedtools_merge {
input = [ [ id:'test'], input = [ [ id:'test'],
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ] file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ]
BEDTOOLS_MERGE( input ) BEDTOOLS_MERGE ( input )
} }

View file

@ -4,5 +4,5 @@
- bedtools - bedtools
- bedtools_merge - bedtools_merge
files: files:
- path: output/bedtools/test.merged.bed - path: output/bedtools/test.bed
md5sum: 13e5a3b254fac35fe0da0c92cbaf1761 md5sum: 13e5a3b254fac35fe0da0c92cbaf1761

View file

@ -7,9 +7,8 @@ include { BEDTOOLS_SLOP } from '../../../../software/bedtools/slop/main.nf' addP
workflow test_bedtools_slop { workflow test_bedtools_slop {
def input = [] def input = []
input = [ [ id:'test'], input = [ [ id:'test'],
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true), file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ]
file("${launchDir}/tests/data/bed/genome.sizes", checkIfExists: true) ]
BEDTOOLS_SLOP( input ) BEDTOOLS_SLOP ( input, file("${launchDir}/tests/data/bed/genome.sizes", checkIfExists: true) )
} }

View file

@ -4,5 +4,5 @@
- bedtools - bedtools
- bedtools_slop - bedtools_slop
files: files:
- path: output/bedtools/test.slop.bed - path: output/bedtools/test.bed
md5sum: 5f6ecc3e3cc6cee9537a1d088b02abec md5sum: 5f6ecc3e3cc6cee9537a1d088b02abec

View file

@ -9,6 +9,5 @@ workflow test_bedtools_sort {
input = [ [ id:'test'], input = [ [ id:'test'],
file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ] file("${launchDir}/tests/data/bed/A.bed", checkIfExists: true) ]
BEDTOOLS_SORT( input ) BEDTOOLS_SORT ( input )
} }

View file

@ -4,5 +4,5 @@
- bedtools - bedtools
- bedtools_sort - bedtools_sort
files: files:
- path: output/bedtools/test.sort.bed - path: output/bedtools/test.bed
md5sum: 4279202e33fcce3d19f420f1b27fddee md5sum: 4279202e33fcce3d19f420f1b27fddee