The code consists of 3 basic parts:
app.py
: Flask instanceconfig.py
: Configurations for MYSQL Databasemain.py
: API endpoint
Read the README files under each project for more details.
pip install Flask
pip install flask-mysql
pip install Flask-Cors
python main.py
URL:
http://127.0.0.1:5000/gene_suggest
http://127.0.0.1:5000/gene_suggest?query=<query_name>&species=<species_name>&limit=<limit_val>
Default parameters for query, species and limit are "brc", "homo_sapiens" and 10 respectively.