Skip to main content

Fast, accurate BAM deduplication with intelligent UMI detection and correct fragment detection

Project description

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

Project details


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.27.tar.gz (42.0 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.27-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: markdup-0.0.27.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for markdup-0.0.27.tar.gz
Algorithm Hash digest
SHA256 b1ba6dc2cbed7a885a709e3baff5f42161a611e0792d17ef235adc6c8e2c6740
MD5 f57380abe3ff42ae5bdee90efb1473be
BLAKE2b-256 3e86553597e3acb5d2306775deeaf34613c18c717b0354995210ed12282e9cea

See more details on using hashes here.

Provenance

The following attestation bundles were made for markdup-0.0.27.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.27-py3-none-any.whl.

File metadata

  • Download URL: markdup-0.0.27-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for markdup-0.0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 3f749d756c9e13f7871349aca3d18b4ff4ddca4116918897d7096f24e44efc31
MD5 df59ad9b9d2b50af2085efb3d62e12c8
BLAKE2b-256 ed6bb8eb8c0f87500e0dd38f1d5fcc173b6b41a218f1d61770550c359d9375f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for markdup-0.0.27-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page