mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Provide BAI when running rseqc/tin (#1177)
* Provide BAI when running rseqc/tin * Add md5sum * Add proper md5sums * md5sum not md5 * Add xls to meta.yml
This commit is contained in:
parent
754701fb3a
commit
ce8c781bb4
4 changed files with 19 additions and 7 deletions
|
@ -8,11 +8,12 @@ process RSEQC_TIN {
|
||||||
'quay.io/biocontainers/rseqc:3.0.1--py37h516909a_1' }"
|
'quay.io/biocontainers/rseqc:3.0.1--py37h516909a_1' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(bam)
|
tuple val(meta), path(bam), path(bai)
|
||||||
path bed
|
path bed
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("*.txt"), emit: txt
|
tuple val(meta), path("*.txt"), emit: txt
|
||||||
|
tuple val(meta), path("*.xls"), emit: xls
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@ -22,8 +23,7 @@ process RSEQC_TIN {
|
||||||
tin.py \\
|
tin.py \\
|
||||||
-i $bam \\
|
-i $bam \\
|
||||||
-r $bed \\
|
-r $bed \\
|
||||||
$args \\
|
$args
|
||||||
> ${prefix}.tin.txt
|
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
|
@ -23,6 +23,10 @@ input:
|
||||||
type: file
|
type: file
|
||||||
description: Input BAM file
|
description: Input BAM file
|
||||||
pattern: "*.{bam}"
|
pattern: "*.{bam}"
|
||||||
|
- bai:
|
||||||
|
type: file
|
||||||
|
description: Index for input BAM file
|
||||||
|
pattern: "*.{bai}"
|
||||||
- bed:
|
- bed:
|
||||||
type: file
|
type: file
|
||||||
description: BED file containing the reference gene model
|
description: BED file containing the reference gene model
|
||||||
|
@ -30,8 +34,12 @@ input:
|
||||||
output:
|
output:
|
||||||
- txt:
|
- txt:
|
||||||
type: file
|
type: file
|
||||||
description: tin.py results file
|
description: TXT file containing tin.py results summary
|
||||||
pattern: "*.tin.txt"
|
pattern: "*.txt"
|
||||||
|
- xls:
|
||||||
|
type: file
|
||||||
|
description: XLS file containing tin.py results
|
||||||
|
pattern: "*.xls"
|
||||||
- versions:
|
- versions:
|
||||||
type: file
|
type: file
|
||||||
description: File containing software versions
|
description: File containing software versions
|
||||||
|
|
|
@ -8,7 +8,8 @@ workflow test_rseqc_tin {
|
||||||
|
|
||||||
input = [
|
input = [
|
||||||
[ id:'test' ], // meta map
|
[ id:'test' ], // meta map
|
||||||
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true),
|
||||||
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true)
|
||||||
]
|
]
|
||||||
|
|
||||||
bed = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
|
bed = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
|
||||||
|
|
|
@ -4,4 +4,7 @@
|
||||||
- rseqc
|
- rseqc
|
||||||
- rseqc/tin
|
- rseqc/tin
|
||||||
files:
|
files:
|
||||||
- path: output/rseqc/test.tin.txt
|
- path: output/rseqc/test.paired_end.sorted.summary.txt
|
||||||
|
md5sum: 9d98447e178b89a89f6f5aba7a772fe6
|
||||||
|
- path: output/rseqc/test.paired_end.sorted.tin.xls
|
||||||
|
md5sum: 6b1b1b0dc1dc265342ba8c3f27fa60e6
|
||||||
|
|
Loading…
Reference in a new issue