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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rna_torsionbert-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 9813e8bff7b550a5d7f375e7128f39cdfd87fc03173ce617531e8941ea0997c4
MD5 e26db8f32ff6954a353f35878b63e231
BLAKE2b-256 acfb5af681bd89e195052ed22cbfaecd088fcaef5ff4ec468f432f6a95a93b63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rna_torsionbert-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3385943c84b7d70f46cbc64e789da418d8e1d039df2009193bdfd37a2c71add9
MD5 738589b0b2c93d0ae1402fe764160ae6
BLAKE2b-256 163f4de460ba6a5c778d484dbcf53daf2a2fc58c925a0fc1fa69bf439be1fc62

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