UCDenver-ccp / Cartoomics

0 stars 0 forks source link

New node exclusion #115

Closed bsantan closed 5 months ago

bsantan commented 5 months ago

It was difficult to break this task up, so this is a large commit.

  1. support for edge and node exclusion in graph object, edgelist, and labels dfs
  2. always use networkx methods, though when igraph is specified by changing the method in create_graph, it will work
  3. simplify functions to only pass graph class, rather than individually graph object, edgelist, and labels

To test, run ./test_script.sh. You can modify the WP4535_output/_annotated_diagram_InputNodes.csv file to have fewer lines for a quicker test.

lagillenwater commented 5 months ago

I got this error:

Traceback (most recent call last): File "/Users/lucas/Library/CloudStorage/OneDrive-TheUniversityofColoradoDenver/Projects/Cartoomics/creating_ subgraph_from_KG.py", line 11, in <module> from memory_management import * File "/Users/lucas/Library/CloudStorage/OneDrive-TheUniversityofColoradoDenver/Projects/Cartoomics/memory_ma nagement.py", line 23, in <module> import psutil ModuleNotFoundError: No module named 'psutil'

Are you using any of the memory_management stuff?

bsantan commented 5 months ago

@lagillenwater I'm not using memory management, but do you need that for alpine? Otherwise I can comment that line out and commit to this branch

lagillenwater commented 5 months ago

@bsantan I don't think we need memory management in alpine anymore, since the networkx fix

lagillenwater commented 5 months ago

Works great with commented out psutil