Class UmiAwareMarkDuplicatesWithMateCigar

All Implemented Interfaces:
MarkDuplicatesHelper

@DocumentedFeature public class UmiAwareMarkDuplicatesWithMateCigar extends SimpleMarkDuplicatesWithMateCigar

This tool locates and tags duplicate reads in a BAM or SAM file, where duplicate reads are defined as originating from a single fragment of DNA. It is based on the MarkDuplicatesWithMateCigar tool, with added logic to leverage Unique Molecular Identifier (UMI) information.

It makes use of the fact that duplicate sets with UMIs can be broken up into subsets based on information contained in the UMI. In addition to assuming that all members of a duplicate set must have the same start and end position, it imposes that they must also have sufficiently similar UMIs. In this context, 'sufficiently similar' is parameterized by the command line argument MAX_EDIT_DISTANCE_TO_JOIN, which sets the edit distance between UMIs that will be considered to be part of the same original molecule. This logic allows for sequencing errors in UMIs.

If UMIs contain dashes, the dashes will be ignored. If UMIs contain Ns, these UMIs will not contribute to UMI metrics associated with each record. If the MAX_EDIT_DISTANCE_TO_JOIN allows, UMIs with Ns will be included in the duplicate set and the UMI metrics associated with each duplicate set. Ns are counted as an edit distance from other bases {ATCG}, but are not considered different from each other.

This tool is NOT intended to be used on data without UMIs; for marking duplicates in non-UMI data, see MarkDuplicates or MarkDuplicatesWithMateCigar. Mixed data (where some reads have UMIs and others do not) is not supported.

Note also that this tool will not work with alignments that have large gaps or deletions, such as those from RNA-seq data. This is due to the need to buffer small genomic windows to ensure integrity of the duplicate marking, while large skips (ex. skipping introns) in the alignment records would force making that window very large, thus exhausting memory.

Note: Metrics labeled as percentages are actually expressed as fractions!

Usage example:


 java -jar picard.jar UmiAwareMarkDuplicatesWithMateCigar \\
I=input.bam \\
O=output.bam \\
M=output_duplicate_metrics.txt \\
UMI_METRICS=output_umi_metrics.txt

  • Field Details

    • MAX_EDIT_DISTANCE_TO_JOIN

      @Argument(shortName="MAX_EDIT_DISTANCE_TO_JOIN", doc="Largest edit distance that UMIs must have in order to be considered as coming from distinct source molecules.", optional=true) public int MAX_EDIT_DISTANCE_TO_JOIN
    • UMI_METRICS_FILE

      @Argument(shortName="UMI_METRICS", doc="UMI Metrics") public File UMI_METRICS_FILE
    • UMI_TAG_NAME

      @Argument(shortName="UMI_TAG_NAME", doc="Tag name to use for UMI", optional=true) public String UMI_TAG_NAME
    • ALLOW_MISSING_UMIS

      @Argument(doc="FOR TESTING ONLY: allow for missing UMIs if data doesn\'t have UMIs. This option is intended to be used ONLY for testing the code. Use MarkDuplicatesWithMateCigar if data has no UMIs. Mixed data (where some reads have UMIs and others do not) is not supported.", optional=true) public boolean ALLOW_MISSING_UMIS
  • Constructor Details

    • UmiAwareMarkDuplicatesWithMateCigar

      public UmiAwareMarkDuplicatesWithMateCigar()
  • Method Details