No project description provided
Project description
🧬 Riboclette: Interpretable condition-aware transformer for predicting ribosome densities in nutrient-deprivation conditions
Riboclette is a transformer-based deep learning model that is capable of predicting ribosome densities for genes specifically in the mouse genome and can make these predictions in the Control condition (without any nutrient availability constraints) and also in conditions of specific amino acid deprivations such as Leucine, Isoleucine, Valine, and combinations of these. In this repository we provide links to the raw data and the preprocessing code to prepare the data. It also has the code to train the Riboclette model, along with the baseline models. The predictions of the Riboclette model along with individual codon importance plots.
Dataset Preparation 🐁
Download the raw data files from "link" and run the Ribo-DT pipeline to pre-process them.
- RiboDT
Convert the pre-processed data into a format the machine learning models can use
cd /riboclette/preprocessing
papermill processing.ipynb
Riboclette Model Training 💻
Combined Single-Head Variant
cd /riboclette/models/xlnet/csh
papermill xlnet_csh_train.ipynb
Double-Head Variant
cd /riboclette/models/xlnet/csh
papermill xlnet_csh_train.ipynb
Pseudolabeling ➕
In order to perform the pseudolabeling, you need to first train 5 seed models of Riboclette DH
cd /riboclette/models/xlnet/csh
papermill xlnet_csh_train.ipynb -p seed_val 1
papermill xlnet_csh_train.ipynb -p seed_val 2
papermill xlnet_csh_train.ipynb -p seed_val 3
papermill xlnet_csh_train.ipynb -p seed_val 4
papermill xlnet_csh_train.ipynb -p seed_val 42
Once all of the seed models are trained, the pseudolabeling dataset can be generated
cd /riboclette/models/xlnet/pseudolabeling
papermill plabel_dataset_gen.ipynb
After the Pseudolabeling datasets have been generated, the different psuedolabeling based models can be trained. There are two pseudolabeling experiment types ("exp1", and "exp2") which can be specified using the "experiment_type" parameter.
cd /riboclette/models/xlnet/pseudolabeling
papermill xlnet_plabel_train.ipynb -p experiment_type [exp1, exp2]
Interpretability
In order to generate codon-level interpretations for all the sequences in the testing set, run the following commands:
cd /riboclette/models/xlnet/pseudolabeling
papermill interpret_plabel.ipynb
Baseline Models 🛸
BiLSTM Model Training - Combined Single-Head Variant
cd /riboclette/models/bilstm/csh
papermill bilstm_csh_train.ipynb
BiLSTM Model Training - Double-Head Variant
cd /riboclette/models/bilstm/dh
papermill bilstm_dh_train.ipynb
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.0.tar.gz.
File metadata
- Download URL: riboclette-0.1.0.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 |
a8e9dd237d1a30c2281fc24c49970b4c9d3aca3c84d7b28df02bdc8001fc9c6d
|
|
| MD5 |
8f54a22b8156a3de825473227404de3c
|
|
| BLAKE2b-256 |
7151d2d3d8cd941a849b61bdf7582bb2e4f36e0ccc0da6709d8b5db3e1cd626c
|
File details
Details for the file riboclette-0.1.0-py3-none-any.whl.
File metadata
- Download URL: riboclette-0.1.0-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 |
3aeb06f57d6e73b2133734be9efb702a677dc936f1087ebccac0f473962f52f9
|
|
| MD5 |
60c5daa86c5a7b140d92b6aa6301257e
|
|
| BLAKE2b-256 |
3820c680fb5f90f228740f5ab912311ae13cc440cac30c589005834e757f2bb0
|