Skip to content

Commit

Permalink
Add docs SPIA export
Browse files Browse the repository at this point in the history
  • Loading branch information
ddomingof committed May 15, 2019
1 parent df9c931 commit d65cb9b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pathme/export_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ def spia_export_helper(
wikipathways_path: str,
output: str
):
"""Export PathMe pickles to SPIA excel like file.
:param kegg_path: directory to KEGG pickles
:param reactome_path: directory to Reactome pickles
:param wikipathways_path: directory to WikiPathways pickles
:param output: output directory
:param merge: merge equivalent pathways (default False)
:return:
"""
kegg_pickles, reactome_pickles, wp_pickles = get_all_pickles(kegg_path, reactome_path, wikipathways_path)

all_pickles = kegg_pickles + reactome_pickles + wp_pickles
Expand All @@ -88,6 +97,7 @@ def spia_export_helper(

iterator = tqdm(all_pickles, desc='Exporting SPIA excel files')

# Call Reactome manager and check that is populated
reactome_manager = ReactomeManager()

if not reactome_manager.is_populated():
Expand Down

0 comments on commit d65cb9b

Please sign in to comment.