RNA-TorsionBERT
RNA-TorsionBERT is a 86.9 MB parameter BERT-based language model that predicts RNA torsional and pseudo-torsional angles from the sequence.
RNA-TorsionBERT is a DNABERT model that was pre-trained on ~4200 RNA structures.
It provides improvement of MCQ over the previous state-of-the-art models like SPOT-RNA-1D or inferred angles from existing methods, on the Test Set (composed of RNA-Puzzles and CASP-RNA).
Installation
To install RNA-TorsionBERT and it's dependencies following commands can be used in terminal:
pip install -r requirements.txt
RNA-TorsionBERT usage
To run the RNA-TorsionBERT, you can use the following command line:
python -m src.rna_torsionBERT_cli [--seq_file] [--in_fasta] [--out_path]
The arguments are the following:
--seq_file: RNA Sequence.--in_fasta: Path to the input sequence fasta file.--out_path: Path to a.csvfile where the output will be saved.
You can also import in your python code the class RNATorsionBERTCLI from src.rna_torsionBERT_cli.
TB-MCQ
TB-MCQ stands for TorsionBERT-MCQ, which is a scoring function to assess the quality of a predicted structure in torsional angle space. Given the inferred angles from the structures and the predicted angles from the model, TB-MCQ computes the quality of the predicted angles using the MCQ (mean of circular quantities) metric.
To run the TB-MCQ scoring function, you can use the following command line:
python -m src.rna_torsion_cli [--in_pdb] [--out_path]
with:
--in_pdb: Path to the input PDB file.--out_path: Path to a .csv file where the output will be saved.
Docker
To run the code using Docker, you can use the following command line:
docker build -t rna_torsionbert .
docker run -it rna_torsionbert
It will enter into a bash console where you could execute the previous commands with all the installations done.
To have example of commands, you can look at the Makefile.
Citation
@article {rna_torsionbert,
author = {Bernard, Clement and Postic, Guillaume and Ghannay, Sahar and Tahi, Fariza},
title = {RNA-TorsionBERT: leveraging language models for RNA 3D torsion angles prediction},
elocation-id = {2024.06.06.597803},
year = {2024},
doi = {10.1101/2024.06.06.597803},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://www.biorxiv.org/content/early/2024/07/05/2024.06.06.597803},
journal = {bioRxiv}
}
Metadata
Release files for rna-torsionbert 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rna_torsionbert-0.1.4.tar.gz | 1.2 MB | Without provenance | Details for rna_torsionbert-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rna_torsionbert-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for rna_torsionbert-0.1.4-py3-none-any.whl |
Total release size: 1.2 MB
Release files / rna_torsionbert-0.1.4.tar.gz
| Download URL | rna_torsionbert-0.1.4.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9813e8bff7b550a5d7f375e7128f39cdfd87fc03173ce617531e8941ea0997c4
|
|
BLAKE2b-256 checksum How to use checksums |
acfb5af681bd89e195052ed22cbfaecd088fcaef5ff4ec468f432f6a95a93b63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.6
|
Release files / rna_torsionbert-0.1.4-py3-none-any.whl
| Download URL | rna_torsionbert-0.1.4-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3385943c84b7d70f46cbc64e789da418d8e1d039df2009193bdfd37a2c71add9
|
|
BLAKE2b-256 checksum How to use checksums |
163f4de460ba6a5c778d484dbcf53daf2a2fc58c925a0fc1fa69bf439be1fc62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.6
|
Security for rna-torsionbert 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.