Skip to content

Commit

Permalink
fix order in yaml dump
Browse files Browse the repository at this point in the history
  • Loading branch information
r-trimbour committed Nov 2, 2023
1 parent e18d530 commit fd838ea
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hummuspy/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hummuspy"
version = "0.0.43"
version = "0.0.45"
description = "HuMMuS is a novel method for the inference of regulatory mechanisms from multi-omics data with any type and number of omics, through a heterogeneous multilayer network framework."
authors = ["Rémi Trimbour <remi.trimbour@pasteur.fr>"]
license = "GPL-3.0-only"
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions hummuspy/src/hummuspy/explore_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def compute_RandomWalk(
config['seed'] = seeds_folder+'/'+seeds_filename+'.txt'
with open(multilayer_f+'/{}/'.format(config_folder)
+ seeds_filename + '_' + config_name, 'w') as f:
yaml.dump(config, f)
yaml.dump(config, f, sort_keys=False)

# multixrank
multixrank_obj = mxr.Multixrank(
Expand All @@ -199,7 +199,7 @@ def compute_RandomWalk(
wdir=multilayer_f)
ranking_df = multixrank_obj.random_walk_rank()

# and filter df results andadd seeds name
# and filter df results and add seeds name
ranking_df['seed'] = seeds_filename
ranking_df = ranking_df[ranking_df.score > 0] # ??
ranking_df.columns = ['layer', 'target', 'path_layer', 'score', 'seed']
Expand Down

0 comments on commit fd838ea

Please sign in to comment.