Does anyone know how to do these types of diagrams? I'm assuming they're done in Cytoscape. My data includes TFs in 4 different cell types, as well as the target genes (TFs) of those TFs in all 4 cell types, and then a column designating if that interaction if activating or repressing.
Currently I can create a circle network diagram in Cytoscape, but the TFs aren't organized by cell type other than the node color, so it just looks like one big circle. It also filtered any repeat TFs to just one node, so if I have the same TF in multiple cell types I can't visualize that...
Yes. This figure was made using Cytoscape (it is mentioned in the Methods). Here is how I would do it.
Data prep:
As you noted, you'll need unique node names for every TF you want represent. This means concatenating gene names with cell types in your case, e.g., Sox9_RPC and Sox9_MG. So, your data would look something like this:
You can load these data into Cytoscape using File>Import>Network from file.
Next, you want to select the nodes for each of the cell types. Using the search bar, you can use name:*_RPC to select all the nodes with "_RPC", for example.
Then run the Circular Layout on selected nodes only". Move that circle off to the side while it is selected. Repeat the selection and layout of each of the cell types.
You can use the Style panel to map edge color to the interaction type (a discrete mapping for "activates" or "represses"). You can also use bypass node border color to set the color of nodes per cell type when selected.
You can use the Annotation panel to add large font labels like "RPC" and "MG" for your cell types on the network (like in the figure).
Worked like a charm, thank you!