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.0.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.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rna_torsionbert-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 7fcb532deb786f57d978e9056a8117ceafc50c671e6c2600e466ed6de2bdfc20
MD5 dc002f89f17433cf662bba174081dd52
BLAKE2b-256 1502529f02edf11d3c989fb99f39c73d8ad0d1d15d415ac6fd7a223b59626a4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rna_torsionbert-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70e1f5ae360b67b47699a96a9860d7288d0e0f83c294e06896638b223274d853
MD5 184b26c45b5609f012ca186ec954a643
BLAKE2b-256 c4a33435cbe7c42559f625dc99c120214673b5aab5d69983a03fb6cbe7d8d244

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