Skip to main content
ChimeraLM Logo

ChimeraLM

A language model enables accurate structural variant detection in whole-genome amplified long-read sequencing

python pypi pyversion download hf-space ruff

release stars activity lastcommit

Installation • Quick Start • Web Demo • Documentation • Citation


A deep learning-powered tool to identify chimeric artifacts introduced by whole genome amplification (WGA).

🌐 Try it Online

No installation required! Try ChimeraLM instantly in your browser:

🤗 Launch Web Demo on Hugging Face Spaces

Perfect for:

  • 🧪 Testing with individual sequences
  • 📊 Visualizing prediction confidence scores
  • 🎓 Learning about chimeric artifact detection
  • 🔬 Quick validation before batch processing

For production use with BAM files and batch processing, install the CLI tool below.

Installation

pip install chimeralm

Requirements: Python 3.10, 3.11 and 3.12

For GPU support, installation instructions, and troubleshooting, see the Installation Guide.

Quick Start

# Predict chimeric reads (CPU)
chimeralm predict your_data.bam

# Predict with GPU acceleration
chimeralm predict your_data.bam --gpus 1 --batch-size 24

# Filter BAM to remove chimeric reads
chimeralm filter your_data.bam your_data.predictions

Output:

  • Predictions: Tab-separated file with read names and labels (0=biological, 1=chimeric)
  • Filtered BAM: {input}.filtered.sorted.bam with chimeric reads removed

Need more help? See the Quick Start Tutorial for a complete walkthrough.

Documentation

Full documentation is available at ylab-hi.github.io/ChimeraLM

Key Resources:

Features

  • 🌐 Interactive Web Demo: Try it online at HuggingFace Spaces - no installation needed!
  • 🎯 High Accuracy: Deep learning model trained on real WGA data
  • ⚡ GPU Accelerated: Optimized for CUDA, MPS (Apple Silicon), and CPU
  • 🚀 Easy to Use: Simple CLI with sensible defaults
  • 📦 Fast Processing: Batch inference with configurable parallelism
  • 🖥️ Local Web Interface: Run the web UI locally with chimeralm ui
  • 🏭 Production Ready: Includes filtering, sorting, and indexing of BAM files
  • DeepChopper - Identify chimera artifacts induced by internal adapter sequences in Nanopore direct RNA sequencing

Contributing

Contributions are welcome! See our Contributing Guide for development setup and guidelines.

Citation

If you use ChimeraLM in your research, please cite:

@software{chimeralm2025,
  title={ChimeraLM: A genomic language model to identify chimera artifacts},
  author={Li, Yangyang and Guo, Qingxiang and Yang, Rendong},
  year={2025},
  url={https://github.com/ylab-hi/ChimeraLM}
}

License

Apache License 2.0 - see LICENSE for details.

Metadata

Release files for chimeralm 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chimeralm 1.0.5
File Size Uploaded
chimeralm-1.0.5.tar.gz 12.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for chimeralm 1.0.5
File Interpreter ABI Platform
chimeralm-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 MB

Release files / chimeralm-1.0.5.tar.gz

Download URL chimeralm-1.0.5.tar.gz
Size 12.6 MB
Tags Source
SHA-256 checksum
How to use checksums
054688bf0e871e15ddb5ae5b7469308cb9ec32bc64c6a9cde20d71015c8ad461
BLAKE2b-256 checksum
How to use checksums
72e814c3a8db423f9f1982c3d9b288a769507a48d6e2c34539c2f824800205bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / chimeralm-1.0.5-py3-none-any.whl

Download URL chimeralm-1.0.5-py3-none-any.whl
Size 60.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a39d04d426845ccdf57075c6591ea421f024a2c6818d0bcdc56031b93a5bde3
BLAKE2b-256 checksum
How to use checksums
bb0ed5b0abc43f1ad481614e589acc44916f5f67e0a81d3c5ec65c13c2c8b576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

1.0.0

2 release 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