Skip to content

Commit

Permalink
Merge pull request #18 from monarch-initiative/qc-typo
Browse files Browse the repository at this point in the history
Fixed a typo in the qc report in_taxon fix
  • Loading branch information
kevinschaper authored Jun 15, 2022
2 parents 255a5c9 + 21bb98d commit b609501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cat_merge/qc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create_edge_node_types_report(edges_provided_by_values, unique_id_from_nodes
edges_provided_by_values['object']) & set(unique_id_from_nodes)))
node_type_df = nodes[nodes['id'].isin(node_type_list)]
node_grouping_fields = ['id', 'category']
if 'in_taxon' in nodes.column:
if 'in_taxon' in nodes.columns:
node_grouping_fields.append('in_taxon')
node_type_group = node_type_df.groupby(['provided_by'])[node_grouping_fields]
for node_type_provided_by, node_type_provided_by_values in node_type_group:
Expand All @@ -57,7 +57,7 @@ def create_edge_node_types_report(edges_provided_by_values, unique_id_from_nodes
"missing": len(set(node_type_provided_by_values['id']) - (set(edges_provided_by_values['subject'])))
+ len(set(node_type_provided_by_values['id']) - (set(edges_provided_by_values['object'])))
}
if 'in_taxon' in nodes.column:
if 'in_taxon' in nodes.columns:
node_type_object["taxon"] = list(set(node_type_provided_by_values["in_taxon"]))
node_types.append(node_type_object)
return node_types
Expand Down Expand Up @@ -108,7 +108,7 @@ def create_qc_report(merged_kg: MergedKG) -> Dict:

# Nodes
node_grouping_fields = ['id', 'category']
if 'in_taxon' in nodes.column:
if 'in_taxon' in nodes.columns:
node_grouping_fields.append('in_taxon')

nodes_group = nodes.groupby(['provided_by'])[node_grouping_fields]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cat-merge"
version = "0.1.14"
version = "0.1.15"
description = ""
authors = [
"Monarch Initiative <[email protected]>",
Expand Down

0 comments on commit b609501

Please sign in to comment.