ndexbio / ndex2-client

NDEx2 Client
BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

Error in translation of data type for node and edge attributes when going to and from networkx #53

Closed coleslaw481 closed 7 months ago

coleslaw481 commented 5 years ago

Using NiceCXNetwork.to_networkx(mode='default') to convert to networkx and then ndex2.create_nice_cx_from_networkx has problems if a node or edge attribute has commas in its value. In this case that attribute will be set to list_of_string while other attributes will be set to a string. This is because data type is decided for each attribute value.

CX format allows the data type to differ for node/edge attributes, but networkx does not. Couple ways to address this:

coleslaw481 commented 7 months ago

NiceCXNetwork is being deprecated in favor of CX2Network closing this ticket.