Murali-group / PathLinker

Connect the dots in networks.
GNU General Public License v3.0
17 stars 10 forks source link

Docker #13

Closed ajshedivy closed 4 years ago

ajshedivy commented 4 years ago

The goal is to "dockerize" pathlinker. Follow the instructions in the readme to build the pathlinker image

ajshedivy commented 4 years ago

RE: running the docker container on the example data.

In order to run the container:

first make sure you are in the Pathlinker root directory on your local machine

To run in Git for Windows and mount the example data inside the container:

winpty docker run -v /$(pwd)/example:/home/PathLinker/example -it pathlinker/pathlinker bash

then inside the container in the /home/Pathlinker/example directory call:

python ../run.py sample-in-net.txt sample-in-nodetypes.txt

The first command starts the container and opens up an interactive bash. Once the docker container is running move into the example directory (/home/PathLinker/example) and then call the second command to produce the outk-100-ranked-edges.txt file. This file should show up in the local example directory within the Pathlinker repository since with used the -v flag.