Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an edit button to all R2DT diagrams on RNAcentral #612

Open
blakesweeney opened this issue Jan 12, 2023 · 0 comments
Open

Add an edit button to all R2DT diagrams on RNAcentral #612

blakesweeney opened this issue Jan 12, 2023 · 0 comments
Assignees

Comments

@blakesweeney
Copy link
Member

We should add the ability to edit any r2dt diagram on RNAcentral. This can work by adding a button to each diagram that:

  1. Submits sequence to R2DT (https://rnacentral.org/r2dt)
  2. Opens an intersital page in a new tab telling the user the sequence is being rendered (or some other text). This page should wait until the r2dt job is done.
  3. Once done, the page uses the job id of the job to redirect to the editor page like: https://ldwlab.github.io/XRNA-TypeScript/?r2dt_job_id=r2dt-R20230111-203900-0332-91533423-p1m to allow editing

This should be done for all sequences which have an r2dt result. There are a couple possible problems we will have to deal with. Since r2dt is using the latest version and not whatever version we used to precompute things it is possible the r2dt results will be out of sync with what is on rnacentral. It is probably rare but someone will run into a case where there is no longer a diagram. That and differences in what template is chosen or how the diagram looks will have to be dealt with somehow, probably documentation.

One other possibility is to add this to the r2dt widget. I think this is ok but we would have to make sure this is a configuration value that so people who use our widget can turn it off if they prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants