This is a test version of Biostars. For the public version, visit https://www.biostars.org.
forgi for plotting 2D RNA structure

Hi, everyone!

I need some help with forgi library for visualisation of RNA secondary structure.

I'd like from dot-bracket notation with known RNA sequence to plot 2D graph like that you can find here - https://viennarna.github.io/forgi/graph_tutorial.html.

If there any other possibilities to plot it in real-time (for instance, in jupyter notebook avoiding any crossing external scripts), I will be very thankful to learn them!

Thank you in advance

python forgi rna-seq graph structure

2 answers

(no tested)

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5459502/

JNSViewer—A JavaScript-based Nucleotide Sequence Viewer for DNA/RNA secondary structures

enter image description here

The OP mentioned Jupyter notebooks. There's a solution that works in Jupyter that's based on RNArtist as highlighted in a twitter post:

"Ready to play with the RNArtistCore language without installing anything? Give a try to the #jupyter notebook hosted on @mybinderteam. Click on the launch button from https://github.com/fjossinet/RNArtistCore-binder. Thanx to @Fomightez for the first version of this notebook"

RNArtist in Jupyter notebook

In fact, the developer of it, Fabrice Jossinet, regular posts about the features and development here, and so the images there will give you a good feel for its abilities.
For example, as described here, RNArtist can easily get and plot RNA secondary structures from RNAcentral entries.

More at:

snoRNA secondary structure

full app with secondary structure of RNA shown

Log in to answer this question.