Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running DOMINO with very small inputs #11

Open
agitter opened this issue Aug 11, 2023 · 0 comments
Open

Error running DOMINO with very small inputs #11

agitter opened this issue Aug 11, 2023 · 0 comments

Comments

@agitter
Copy link

agitter commented Aug 11, 2023

I am testing DOMINO with very small input networks and active gene lists. I get an error message:

line 36, in main_domino
G_final_modules=domino_main(active_genes_file=cur_ag, network_file=network_file, slices_file=slices_file, slice_threshold=slice_threshold, module_threshold=module_threshold)
File "/usr/local/lib/python3.7/site-packages/src/core/domino.py", line 349, in main
".")[0] + ".pkl"))
File "/usr/local/lib/python3.7/site-packages/src/core/domino.py", line 83, in prune_network_by_modularity
G_modularity = nx.algorithms.operators.union_all(G_modules)
File "/usr/local/lib/python3.7/site-packages/networkx/algorithms/operators/all.py", line 61, in union_all
raise ValueError(\'cannot apply union_all to an empty list\')

union_all returns the ValueError if G_modules is an empty list, which seems like the expected behavior for my small inputs.

G_modularity = nx.algorithms.operators.union_all(G_modules)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant