Skip to content

Commit

Permalink
Resolve issue #36
Browse files Browse the repository at this point in the history
  • Loading branch information
spond committed May 7, 2021
1 parent 2c7e665 commit 99c4b22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/hivnetworkannotate
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ import_settings = arguments.parse_args()

results_json = json.load (import_settings.network)

root_trace_results = False

if('trace_results' in results_json.keys()):
root_trace_results = True

Expand Down Expand Up @@ -197,7 +199,7 @@ if inject_missing_value:
if import_settings.inplace and import_settings.network is not sys.stdin:
import_settings.output = open (import_settings.network.name, "w")

if 'Settings' in network_json and 'compact_json' in network_json['Settings']:
if 'Settings' in network_json and 'compact_json' in network_json['Settings'] and network_json['Settings']['compact_json']:
ht_compress_network_json (network_json)

# Return with trace_results key
Expand Down
3 changes: 2 additions & 1 deletion scripts/hivnetworkcsv
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def make_hiv_network():


cluster_summary_info = None

prior_network_subclusters = None

if settings().prior is not None:
try:
existing_nodes = {} # node ID -> cluster ID
Expand Down

0 comments on commit 99c4b22

Please sign in to comment.