Skip to content

Backend

brummetheus edited this page Feb 28, 2020 · 11 revisions

The backend part consists of everything the user does not see. The architecture, manipulation of data etc. is done here. For this the Django webframework is used. Django can be easily installed via pip with pip install Django.

Organisation of Django webframework

Since one of Django's main focuses is reusability, projects are built up by so called "Apps". Each app is a stand alone feature and can be easily transferred to other projects. For the CMViz project we have in two apps in total.

  1. upload_file
  2. viz

The following requirements must be met:

  • The ViennaRNA package needs to be installed.
  • The RNA.py script needs to be in the Python-path
  • InfernalUtils.py and RNAUtils.py need also to be in the Python-path (They come with the Github repository)

upload_file

upload file is used to upload the files and prepare them for visualisation. They get parsed to extract all relevant information and save them as a .csv file on the filesystem. As it stands now, the files get a unique identifier which are composed out of 16 random characters consisting of letters a-z and A-Z and digits. With this identifier the visualisation can be done again, as long as the files are stored in the filesystem.

viz

viz is only used for visualisation purposes.

Welcome to the CMviz wiki!

If you would like to use the tool, please consult the tutorial.

If you would like to learn more about the structure of the project itself, consult the sections describing the backend and the frontend.

Clone this wiki locally