Skip to main content

CLI for DeepChopper: A Genomic Language Model for Chimera Artifact Detection

Project description

logo DeepChopper social

pypi PyPI - Wheel license pypi version platform Actions status Space

🧬 DeepChopper leverages a language model to accurately detect and chop artificial sequences that may cause chimeric reads, ensuring higher quality and more reliable sequencing results. By integrating seamlessly with existing workflows, DeepChopper provides a robust solution for researchers and bioinformaticians working with Nanopore direct-RNA sequencing data.

✨ What's New in v1.3.0

  • 🚀 Direct FASTQ Processing: No more encoding step! DeepChopper now works directly with FASTQ files
  • ⚡ Simplified Workflow: Go from raw data to results in just 2 commands (predictchop)
  • 📦 Auto-format Detection: Automatically handles .fastq, .fq, .fastq.gz, and .fq.gz files
  • ⚠️ Breaking Change: The encode command has been removed - update your pipelines accordingly

See full changelog →

📘 FEATURED: We provide a comprehensive tutorial that includes an example dataset in our full documentation.

🚀 Quick Start: Try DeepChopper Online

Experience DeepChopper instantly through our user-friendly web interface. No installation required! Simply click the button below to launch the web application and start exploring DeepChopper's capabilities:

Open in Hugging Face Spaces

What you can do online:

  • 📤 Upload your sequencing data
  • 🔬 Run DeepChopper's analysis
  • 📊 Visualize results
  • 🎛️ Experiment with different parameters

Perfect for quick tests or demonstrations! However, for extensive analyses or custom workflows, we recommend installing DeepChopper locally.

⚠️ Note: The online version is limited to one FASTQ record at a time and may not be suitable for large-scale projects.

📦 Installation

DeepChopper can be installed using pip, the Python package installer. Follow these steps to install:

  1. Ensure you have Python 3.10 or later installed on your system.

  2. Create a virtual environment (recommended):

    python -m venv deepchopper_env
    source deepchopper_env/bin/activate  # On Windows use `deepchopper_env\Scripts\activate`
    
  3. Install DeepChopper:

    pip install deepchopper
    
  4. Verify the installation:

    deepchopper --help
    

Compatibility and Support

DeepChopper is designed to work across various platforms and Python versions. Below are the compatibility matrices for PyPI installations:

PyPI Support

Python Version Linux x86_64 macOS Intel macOS Apple Silicon Windows x86_64
3.10
3.11
3.12

🆘 Trouble installing? Check our Troubleshooting Guide or open an issue.

🛠️ Usage

For a comprehensive guide, check out our full tutorial. Here's a quick overview:

Command-Line Interface

🎉 New in v1.3.0: DeepChopper now works directly with FASTQ files! No encoding step required.

DeepChopper offers two main commands: predict and chop.

  1. Predict chimera artifacts directly from FASTQ:

    deepchopper predict input.fastq --output predictions
    

    Using GPUs? Add the --gpus flag:

    deepchopper predict input.fastq --output predictions --gpus 2
    

    Supports all FASTQ formats: .fastq, .fq, .fastq.gz, .fq.gz

  2. Chop chimera artifacts:

    deepchopper chop predictions/0 input.fastq
    

Want a GUI? Launch the web interface (note: limited to one FASTQ record at a time):

deepchopper web

Python Library

Integrate DeepChopper into your Python scripts:

import deepchopper

model = deepchopper.DeepChopper.from_pretrained("yangliz5/deepchopper")
# Your analysis code here

📚 Cite

If DeepChopper aids your research, please cite our paper:

@article{li2026genomic,
  title = {Genomic Language Model Mitigates Chimera Artifacts in Nanopore Direct {{RNA}} Sequencing},
  author = {Li, Yangyang and Wang, Ting-You and Guo, Qingxiang and Ren, Yanan and Lu, Xiaotong and Cao, Qi and Yang, Rendong},
  date = {2026-01-19},
  journaltitle = {Nature Communications},
  shortjournal = {Nat Commun},
  publisher = {Nature Publishing Group},
  issn = {2041-1723},
  doi = {10.1038/s41467-026-68571-5},
  url = {https://www.nature.com/articles/s41467-026-68571-5},
  urldate = {2026-01-20}
}

🤝 Contribution

We welcome contributions! Here's how to set up your development environment:

Build Environment

Install UV and Rust

git clone https://github.com/ylab-hi/DeepChopper.git
cd DeepChopper

# Install dependencies
uv sync

# Run DeepChopper
uv run deepchopper --help

🎉 Ready to contribute? Check out our Contribution Guidelines to get started!

📬 Support

Need help? Have questions?


DeepChopper is developed with ❤️ by the YLab team. Happy sequencing! 🧬🔬

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

deepchopper_cli-1.3.1.tar.gz (58.8 MB view details)

Uploaded Source

Built Distributions

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

deepchopper_cli-1.3.1-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

deepchopper_cli-1.3.1-cp312-cp312-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

deepchopper_cli-1.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

deepchopper_cli-1.3.1-cp312-cp312-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

deepchopper_cli-1.3.1-cp312-cp312-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

deepchopper_cli-1.3.1-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

deepchopper_cli-1.3.1-cp311-cp311-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

deepchopper_cli-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

deepchopper_cli-1.3.1-cp311-cp311-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

deepchopper_cli-1.3.1-cp311-cp311-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

deepchopper_cli-1.3.1-cp310-cp310-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.10Windows x86-64

deepchopper_cli-1.3.1-cp310-cp310-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

deepchopper_cli-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

deepchopper_cli-1.3.1-cp310-cp310-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

deepchopper_cli-1.3.1-cp310-cp310-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file deepchopper_cli-1.3.1.tar.gz.

File metadata

  • Download URL: deepchopper_cli-1.3.1.tar.gz
  • Upload date:
  • Size: 58.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for deepchopper_cli-1.3.1.tar.gz
Algorithm Hash digest
SHA256 e0ea02bfd7d0365fdbe560fa305b9f6ba52939fd92cf410d36bae10b94d9b70f
MD5 a0dbeaf4836f80f5ac6c6b645f81b2c7
BLAKE2b-256 59921dc25b28733113e5d574fbfcabe900e6f53056af4272e57470215c709735

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 788cac34a6f19eb1972e318c67184dd86b80a4b731403e7fd5bff88f6722ec9b
MD5 b476959f80ed5ddd5c7792866ea00eb0
BLAKE2b-256 b534155070840f1c3d2e7f75bb9926ed27d59150d882af3f75e61e73828cd639

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 29f01f8f65a3d0f57fb2ccc2b718aee1eedede1c1a607135800c54e9064b263f
MD5 20ad9a212fd3ef0640ec4b1418e7eeff
BLAKE2b-256 4ed08103ca876746a0af20e7e95876a54208c9d2049e70164feff16452cbfa04

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 366427dd81084e414e3ce56c27f399d54ad89f80de19766c6c65866dbbd82063
MD5 f70fb94dcea6c534f155cff9e95235aa
BLAKE2b-256 df8c1e5f1c7c7b0eef4487c492a4c476ddf58d07bc4405e0160dfad3ea328917

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e82df2f07f1d1abecf8976ebade8b4e492c15a1caa4cea284d392cacdb361f9b
MD5 0b219581d83a7527b0c75b603c25ef32
BLAKE2b-256 605f24e2ba2c3110e1d50bc29eefead3ee780fc8e7ca1b8dbdd70f27dbc072f8

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7f866c9211c3063fe964dd558bd0a54122653913807607966df845b1f7d07bd8
MD5 143d324c720594a687b17be15d13cfbc
BLAKE2b-256 16274fb24ed0a80320555e50fb5b70d195bb3008fceb91a3209440b31e8e7a13

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b3205d88786a3fd1c5c4d591356fbef8d7e3c697bdf068837d1fb80d7d548f86
MD5 c7f6d46be53964b82d79f9182e3c35cc
BLAKE2b-256 b77f7351a6be54e6d93170b6f9733b69eaaf5b50b1426d73d143908e69823e8f

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ed53fba54eb650f52fbe686240d46da2ae98833a008190d46307db75d441ce19
MD5 bdfceb93c0a2011c6331849dc30c231f
BLAKE2b-256 1dbb0d2150f4ff00a50ebafb1b92e64f36c367894905e71600067a6539d96bff

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8fc583453dc092b24e0c378f0f9a0cfb1bb7cc7090f30c4105dc4e7836f262f9
MD5 5c4bc9ed8cc82d99c5f36adcf9d76f10
BLAKE2b-256 79fd0a2891ecaebd136e044283495f3074a6434f4d2b0db034c95374ecf37db5

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba137d2927271e755ca7a050f977f1c9f4919e48379bb9047dd839cfdb93280c
MD5 4992f7a4b56e93e89172f784a3a6f517
BLAKE2b-256 9deb75b0183f2bc144bc56ecf06cd374a13145a1c74badb131fb76194358d890

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1ff33f9f9dd747b90fe31b742121e011c1a4361a992cca57793c3b593790acaa
MD5 a6855eb470cc2bcc685a5bdf0f612449
BLAKE2b-256 f5f89cd5c0fbe72847b87dedbd25a4645cd3abc972534157be3797e641b3bf94

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f8ecd4129561220ddda8e946fcc02d39a7937f96be23b3656b66d443fd67e1d
MD5 fa47c18fef049ab50cbe439ce0e8450c
BLAKE2b-256 6c4d1425fe230ab5b12b75b54e6fb6da88f107882b015625a6c5235a82dcdb04

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7e381bb2352204ae5dd99105222edd3e704bf7c3ef90fd87cba8ed3735070ad1
MD5 bcb2d9ace5af9f5dbb41c2a7d2ebf657
BLAKE2b-256 fef9c636c8677ac4660345fc935bd747466d67472c08efe4b186da3c11109596

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8cd3cc1c192a171ad4d77150a6f56f59a4a293f36eb1eca5dc40972300f282ab
MD5 b7a7de2add4e871993de17f4277ab8a6
BLAKE2b-256 d061b9e53e5b6e6ebb08b6d64369ab593330fd5db382b8098b76b3ea3af2ac32

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7d3b039a73214100f9a5d4e08469e1eb391fcf9241b59191f7c93cbf7201858
MD5 3749bf662186e3266d4c5b0011c6d9de
BLAKE2b-256 dd08672c020d27179aef8f37fec1c940aa29d87e016e696b269761b959ae7e32

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.3.1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.3.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 295fd8e01930f217a4679961f396a973200205c191ec0a97d873899a3102f1e8
MD5 6dbcbb1f2d03374f56eb8cfe11975347
BLAKE2b-256 7e6d8c3132fdab5d0f00d6c8ea87e2c9549b9cb64f9aecb2b7050742793116fa

See more details on using hashes here.

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