name: picard_markduplicates
description: Locate and tag duplicate reads in a BAM file
keywords:
    - markduplicates
    - pcr
    - duplicates
    - bam
    - sam
    - cram
tools:
    - picard:
        description: |
            A set of command line tools (in Java) for manipulating high-throughput sequencing (HTS)
            data and formats such as SAM/BAM/CRAM and VCF.
        homepage: https://broadinstitute.github.io/picard/
        documentation: https://broadinstitute.github.io/picard/
input:
    - meta:
        type: map
        description: |
            Groovy Map containing sample information
            e.g. [ id:'test', single_end:false ]
    - bam:
        type: file
        description: BAM file
        pattern: "*.{bam}"
output:
    - meta:
        type: map
        description: |
            Groovy Map containing sample information
            e.g. [ id:'test', single_end:false ]
    - bam:
        type: file
        description: BAM file with duplicate reads marked/removed
        pattern: "*.{bam}"
    - metrics:
        type: file
        description: Duplicate metrics file generated by picard
        pattern: "*.{metrics.txt}"
    - version:
        type: file
        description: File containing software version
        pattern: "*.{version.txt}"
authors:
    - "@drpatelh"
