Skip to main content

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

Project description

logo DeepChopper social

pypi license pypi version Actions status platform Space

DeepChopper leverages language model to accurately detect and chop artificial sequences which 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 bioinformatics working with NanoPore direct-RNA sequencing data.

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

This online version provides a convenient way to:

  • Upload your sequencing data
  • Run DeepChopper's analysis
  • Visualize results
  • Experiment with different parameters

It's perfect for quick tests or when you want to showcase DeepChopper's functionality without local setup. However, for more extensive analyses or custom workflows, we recommend installing DeepChopper on your machine. Because the online version is limited to one FASTQ record at a time, it may not be suitable for large-scale projects.

Install

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. It's recommended to create a virtual environment:

    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
    

Note: If you encounter any issues, please check our GitHub repository for troubleshooting guides or to report a problem.

Usage

We provide a complete guide on how to use DeepChopper for NanoPore direct-RNA sequencing data. Below is a brief overview of the command-line interface and library usage.

Command-Line Interface

DeepChopper provides a command-line interface (CLI) for easy access to its features. In total, there are three commands: encode, predict, and chop. DeepChopper can be used to encode, predict, and chop chimeric reads in direct-RNA sequencing data.

Firstly, we need to encode the input data using the encode command, which will generate a .parquet file.

deepchopper endcode <input.fq>

Next, we can use the predict command to predict chimeric reads in the encoded data.

deepchopper predict <input.parquet> --ouput-path predictions

If you have GPUs, you can use the --gpus flag to specify the GPU device.

deepchopper predict <input.parquet> --ouput-path predictions --gpus 2

Finally, we can use the chop command to chop the chimeric reads in the input data.

deepchopper chop <predictions> raw.fq

Besides, DeepChopper provides a web-based user interface for users to interact with the tool. However, the web-based application can only take one FASTQ record at a time.

deepchopper web

Library

import deepchopper

model = deepchopper.DeepChopper.from_pretrained("yangliz5/deepchopper")

Cite

If you use DeepChopper in your research, please cite the following paper:


🤜 Contribution

Build Environment

git clone https://github.com/ylab-hi/DeepChopper.git
cd DeepChopper
conda env create -n environment.yaml
conda activate deepchopper

Install Dependencies

pip install pipx
pipx install --suffix @master git+https://github.com/python-poetry/poetry.git@master
poetry@master install

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.1.0.tar.gz (75.6 MB view details)

Uploaded Source

Built Distributions

deepchopper_cli-1.1.0-cp312-none-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12 Windows x86-64

deepchopper_cli-1.1.0-cp312-none-win32.whl (1.5 MB view details)

Uploaded CPython 3.12 Windows x86

deepchopper_cli-1.1.0-cp312-cp312-musllinux_1_2_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

deepchopper_cli-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

deepchopper_cli-1.1.0-cp312-cp312-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

deepchopper_cli-1.1.0-cp312-cp312-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12 macOS 10.12+ x86-64

deepchopper_cli-1.1.0-cp311-none-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11 Windows x86-64

deepchopper_cli-1.1.0-cp311-none-win32.whl (1.5 MB view details)

Uploaded CPython 3.11 Windows x86

deepchopper_cli-1.1.0-cp311-cp311-musllinux_1_2_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

deepchopper_cli-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

deepchopper_cli-1.1.0-cp311-cp311-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

deepchopper_cli-1.1.0-cp311-cp311-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11 macOS 10.12+ x86-64

deepchopper_cli-1.1.0-cp310-none-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.10 Windows x86-64

deepchopper_cli-1.1.0-cp310-none-win32.whl (1.5 MB view details)

Uploaded CPython 3.10 Windows x86

deepchopper_cli-1.1.0-cp310-cp310-musllinux_1_2_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

deepchopper_cli-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

deepchopper_cli-1.1.0-cp310-cp310-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

deepchopper_cli-1.1.0-cp310-cp310-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10 macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for deepchopper_cli-1.1.0.tar.gz
Algorithm Hash digest
SHA256 02bce97d366c9d47f172394f18b5fa56d46e96f40eba97ad96a1e6cf82600d39
MD5 0887c86903b519966122459098f3d68c
BLAKE2b-256 80a97c04e71d3c1dc098f66c0d064cd4d8455cb84bb9f175588cd5d458355c64

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.1.0-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 6592e39498ab68b7a83abbec2970b6572d6b3799443ce8a48f3205f5ccceadbe
MD5 b89e257d37a5d177993299aa1ed2cb45
BLAKE2b-256 a679df3effe9b157f2aaf58ae38aad8d311daee498d4b0818015136aa4d05c91

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.1.0-cp312-none-win32.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp312-none-win32.whl
Algorithm Hash digest
SHA256 d29d66993298b6acba2684de2dce3272df4a72e9374cbbf63415e239a8e0445b
MD5 e93596b61cf9464d10f61b35c65bed88
BLAKE2b-256 577bc06c0c31b9af9385ad0a0ff1b4a6e74daaace67fbc3a479158332d5a7486

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2d008d16edee7269d108b279a0ad2e96fb73bdcfc65d1f736cef7e05dac257c3
MD5 01cbab343a971864892d724a440db6ef
BLAKE2b-256 bc19c7ed41beec7856b0353428577c05a23be9256832be6bffe47cc08b5c9888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b3e7935b9d7940d1191bc21ccbeb5513fd6d9abe2999d44f278363919e458c6
MD5 ddd0a2c46916a659a0cec81658383406
BLAKE2b-256 3f996c291f06cd96f14c7258a74679f916cf5d49f08f76fede7f5c83f273b310

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 359c10f9e2889b557f4b9d3a39f2d4b4544c131f9d57488b247a7d35c974d14c
MD5 9df504cfcc35d6ea7ea81f3fe7211c03
BLAKE2b-256 eba89054b6865eaf30020143fdc041ee52ec2ea89c5ed138dcf9e6afe7228ba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 193bb3e19f8ab1aed0cf7687f437f014fbd5469e1164983f291b2f812d4c33b7
MD5 0a75066ad258eb2550f2f97a5fc35ffc
BLAKE2b-256 8979aff883f6f5f6848627644c83274dd29aa277409c4c7650da13aa198456a3

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.1.0-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 e34e8464cce6c1de4f6723db78ca75d4904f18e2960ccd4553017b21aef975b3
MD5 1a75293223411a9a8645388883075088
BLAKE2b-256 f8f72f7b2d2e8a0ccf4818895f0f9f3a21d2cea0b553c6684969697e7a8c180e

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.1.0-cp311-none-win32.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp311-none-win32.whl
Algorithm Hash digest
SHA256 cbc6aae4a8d33879d627083c0f16b48e3fa13a1595454e4e41f53c82e9a35ccb
MD5 0b2abbea6cb2efe99eb395a17146be2a
BLAKE2b-256 0f3db88d2867c558a5a4d7ed8b13333f10de914762947ff8c99b7d7f4eff43a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 15d80620b652a782d47f4c1bf8607aa323a3f7582ffe91d4aa7aa6ff2b5bf0c5
MD5 00479fb42da3220fb0e7312361686a10
BLAKE2b-256 bbf5afc4680fda4938203eb1287b029b57ed6b6580eea1054a03d0ac3eed550f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 460216c5e4f81315ee572b27b6005ca8f4fa50888383843153c9985d3d3590c6
MD5 7bbe65688e53a94a818b2949777e0f6f
BLAKE2b-256 8ead6c10a80e3d220a18b133ad167067b054e9dd5714d8aa89a21189724d4573

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21d1935bb579435ae6c2fddd6f309b4d97930d4ade2436b61d1e2acd09b6efc2
MD5 44197c1f4622e2f15b12165f21e33b14
BLAKE2b-256 60071b37ceaddd2f075147435eb541010418ff893601b98a9c7489b20e2ae115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 336e9b528134da2fc98c0865ad644d2d11927402447ca480c603e2d3e4dd4e38
MD5 f187827c92fed1acf391c5d66fa40994
BLAKE2b-256 292988062fd6339e6c67fa9e5656599aac34274db40b02e4ff3e6c666c0e1803

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.1.0-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 dc50fb8a82c570269fbb9e16df495f2a59eb7a3cbdd8f16ced7214c62faab705
MD5 3712eb40b5df0ddefa71c2a27d09c8a6
BLAKE2b-256 eebd8d98eb90abeee71badcab8189077740df53012443722ff5a2106506e3257

See more details on using hashes here.

File details

Details for the file deepchopper_cli-1.1.0-cp310-none-win32.whl.

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp310-none-win32.whl
Algorithm Hash digest
SHA256 de6b9138480dee9ddeceb67ca1192497e3cad245713f718affaad58b89260ce6
MD5 ec8cd4e85294b6d4c5b0b1a2c0ae7c30
BLAKE2b-256 afee841b215d6354420ff57e49f8ad6f888f5ebed7e3699c90e7254b9c5d2195

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a7f1122cc06e135e73ded28cf74f2f3bdef41b44bb14ce8e530f49f7ec494204
MD5 c61dfbf242ae313d31d34f0374fa3092
BLAKE2b-256 2033d93edacca6b63ea621f4baf78aa2a9bea8d7267f59554472d29e07350e52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0956d36ded42cc5b4d272def7f094d0388240d2faccf7f07a22534f3c09332eb
MD5 860902a134ed00b7aee39c50adcc9e16
BLAKE2b-256 f2f31c26b9b3ba51ccd5a11d63c6daf4129831ffac30947e046711f6a16df850

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c79ce1a42ba3f0a2df7e96a60aab7813cb16f4952f998174e53243047311724
MD5 bf31a895b2589422790e6943dd0f83cc
BLAKE2b-256 5a1c3cc6a86adaba74a25f086010c2d75c8d612266129ebc4ea88ce642ae07cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deepchopper_cli-1.1.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 41592b3ef58c317e09e2382cc16ebf6067e4a64dbb850b14246c912c37f38203
MD5 caac1a95d89beb7d83f4944ec3976b22
BLAKE2b-256 a7856deaac796d979e173691eba3bb264e59af393d60aa382a95d0c0d6dcad6b

See more details on using hashes here.

Supported by

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