Skip to main content

Add your description here

Project description

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 .csv file 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}
}

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

rna_torsionbert-0.1.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

rna_torsionbert-0.1.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file rna_torsionbert-0.1.3.tar.gz.

File metadata

  • Download URL: rna_torsionbert-0.1.3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for rna_torsionbert-0.1.3.tar.gz
Algorithm Hash digest
SHA256 96b68f0f61c7fba08eb51cff5d526fa1297bd0bf29f25b5669b70c97e8980298
MD5 90c453b01c9971ed717621a47800a4f3
BLAKE2b-256 de795e05eb96f47ab750a898932629025ca4d80e6ce6784fc310564823ae9d04

See more details on using hashes here.

File details

Details for the file rna_torsionbert-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for rna_torsionbert-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 554c3a16772fad24277c73caf2718226b9d6a68ada1f8a3148d659ccc8c7d617
MD5 c801ecaf31c32b6158f07ffb9e4ffd86
BLAKE2b-256 e5a165a65ad9b10b972e1ad67722c3b939e678546141651bac42cbfbf86d5464

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