Creating and updating templates
Adding new templates
To submit a new template or update an existing one, please create a GitHub issue with the following information:
A RNA 2D JSON Schema file (recommended) - see example.
Alternatively, you can submit the following:
A FASTA or BPSEQ file with a reference sequence and secondary structure - see FASTA and BPSEQ examples
A Traveler XML file - see example
Description of the new template and any relevant background information.
Note
GitHub currently does not support attaching files with .fasta, .bpseq, or .json extensions so please attach the files as .txt.
Creating templates using RNA 2D JSON Schema files
It is possible to generate new templates using RNA 2D JSON Schema files as input.
Exornata
Run your sequence through R2DT webserver and click
Edit in ExornataAlternatively, generate a structure using R2DT on the command line and locate the JSON file in the
jsonfolder.Upload JSON file to the Exornata editor
Manually edit the layout
Download the edited structure as a new JSON file and save it in the
data/newfolderRun the following command:
r2dt.py generate-template data/new/<input.json>
The new Traveler template, covariance model, and a fasta file will be generated in the
data/local_datafolder.Use the new template:
r2dt.py draw --force_template <template_name> <input.fasta> <output_folder>
RNAcanvas
Run your sequence through R2DT webserver and click Edit in
RNAcanvas. Alternatively, open RNAcanvas and clickCreate new drawingEdit the drawing and click
RNA 2Dto export an RNA 2D JSON Schema filePut the JSON file in any folder accessible to R2DT, for example,
data/newRun
r2dt.py generate-template data/new/<template_name.json>The new Traveler template, covariance model, and a fasta file can found in a new folder
data/local_data/template_name, wheretemplate_namematches the name of the json fileUse the new template:
r2dt.py draw --force_template <template_name> <input.fasta> <output_folder>
Creating templates using FASTA/BPSEQ and Traveler XML files
Place new FASTA or BPSEQ file(s) in the
data/newfolderRun
r2dt.py generatecm. The command will generate new.cmfile(s) with the covariance modelsMove the new
.cmand.trfiles in the destination directory (for example,ribovision-ssuis where all SSU templates submitted by the RiboVision group are stored)Run
r2dt.py generatemodelinfo <destination>/cmsto add new models to the list of searched models where<destination>is the same folder as in the step aboveUpdate
metadata.tsvfile in the destination directoryRun
r2dt.py list-modelsto update a list of all available modelsVerify that the templates work as expected by testing on a fasta file with a sequence similar to the template
Run tests and update the model counts in
TestCovarianceModelDatabaseas needed
Updating Rfam templates
The following procedure should be done after each Rfam release:
Recompute all Rfam templates (takes ~6h)
r2dt.py setup-rfam r2dt.py compress-rfam-crw
Run tests
Update the precomputed library link in Readme
Update a list of available models
r2dt.py list-models⚠️ Note that the tRNA Rfam Traveler template has been manually edited to match the standard tRNA layout so the automatically generated
traveler-template.xmlfile should be discarded and the current version should be kept.