nolanlab / spade

SPADE: Spanning Tree Progression of Density Normalized Events
Other
46 stars 23 forks source link

Code for merging nodes #121

Open SamGG opened 8 years ago

SamGG commented 8 years ago

Hi, Does anybody know if there a piece of code in order to merge nodes? Imagine the user defined that a list of nodes belong all to the same group of cells, is there a piece of code that allows one to simplify the report tables?

zbjornson commented 8 years ago

In Cytoscape we had a(n unstable) way of merging nodes, although it didn't propagate to PDF exports as far as I remember. We also have some prototype code that contains the hierarchy (e.g. you could truncate the dendrogram). Neither are available/supported unfortunately. It's fairly straightforward to combine nodes using igraph's functions, and there's some discussion about how to do it here: http://stackoverflow.com/questions/18997752/how-do-i-merge-two-nodes-into-a-single-node-using-igraph