Skip to content

Graph database representing IPD-IMGT/HLA sequence data as GFE

License

Notifications You must be signed in to change notification settings

pbashyal-nmdp/gfe-db

 
 

Repository files navigation

gfe-db

Graph database representing IPD-IMGT/HLA sequence data as GFE

Docker

The easiest way to get the service running locally, is to pull an image containing the service from Docker hub. You can build the image locally and increase the number of IMGT/HLA releases loaded and include KIR or pull the pre-built image from Docker hub. The environment variable RELEASES specifies how many IMGT/HLA release you want to be loaded into the graph. The default number of releases is one. The environment variable KIR specifies if you want KIR to be loaded or not. By default KIR data is not loaded into the graph.

Building and running locally

git clone https://github.com/nmdp-bioinformatics/gfe-db
cd gfe-db

Builds the graph with 3 IMGT/HLA DB versions and also adds KIR data

docker build -t gfe-db --build-arg IMGT="3360,3370" --build-arg AN=True .
docker run -d --name gfe-db -p 7474:7474 -p 7687:7687 gfe-db

Pulling from Docker hub

** Image on Docker hub has only 1 IMGT release and KIR data is not loaded **

docker pull nmdpbioinformatics/gfe-db
docker run -d --name gfe-db -p 7474:7474 -p 7687:7687 nmdpbioinformatics/gfe-db

The -d flag runs the service in "detached-mode" in the background and -p specifies what ports to expose. Make sure the ports you expose are not already in use. If the docker container is successfully executed then typing docker ps -a will show a new container labeled gfe-db running.

Click here for more information on the publicly available docker image.

Building graph from source

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export IMGT="3360,3370"
export RELEASES=3360  # this value should be either 3360 or 3370 
export AN=True
bash bin/build.sh /output/directory
sh bin/load_graph.sh  /output/directory

Related Links

About

Graph database representing IPD-IMGT/HLA sequence data as GFE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.4%
  • Shell 14.8%
  • Dockerfile 1.8%