Skip to content

Commit 37c51c1

Browse files
authored
Merge pull request #19 from pbashyal-nmdp/fix_wheel_build
Fix wheel build
2 parents a17bc2c + 556817e commit 37c51c1

File tree

6 files changed

+34
-41
lines changed

6 files changed

+34
-41
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24+
pip install cython==0.29.32
2425
pip install setuptools wheel twine
2526
- name: Build and publish
2627
env:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ docker: docker-build ## build a docker image and run the service
9090

9191
install: clean ## install the package to the active Python's site-packages
9292
pip install --upgrade pip
93-
python3 setup.py build_ext --inplace
94-
python setup.py install
9593
pip install -r requirements.txt
94+
python setup.py build_ext --inplace
95+
python setup.py install
9696
pip install -r requirements-tests.txt
9797
pip install -r requirements-dev.txt
9898
pip install -r requirements-deploy.txt

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

grim/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
"""Top-level package for py-grim."""
2727

2828
__organization__ = "NMDP/CIBMTR Bioinformatics"
29-
__version__ = "0.0.8"
29+
__version__ = "0.0.9"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.0.8
2+
current_version = 0.0.9
33
commit = True
44
tag = True
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
setup(
5454
name="py-graph-imputation",
55-
version="0.0.8",
55+
version="0.0.9",
5656
author="Pradeep Bashyal",
5757
author_email="[email protected]",
5858
python_requires=">=3.8",

0 commit comments

Comments
 (0)