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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rna_torsionbert-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 62959320adc95d3721cbbd398b637ca23d47969cc2b083c333054cb80fcb79ab
MD5 d5a172d06035c4f44981c7033afeafef
BLAKE2b-256 155c03a24cdf6f26d5f710377bbe1206a45a7b9cf4e13ae11aff77ac66dc0fc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rna_torsionbert-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff9f71a7e55411dd0af090a7c97d4121b6d3d4710bb12806583ce86c974aa223
MD5 0c1c3d6bb9d45f567cf27ba3fdb3dd41
BLAKE2b-256 d9b3f036f336628bf2c8c9a4f48dedbe9d2b9d1eaa329a71bf6e0626b7ea55fe

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