baryshnikova-lab / safepy

Python implementation of Spatial Analysis of Functional Enrichment (SAFE)
GNU General Public License v3.0
39 stars 24 forks source link

using pickle instead of nx to load network. #15

Closed nodice73 closed 8 months ago

nodice73 commented 8 months ago

I have networkx 3.2.1 installed.

Running load_network() gives the following error:

AttributeError: module 'networkx' has no attribute 'read_gpickle'

Looking this up, it appears that read_gpickle and write_gpickle are no longer used in NetworkX 3.0. Pickle can handle this directly. So I made the changes recommended on the website.