Skip to main content

No project description provided

Project description

Riboclette pip Package

Riboclette is a Python package designed for analyzing ribosome footprints and calculating attributions for genes under 6 nutrient-deprivation conditions. It leverages a XLNet-based model to provide predictions and insights into translation elongation dynamics.


Features

  • Predict ribosome footprints (RFP) for genes under different deprivation conditions.
  • Compute attributions for genes to understand the impact of specific codons.

Installation

Install the package using pip:

pip install riboclette

Ensure you have the required dependencies installed:

  • numpy
  • torch
  • transformers
  • captum
  • tqdm

For GPU support, make sure that PyTorch is installed with CUDA.


Usage

1. Predict Ribosome Footprints (RFP)

The predictRFP function predicts ribosome footprints for a given nucleotide sequence and condition.

from riboclette import predictRFP

sequence = "ATGCGTACGTAGCTAGCTAGC"
condition = "ILE"  # Options: 'CTRL', 'ILE', 'LEU', 'LEU_ILE', 'LEU_ILE_VAL', 'VAL'

ctrl_rfp, dd_rfp, dc_rfp = predictRFP(sequence, condition)
print("Control RFP:", ctrl_rfp)
print("DD RFP:", dd_rfp)
print("Deprivation Condition RFP:", dc_rfp)

2. Compute Attributions

The getAttr function calculates attributions for a nucleotide sequence under a specific condition and head.

from riboclette import getAttr

sequence = "ATGCGTACGTAGCTAGCTAGC"
condition = "ILE"  # Options: 'CTRL', 'ILE', 'LEU', 'LEU_ILE', 'LEU_ILE_VAL', 'VAL'
head = "CTRL"  # Options: 'CTRL', 'DD'

attr = getAttr(sequence, condition, head)
print("Attributions:", attr)

Input and Output Details

Input

  • Sequence: A string of nucleotide bases (e.g., "ATGCGTACGTAGCTAGCTAGC").
  • Condition: One of the following:
    • 'CTRL'
    • 'ILE'
    • 'LEU'
    • 'LEU_ILE'
    • 'LEU_ILE_VAL'
    • 'VAL'
  • Head (for getAttr): 'CTRL' or 'DD'.

Output

  • predictRFP: Returns three arrays:
    • ctrl_rfp: Control RFP values.
    • dd_rfp: DD RFP values.
    • dc_rfp: Deprivation Condition RFP values.
  • getAttr: Returns an array of attributions for the given sequence and head.

Model Details

We employ the Riboclette Tr-Pl model for this package, and it is automatically loaded for all the computations.


License

This package is distributed under the MIT License. See the LICENSE file for more details.


Contact

For questions or issues, please contact the maintainers at [vamsi.nallapareddy@epfl.ch,francesco.craighero@epfl.ch].

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

riboclette-0.1.1.tar.gz (41.2 MB view details)

Uploaded Source

Built Distribution

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

riboclette-0.1.1-py3-none-any.whl (41.2 MB view details)

Uploaded Python 3

File details

Details for the file riboclette-0.1.1.tar.gz.

File metadata

  • Download URL: riboclette-0.1.1.tar.gz
  • Upload date:
  • Size: 41.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for riboclette-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3aa1ec8408a5a7bda2820ff32543a3d1a152db80c07740e9a6db12fdc1b4db3d
MD5 fcf11dd73996c967713e830934e47594
BLAKE2b-256 d324cd0cce4a7ac52f5bd72d407cc89ba28792bd65c318e2e4561ad43f92d872

See more details on using hashes here.

File details

Details for the file riboclette-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: riboclette-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 41.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for riboclette-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32966b92fc80493b5d2b42425f40fabaf9b05e2424efce2f17343db126a88f8a
MD5 7a29de4df47ee1cfd59cc8692f394ba0
BLAKE2b-256 92a94f32f0c8e62611ac1979141f647b921fee6963d630b8f18edd733c4aec9f

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