Skip to content

Commit

Permalink
Add logger info
Browse files Browse the repository at this point in the history
  • Loading branch information
6br committed Jul 26, 2020
1 parent 9beafb3 commit 762ee76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion matrixcomponent/PangenomeSchematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,18 @@ def write_rdf(schematic, ontology_output_path):
if len(link.participants):
link_counter = link_counter + 1
olink = olink_dict[link_counter]
assert link.upstream in obin_dict == link.downstream in obin_dict, "upstream: {0}, downstream {1}".format(link.upstream, link.downstream)

if link.upstream in obin_dict:
from_bin = obin_dict[link.upstream]
olink.departure = from_bin.ns_term()
else:
LOGGER.info(f"No upstream {link.upstream}")

if lin_k.downstream in obin_dict:
tobin = obin_dict[link.downstream]
olink.arrival = to_bin.ns_term()
else:
LOGGER.info(f"No downstream {link.downstream}")

olink.paths = [schematic.path_names[k] for k in link.participants]
olink.linkZoomLevel = zoom_level.ns_term()
Expand Down
2 changes: 1 addition & 1 deletion matrixcomponent/ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def add_to_graph(self, graph: Graph, vg, faldo: Namespace) -> None:

if self.linkZoomLevel:
graph.add((link, vg.linkZoomLevel, URIRef(self.linkZoomLevel)))
assert self.arrival and self.departure
# assert self.arrival and self.departure
if self.arrival:
graph.add((link, vg.arrival, URIRef(self.arrival)))

Expand Down

0 comments on commit 762ee76

Please sign in to comment.