DOI: 10.1128/AEM.01851-21 Deploymeny: bcb.unl.edu/dbpup/
This website is developed for Yin's Lab located at the University of Nebraska - Lincoln and founded by NSF.
This website was written in python3, web framework is Flask and template engine is Jinja2.
This website also use Blast(https://blast.ncbi.nlm.nih.gov/Blast.cgi) to comparing primary biological sequence information and sequence analysis software Hmmer(http://hmmer.org/).
- Make sure you have python3, python3-pip and hmmer installed.
- Make sure you have clone the website and ready to deploy.
- run
pip3 install -r requirements.txt
to install all the requirement. - Put
TrEMBL.tar.gz
,Swiss-Prot.tar.gz
,Sequence_Similarity_Network.tar.gz
andCharacterization.tar.gz
intostatic/Download/
- put fam-A database to
pfam/
then runhmmpress Pfam-A.hmm
- We recommand to serve pn Nginx, but here is the
instruction: Instruction to serve on nginx
; If serve on Apache we recommand to run it
with gunicorn
then use apache to forward the port instead of Nginx(Note a copy of gunicorn configurations is
in
gunicorn.conf.py.example
).
- run
make
if you are contributing; runmake production
if you are deploying. - open your browser and go to
localhost:5000
or the domain you bind with.
If you decide to host your own website, you will need to change the config.json.example
to config.json
and change
configurations accordingly. Remember that if you are developing the application, you should nevercommit sensitive
informations in the config.json
in the version control system.
If you host it on Apache, you will need to change gunicorn.conf.py.example
to gunicorn.conf.py
and change
configurations accordingly.
When adding/modify sequences, add it directly to the database that you connected to. Note: Please make sure the
following file contains the family or subfamily you added /static/materials/family.txt
and /static/materials/subfamily.txt
.
When adding/modify content, add it to /content/
. Note: If you are adding subfamily make sure the following file
contain the subfamily you added /static/materials/subfamily_charactorized.txt
.
When change number Subfamily:
- open
app.py
. - Change Line
257-276
accordingly.
The title of Class, Family and Subfamily will be reading from the first line of the content file. If a new page does not have a markdown file, it may display the default title name or return 404. Having a content page for each page is highly recommended.
DO NOT directly run pip install
or pip freeze
. Instead, add the library to requirements.in
then run pip-compile
for better dependency management (need to run pip install pip-tools
first)