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

AttributeError: 'Graph' object has no attribute 'selfloop_edges' #1

Open
Kdreval opened this issue May 2, 2021 · 0 comments
Open

Comments

@Kdreval
Copy link

Kdreval commented May 2, 2021

Just going to leave it here since the NetworkX syntax has been updated and it breaks the current implementation of DriverNetPy. Currently, DriverNetPy is exiting with the following error:

Traceback (most recent call last):
  File "DriverNetPy/DriverNet.py", line 99, in <module>
    main()
  File "DriverNetPy/DriverNet.py", line 93, in main
    DriverNet(args)
  File "DriverNetPy/DriverNet.py", line 60, in DriverNet
    edges, ggi, outlier_dict, mutation_dict = preprocess(ggi_matirx, sample_mutation_matrix, sample_exp_outlier)
  File "/projects/rmorin_scratch/for_kostia/DriverNetPy/DriverNetPy/preprocess.py", line 103, in preprocess
    ggi = read_ggi(ggi_matirx)
  File "/projects/rmorin_scratch/for_kostia/DriverNetPy/DriverNetPy/preprocess.py", line 29, in read_ggi
    ggi.remove_edges_from(ggi.selfloop_edges())
AttributeError: 'Graph' object has no attribute 'selfloop_edges'

if used with the latest version of NetworkX (at the time of writing, it is 2.5).

Is it possible to include yaml file to the repo with environment that can be easily build and reproduced? Or mentioning specific versions of the DriverNetPy dependencies? I am going to try new nx.selfloop_edges(G) syntax in preprocess.py, but it is possible there are more functions that are not supported by newest NetworkX releases.

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