name: biobambam_bamsormadup
description: Parallel sorting and duplicate marking
keywords:
  - markduplicates
  - sort
  - bam
  - cram
tools:
  - biobambam:
      description: |
        biobambam is a set of tools for early stage alignment file processing.
      homepage: https://gitlab.com/german.tischler/biobambam2
      documentation: https://gitlab.com/german.tischler/biobambam2/-/blob/master/README.md
      doi: 10.1186/1751-0473-9-13
      licence: ["GPL v3"]
input:
  - meta:
      type: map
      description: |
        Groovy Map containing sample information
        e.g. [ id:'test', single_end:false ]
  - bams:
      type: file
      description: List containing 1 or more bam files
  - fasta:
      type: file
      description: Reference genome in FASTA format (optional)
      pattern: "*.{fa,fasta}"
output:
  - meta:
      type: map
      description: |
        Groovy Map containing sample information
        e.g. [ id:'test', single_end:false ]
  - bam:
      type: file
      description: BAM/CRAM file with duplicate reads marked/removed
      pattern: "*.{bam,cram}"
  - bam_index:
      type: file
      description: BAM index file
      pattern: "*.{bai}"
  - metrics:
      type: file
      description: Duplicate metrics file generated by biobambam
      pattern: "*.{metrics.txt}"
  - versions:
      type: file
      description: File containing software versions
      pattern: "versions.yml"
authors:
  - "@matthdsm"