Fast, accurate BAM deduplication with intelligent UMI detection and correct fragment detection
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markdup-0.0.25.tar.gz.
File metadata
- Download URL: markdup-0.0.25.tar.gz
- Upload date:
- Size: 38.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9b04450c37c460c12f488045d0a4e44bd1b257e26c7a74d786afff8d5537afa
|
|
| MD5 |
6da2fe33ca9b65458342deb9d7a50782
|
|
| BLAKE2b-256 |
4c3b5e9e12959e9b3d8b4b09bfa10e43eff79492a4be15bcd6cec9f3cbe07125
|
Provenance
The following attestation bundles were made for markdup-0.0.25.tar.gz:
Publisher:
publish.yml on y9c/markdup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
markdup-0.0.25.tar.gz -
Subject digest:
b9b04450c37c460c12f488045d0a4e44bd1b257e26c7a74d786afff8d5537afa - Sigstore transparency entry: 663582085
- Sigstore integration time:
-
Permalink:
y9c/markdup@63fe8dd17911278796377f63f897c151ff3bff1d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/y9c
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@63fe8dd17911278796377f63f897c151ff3bff1d -
Trigger Event:
push
-
Statement type:
File details
Details for the file markdup-0.0.25-py3-none-any.whl.
File metadata
- Download URL: markdup-0.0.25-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98f962455023d1bf7d153dddbab23c49d044243089c2608d422a72e02f2c57a6
|
|
| MD5 |
ebb48f212cddc40b6cd6c19140476987
|
|
| BLAKE2b-256 |
817656afdc3ba5cc44a6126654e8307f1797810736f788644baf66e525d3929e
|
Provenance
The following attestation bundles were made for markdup-0.0.25-py3-none-any.whl:
Publisher:
publish.yml on y9c/markdup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
markdup-0.0.25-py3-none-any.whl -
Subject digest:
98f962455023d1bf7d153dddbab23c49d044243089c2608d422a72e02f2c57a6 - Sigstore transparency entry: 663582105
- Sigstore integration time:
-
Permalink:
y9c/markdup@63fe8dd17911278796377f63f897c151ff3bff1d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/y9c
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@63fe8dd17911278796377f63f897c151ff3bff1d -
Trigger Event:
push
-
Statement type: