MarkDup
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
Metadata
Release files for markdup 0.0.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| markdup-0.0.29.tar.gz | 42.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| markdup-0.0.29-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.8 kB
Release files / markdup-0.0.29.tar.gz
| Download URL | markdup-0.0.29.tar.gz |
|---|---|
| Size | 42.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cc5237e8a6b61f5ba79eba25e3cfdffb9dd4a460adc75c89988806716bd7c5d
|
|
BLAKE2b-256 checksum How to use checksums |
1c364af8a856343ddae1e3d757010d17ec6212b90ccc214751f4d6d0bbd7ee0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logRelease files / markdup-0.0.29-py3-none-any.whl
| Download URL | markdup-0.0.29-py3-none-any.whl |
|---|---|
| Size | 31.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69986784a7d9fb8651163b7d919b892372cfd963b186fbf65401a0a9b4cb6412
|
|
BLAKE2b-256 checksum How to use checksums |
3fcf63c5a3c4034517ffdd819a1aea02627b7d703e251ffb7fee0efaad6a85ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logSecurity for markdup 0.0.29
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for markdup-0.0.29.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.