Skip to content

Commit

Permalink
Update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Domingo-Fernandez committed Mar 7, 2019
1 parent 7409f58 commit 97b7c2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pathme/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from pathme.wikipathways.utils import get_file_name_from_url, get_wikipathways_files, unzip_file
from pybel import from_pickle, to_pickle
from pybel.struct.mutation import collapse_to_genes, collapse_all_variants
from pybel_tools.node_utils import remove_complex_nodes
from tqdm import tqdm

from pybel_tools.analysis.spia import bel_to_spia_matrices, spia_matrices_to_excel
Expand Down Expand Up @@ -378,6 +379,9 @@ def export_harmonized_universe(kegg_path, reactome_path, wikipathways_path, outp
kegg_path, reactome_path, wikipathways_path, not no_explode, not no_harmonize_names
)

if not no_explode:
remove_complex_nodes(universe_graph)

click.echo("Merging variants and genes")
collapse_all_variants(universe_graph)
collapse_to_genes(universe_graph)
Expand Down

0 comments on commit 97b7c2d

Please sign in to comment.