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:
numpytorchtransformerscaptumtqdm
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aa1ec8408a5a7bda2820ff32543a3d1a152db80c07740e9a6db12fdc1b4db3d
|
|
| MD5 |
fcf11dd73996c967713e830934e47594
|
|
| BLAKE2b-256 |
d324cd0cce4a7ac52f5bd72d407cc89ba28792bd65c318e2e4561ad43f92d872
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32966b92fc80493b5d2b42425f40fabaf9b05e2424efce2f17343db126a88f8a
|
|
| MD5 |
7a29de4df47ee1cfd59cc8692f394ba0
|
|
| BLAKE2b-256 |
92a94f32f0c8e62611ac1979141f647b921fee6963d630b8f18edd733c4aec9f
|