RNAcentral / r2dt-web

Web component for visualising RNA secondary structure in standard orientations
https://rnacentral.github.io/r2dt-web/
Apache License 2.0
3 stars 1 forks source link

Support template-free mode #14

Open AntonPetrov opened 1 year ago

AntonPetrov commented 1 year ago

@blakesweeney As discussed, here is a short description of the requirements for the r2dt-web widget for the new R2DT.

Starting with the next version 1.4, R2DT will have a new template-free mode. Instead of selecting a template and predicting the secondary structure, R2DT will accept a user-provided structure and use it to generate the usual output.

In order to support this, the following changes in the web app are needed:

1) Validate secondary structure in dot-bracket format (including pseudoknots), if provided. Example format:

>3SKZ_B
GGCCUUAUACAGGGUAGCAUAAUGGGCUACUGACCCCGCCUUCAAACCUAUUUGGAGACUAUAAGGUC
.((((((((A..((((((.....BB))))))(.....a)(((((((bb..)))))))..)))))))).

Validation checks:

In theory, more advanced pseudoknot parsing (accepting the AABBaabb notation as well as [] ) should be done but it's not a priority.

2) Submit to a new template-free API endpoint or use a new parameter to run R2DT in template-free mode. I will post further details about this once the new API is available.

3) If a dot-bracket structure is provided, the Advanced options, such as Selecting a template or Constrained folding should not be editable by the user.

4) Provide a new example (possibly the one provided above).

The new R2DT version will go live in the next couple of weeks and can be deployed on the RNAcentral website whenever the new widget is ready.