Skip to content

Commit bf403c5

Browse files
committed
Added TOC to README.md
General Cleanup
1 parent ddeb479 commit bf403c5

File tree

1 file changed

+28
-36
lines changed

1 file changed

+28
-36
lines changed

README.md

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# py-graph-imputation
22
[![PyPi Version](https://img.shields.io/pypi/v/py-graph-imputation.svg)](https://pypi.python.org/pypi/py-graph-imputation)
33

4-
## Graph Imputation
4+
* [Graph Imputation](#graph-imputation)
5+
* [Development](#develop)
6+
* [Running A Minimal Example Imputation](#running-a-minimal-configuration-example)
7+
8+
### Graph Imputation
59

610
`py-graph-imputation` is the successor of [GRIMM](https://github.com/nmdp-bioinformatics/grimm) written in Python and based on [NetworkX](https://networkx.org/)
711

812
![GRIM Dependencies](images/py-graph-imputation.png)
913

14+
### Development
1015
How to develop on the project locally.
1116

1217
1. Make sure the following pre-requites are installed.
@@ -53,56 +58,43 @@ How to develop on the project locally.
5358
```shell
5459
make install
5560
```
56-
7. The Gherkin Feature files, step files and pytest files go in `tests` directory:
57-
```
58-
tests
59-
|-- features
60-
| |-- algorithm
61-
| | `-- SLUG\ Match.feature
62-
| `-- definition
63-
| `-- Class\ I\ HLA\ Alleles.feature
64-
|-- steps
65-
| |-- HLA_alleles.py
66-
| `-- SLUG_match.py
67-
`-- unit
68-
`-- test_grim.py
69-
```
70-
8. Package Module files go in the `grim` directory.
61+
7. Package Module files go in the `grim` directory.
7162
```
7263
grim
7364
|-- __init__.py
74-
|-- algorithm
75-
| `-- match.py
76-
|-- model
77-
| |-- allele.py
78-
| `-- slug.py
79-
`-- grim.py
65+
|-- grim.py
66+
`-- imputation
67+
|-- __init__.py
68+
|-- cutils.pyx
69+
|-- cypher_plan_b.py
70+
|-- cypher_query.py
71+
|-- impute.py
72+
`-- networkx_graph.py
8073
```
81-
9. Run all tests with `make test` or different tests with `make behave` or `make pytest`. `make behave` will generate report files and open the browser to the report.
74+
8. Run all tests with `make test` or different tests with `make behave` or `make pytest`.
75+
9. Run `make lint` to run the linter and black formatter.
8276
10. Use `python app.py` to run the Flask service app in debug mode. Service will be available at http://localhost:8080/
8377
11. Use `make docker-build` to build a docker image using the current `Dockerfile`.
8478
12. `make docker` will build and run the docker image with the service. Service will be available at http://localhost:8080/
8579
8680
87-
# Runing a minimal configuration example
81+
### Running a minimal configuration example
8882
8983
From the main directory of the repo run:
9084
```
91-
scripts//build-imputation-validation.sh
85+
scripts/build-imputation-validation.sh
9286
```
9387
94-
This will pepare and load frequency data into the graph and run imputation on a sample set of subjects.
88+
This will prepare and load frequency data into the graph and run imputation on a sample set of subjects.
9589
96-
The execution is driven by the configuration file:
97-
`conf/minimal-configuration.json`
90+
The execution is driven by the configuration file: `conf/minimal-configuration.json`
9891
9992
It takes input from this file:
10093
```
10194
data/subjects/donor.csv
10295
```
10396
104-
105-
And genrates an `output` directory with these contents:
97+
And generates an `output` directory with these contents:
10698
10799
```
108100
output
@@ -114,13 +106,13 @@ output
114106
└── don.umug.pops
115107
```
116108
117-
The .problem file contains cases that failed due to serious errors (e.g., invalid HLA).
109+
The `.problem` file contains cases that failed due to serious errors (e.g., invalid HLA).
118110
119-
The .miss file contains cases where there was no output possible given the input, frequencies and configuration options.
111+
The `.miss` file contains cases where there was no output possible given the input, frequencies and configuration options.
120112
121-
The .pmug file contains the Phased Multi-locus Unambiguous Genotypes.
113+
The `.pmug` file contains the Phased Multi-locus Unambiguous Genotypes.
122114
123-
The .umug file contains the Unphased Multi-locus Unambiguous Genotypes.
115+
The `.umug` file contains the Un-phased Multi-locus Unambiguous Genotypes.
124116
125117
126118
The format of both files is (csv):
@@ -131,9 +123,9 @@ The format of both files is (csv):
131123
* rank
132124
133125
134-
The .pmug.pops and .umug.pops contain the corresponding population assignments.
126+
The `.pmug.pops` and `.umug.pops` contain the corresponding population assignments.
135127
136-
The format of the .pops files is (csv):
128+
The format of the `.pops` files is (csv):
137129
138130
* id
139131
* pop1

0 commit comments

Comments
 (0)