Skip to content

Commit

Permalink
Merge pull request #1 from pbashyal-nmdp/update_readme_install
Browse files Browse the repository at this point in the history
Update README with pre-req
  • Loading branch information
mmaiers-nmdp authored Jan 16, 2024
2 parents c0b34b4 + d710f52 commit 89fcab4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,30 @@ Graph Based Multi-Race EM

## Pre-requisites

Make a virtual environment and activate it, run `make venv`
```shell
make venv
source venv/bin/activate
```

Install all the development dependencies. Will install packages from all `requirements-*.txt` files.
```shell
make install
```

### Data Directory Structure

Donor files are in `data` directory, specified in the conf file.

```
data
└── ct_mr_don_10.txt
```

### conf Directory Structure

Configure input/output directories and EM specific parameters.

```
conf
└── minimal-configuration.json
Expand Down
20 changes: 3 additions & 17 deletions test_em.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,7 @@
import os
from EM.run_em import run_em_def


def em(conf_file="conf/minimal-em-configuration.json"):
# project_dir_in_file = ""
# if conf_file == "":
# use_default_path = True
# conf_file = (
# os.path.dirname(os.path.realpath(__file__))
# + "/conf/minimal-em-configuration.json"
# )
# project_dir_in_file = (
# os.path.dirname(os.path.realpath(__file__)).replace("/grim", "") + "/"
# )

run_em_def(conf_file)


if __name__ == "__main__":
em()
os.makedirs(f"output", exist_ok=True)
conf_file = "conf/minimal-em-configuration.json"
run_em_def(conf_file)

0 comments on commit 89fcab4

Please sign in to comment.