-
Notifications
You must be signed in to change notification settings - Fork 0
Backend
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
.
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.
- upload_file
- 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
andRNAUtils.py
need also to be in the Python-path (They come with the Github repository)
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 is only used for visualisation purposes.