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 8a336d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions 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]
if link.downstream in obin_dict:
to_bin = 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 8a336d9

Please sign in to comment.