Open carissableker opened 1 year ago
Hi, Carissa --
This is a fair criticism, and I'm sorry for the confusion. (Thanks for using py4cytoscape!)
The structure and control flow for py4cytoscape was taken from RCy3 in large part. Having done that, it's quite possible that RCy3 has the same issue ... or not. I can see that the lines 304 & 308 of RCy3's Tables.R assign the 'data' dataframe an edited value in the same way as py4cytoscape's tables.py line 455.
I'm not sure how R works ... I'll find out whether those RCy3 assignments end up creating a local copy of the dataframe. If so, I can follow suit, too.
@AlexanderPico @yihangx ... can you take a look at this behavior in RCy3 and let me know??
Thanks!
Using p4c.load_table_data changes the input table (adding a
row.names
column. This is unexpected. If the column needs to be added, maybe that should be done on a copy?