Skip to content

Commit

Permalink
Make sure description isn't a set
Browse files Browse the repository at this point in the history
References #18
  • Loading branch information
cthoyt committed Jan 24, 2019
1 parent c7e4b1b commit ae8afaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pathme/reactome/convert_to_bel.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ def convert_to_bel(nodes: Dict[str, Dict], interactions: List[Tuple[str, str, Di
else:
identifier = UNKNOWN

description = pathway_info['comment']
if isinstance(description, (set, list)):
description = '\n'.join(description)

"""Convert graph-like dictionaries to BELGraph."""
graph = BELGraph(
name=pathway_info['display_name'],
version='1.0.0',
description=pathway_info['comment'],
description=description,
authors="Josep Marín-Llaó, Daniel Domingo-Fernández & Sarah Mubeen",
contact='[email protected]',
)
Expand Down

0 comments on commit ae8afaf

Please sign in to comment.