a-r-j / graphein

Protein Graph Library
https://graphein.ai/
MIT License
998 stars 125 forks source link

issue in protein graph #303

Closed etheng-jiao closed 11 months ago

etheng-jiao commented 1 year ago

it cannot use networkx, since nx.set_node_attributes arguments, name and attributes are in inverse position

Another issue is that:

138 def add_edge(G, n1, n2, kind_name): 139 if G.has_edge(n1, n2): --> 140 G.edges[n1, n2]["kind"].add(kind_name) 141 else: 142 G.add_edge(n1, n2, kind={kind_name})

TypeError: 'method' object is not subscriptable

a-r-j commented 1 year ago

Hi @etheng-jiao, I suspect this is due to version drift in the dependencies. Could you please share the output of pip list or conda list

a-r-j commented 1 year ago

How did you get on @etheng-jiao, can I close the issue?

a-r-j commented 11 months ago

Closing due to inactivity. Feel free to reopen.