mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Bedtools sort add extension choice input (#984)
* hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * Added extension input for bedtools sort * whitespace * Updated docs Co-authored-by: Sviatoslav Sidorov <sviatoslav.sidorov@crick.ac.uk> Co-authored-by: Svyatoslav Sidorov <svet.sidorov@gmail.com>
This commit is contained in:
parent
460a3ed87b
commit
2959b4ba07
4 changed files with 21 additions and 13 deletions
|
@ -19,10 +19,11 @@ process BEDTOOLS_SORT {
|
||||||
}
|
}
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(bed)
|
tuple val(meta), path(intervals)
|
||||||
|
val extension
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path('*.bed'), emit: bed
|
tuple val(meta), path("*.${extension}"), emit: sorted
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@ -30,9 +31,9 @@ process BEDTOOLS_SORT {
|
||||||
"""
|
"""
|
||||||
bedtools \\
|
bedtools \\
|
||||||
sort \\
|
sort \\
|
||||||
-i $bed \\
|
-i $intervals \\
|
||||||
$options.args \\
|
$options.args \\
|
||||||
> ${prefix}.bed
|
> ${prefix}.${extension}
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
${getProcessName(task.process)}:
|
${getProcessName(task.process)}:
|
||||||
|
|
|
@ -15,20 +15,26 @@ input:
|
||||||
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 ]
|
||||||
- bed:
|
- intervals:
|
||||||
type: file
|
type: file
|
||||||
description: Input BED file
|
description: BED/BEDGRAPH
|
||||||
pattern: "*.{bed}"
|
pattern: "*.{bed|bedGraph}"
|
||||||
|
|
||||||
|
- extension:
|
||||||
|
type: string
|
||||||
|
description: Extension of the output file (e. g., ".bg", ".bedgraph", ".txt", ".tab", etc.) It is set arbitrarily by the user and corresponds to the file format which depends on arguments.
|
||||||
output:
|
output:
|
||||||
- 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 ]
|
||||||
- bed:
|
|
||||||
|
- sorted:
|
||||||
type: file
|
type: file
|
||||||
description: Sorted BED file
|
description: Sorted output file
|
||||||
pattern: "*.{bed}"
|
pattern: "*.${extension}"
|
||||||
|
|
||||||
- versions:
|
- versions:
|
||||||
type: file
|
type: file
|
||||||
description: File containing software versions
|
description: File containing software versions
|
||||||
|
@ -37,3 +43,4 @@ authors:
|
||||||
- "@Emiller88"
|
- "@Emiller88"
|
||||||
- "@sruthipsuresh"
|
- "@sruthipsuresh"
|
||||||
- "@drpatelh"
|
- "@drpatelh"
|
||||||
|
- "@chris-cheshire"
|
||||||
|
|
|
@ -9,5 +9,5 @@ workflow test_bedtools_sort {
|
||||||
file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
|
file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
|
||||||
]
|
]
|
||||||
|
|
||||||
BEDTOOLS_SORT ( input )
|
BEDTOOLS_SORT ( input, "testext" )
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
- bedtools
|
- bedtools
|
||||||
- bedtools/sort
|
- bedtools/sort
|
||||||
files:
|
files:
|
||||||
- path: ./output/bedtools/test_out.bed
|
- path: ./output/bedtools/test_out.testext
|
||||||
md5sum: fe4053cf4de3aebbdfc3be2efb125a74
|
md5sum: fe4053cf4de3aebbdfc3be2efb125a74
|
||||||
|
|
Loading…
Reference in a new issue