Skip to content

Commit 55b36f1

Browse files
authored
Merge pull request #31 from pbashyal-nmdp/make_graph_module
Check for empty lines in HPF
2 parents 290272f + 490076c commit 55b36f1

File tree

3 files changed

+3
-56
lines changed

3 files changed

+3
-56
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ This will produce the following files:
9393
#### Produce Imputation Results for Subjects
9494

9595
```
96-
>>> from grim.grim import graph_freqs, impute
96+
>>> from grim.grim import impute
9797
>>> impute(conf_file='conf/minimal-configuration.json')
9898
****************************************************************************************************
9999
Performing imputation based on:

conf/minimal-configuration-script.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

graph_generation/generate_neo4j_multi_hpf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ def generate_graph(
318318
num_of_alleles = len(FULL_LOCI)
319319
with open(freq_file) as f:
320320
for hap_line in f:
321+
if not hap_line:
322+
continue
321323
haplotype, pop, freq = hap_line.split(",")
322324
if haplotype == "hap":
323325
continue

0 commit comments

Comments
 (0)