This is a project that provides an application to run an overrepresentation analysis on a list of genes given a list of SNPs.
The API utilizes AnnoQ to get a list of genes from a list of SNPs. The list of genes is then used to run an overrepresentation analysis using PantherDB
To install the project, clone the repository.
-
CD into the backend directory.
cd backend -
Create a virtual environment.
python3 -m venv venv
-
Activate the virtual environment.
source venv/bin/activate -
Install the dependencies.
pip install -r requirements.txt
Before running the application, the frontend must be built and the files must be moved to the backend directory.
To do this, CD into the backend directory if you are not already there.
cd backendThen run the following script.
chmod +x ./scripts/build_frontend.sh
./scripts/build_frontend.shFirst switch to the backend directory, if you are not already there.
cd backendActivate the virtual environment.
source venv/bin/activateTo run the API, use the following command:
uvicorn main:app --port 8002 --reload