Skip to main content

MarkDup

Pypi Releases Downloads Development Status

A fast, accurate BAM deduplication tool with intelligent UMI detection and correct fragment detection.

Why MarkDup?

MarkDup solves critical issues in BAM deduplication:

  • Correct fragment detection: Proper strand-aware coordinate handling.
  • High performance: Optimized algorithms and parallel processing.
  • Smart UMI clustering: Frequency-aware algorithms to prevent over-merging.
  • Automatic detection: Handles both UMI and non-UMI data seamlessly.

Quick Start

# Installation
pip install markdup

# Basic usage (auto-detects everything)
markdup -i input.bam -o output.bam

# With multiple threads
markdup -i input.bam -o output.bam --threads 8

# Force coordinate-based (no UMIs)
markdup -i input.bam -o output.bam --no-umi

Usage

For a full list of options and their descriptions, run:

markdup --help

Examples

Basic Deduplication

# Auto-detect UMIs and process
markdup -i input.bam -o output.bam

# Force coordinate-based method (no UMIs)
markdup -i input.bam -o output.bam --no-umi

Advanced Options

# Custom UMI settings
markdup -i input.bam -o output.bam --umi-tag UB --max-dist-frac 0.15

# Start-only positioning (useful for ChIP-seq)
markdup -i input.bam -o output.bam --start-only

# Keep duplicates and mark them
markdup -i input.bam -o output.bam --keep-duplicates

Output Format

MarkDup adds BAM tags to track deduplication:

Tag Description
cn Cluster name (chr:start-end:strand:UMI)
cs Cluster size (number of reads)

Documentation

License

MIT License - see LICENSE for details.

 

Copyright © 2025-present Chang Y

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markdup-0.0.29.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markdup-0.0.29-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file markdup-0.0.29.tar.gz.

File metadata

  • Download URL: markdup-0.0.29.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for markdup-0.0.29.tar.gz
Algorithm Hash digest
SHA256 0cc5237e8a6b61f5ba79eba25e3cfdffb9dd4a460adc75c89988806716bd7c5d
MD5 fdb546c872a133fd93a23380a569abd8
BLAKE2b-256 1c364af8a856343ddae1e3d757010d17ec6212b90ccc214751f4d6d0bbd7ee0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for markdup-0.0.29.tar.gz:

Publisher: publish.yml on y9c/markdup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file markdup-0.0.29-py3-none-any.whl.

File metadata

  • Download URL: markdup-0.0.29-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for markdup-0.0.29-py3-none-any.whl
Algorithm Hash digest
SHA256 69986784a7d9fb8651163b7d919b892372cfd963b186fbf65401a0a9b4cb6412
MD5 13856133df9941ff12ecb6e1c865efb2
BLAKE2b-256 3fcf63c5a3c4034517ffdd819a1aea02627b7d703e251ffb7fee0efaad6a85ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for markdup-0.0.29-py3-none-any.whl:

Publisher: publish.yml on y9c/markdup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.29 This release

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page