- Create a virtual environment for linux and mac
python3 -m venv venvfor windows
python -m venv venv- Activate the virtual environment for linux and mac
source venv/bin/activatefor windows
venv\Scripts\activate- Go to api directory and Install the dependencies
cd apipip install -r requirements.txt- Run the server
fastapi dev main.py-
Install Postman
-
Open postman and import the collection from the file
postman_collection.json -
Run the collection
-
You can test the endpoints by running the requests in the collection
if (!requireNamespace("BiocManager", quietly = TRUE)) { install.packages("BiocManager") }
tryCatch({ BiocManager::install("sva") library(sva) cat("sva package installed and loaded successfully!\n") }, error = function(e) { cat("Error installing sva package: ", e$message, "\n") })
tryCatch({ BiocManager::valid() }, error = function(e) { cat("Error validating Bioconductor: ", e$message, "\n") })
tryCatch({ packageurl <- "https://bioconductor.org/packages/3.14/bioc/src/contrib/sva_3.38.0.tar.gz" install.packages(packageurl, repos = NULL, type = "source") library(sva) cat("sva package installed from source successfully!\n") }, error = function(e) { cat("Error installing sva package from source: ", e$message, "\n") })
pip install umap-learn