mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 13:43:09 +00:00
Add outputs for umitools dedup summary stats (#1422)
This commit is contained in:
parent
15c7190e22
commit
f425aa3cea
2 changed files with 21 additions and 4 deletions
|
@ -11,7 +11,10 @@ process UMITOOLS_DEDUP {
|
||||||
tuple val(meta), path(bam), path(bai)
|
tuple val(meta), path(bam), path(bai)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("*.bam"), emit: bam
|
tuple val(meta), path("*.bam") , emit: bam
|
||||||
|
tuple val(meta), path("*edit_distance.tsv"), emit: tsv_edit_distance
|
||||||
|
tuple val(meta), path("*per_umi.tsv") , emit: tsv_per_umi
|
||||||
|
tuple val(meta), path("*per_position.tsv") , emit: tsv_umi_per_position
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
@ -22,9 +25,11 @@ process UMITOOLS_DEDUP {
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def paired = meta.single_end ? "" : "--paired"
|
def paired = meta.single_end ? "" : "--paired"
|
||||||
"""
|
"""
|
||||||
umi_tools dedup \\
|
umi_tools \\
|
||||||
|
dedup \\
|
||||||
-I $bam \\
|
-I $bam \\
|
||||||
-S ${prefix}.bam \\
|
-S ${prefix}.bam \\
|
||||||
|
--output-stats $prefix \\
|
||||||
$paired \\
|
$paired \\
|
||||||
$args
|
$args
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,18 @@ output:
|
||||||
type: file
|
type: file
|
||||||
description: BAM file with deduplicated UMIs.
|
description: BAM file with deduplicated UMIs.
|
||||||
pattern: "*.{bam}"
|
pattern: "*.{bam}"
|
||||||
|
- tsv_edit_distance:
|
||||||
|
type: file
|
||||||
|
description: Reports the (binned) average edit distance between the UMIs at each position.
|
||||||
|
pattern: "*edit_distance.tsv"
|
||||||
|
- tsv_per_umi:
|
||||||
|
type: file
|
||||||
|
description: UMI-level summary statistics.
|
||||||
|
pattern: "*per_umi.tsv"
|
||||||
|
- tsv_umi_per_position:
|
||||||
|
type: file
|
||||||
|
description: Tabulates the counts for unique combinations of UMI and position.
|
||||||
|
pattern: "*per_position.tsv"
|
||||||
- versions:
|
- versions:
|
||||||
type: file
|
type: file
|
||||||
description: File containing software versions
|
description: File containing software versions
|
||||||
|
|
Loading…
Reference in a new issue