Import edge direction from networkfile

16 views
Skip to first unread message

mariumw...@gmail.com

unread,
Jan 7, 2019, 7:46:53 AM1/7/19
to cytoscape-helpdesk
Hello everyone,

I have a network file created using a tool developed by me, the network file looks like this

GeneA     GeneB     <-
GeneB     GeneC     ->
GeneD     GeneC     ->
GeneD     GeneF     <-

Importing the network itself was successfully done, but I am looking for a way to import the directions in the network. Since the directions are not always the same, can somebody tell me how to import such directions into cytoscape. I have looked alot and could not fins the solution.

Best
Mary

Alex Pico

unread,
Jan 7, 2019, 1:49:26 PM1/7/19
to cytoscape...@googlegroups.com
Well, there are two approaches:

1. Directional network model. If you want the actual underlying network model to be correct in terms of direction, then you need to pre-define “source” and “target” columns. You can’t import a mix of and expect Cytoscape to know which is source based on an arbitrary symbol in a third column.

2. Directional network appearance. If you don’t care what the actual model is and only need the visualization or appearance of the network be directed, then you can take the same file you’ve already imported and use the column of direction symbols to map discretely to source and target arrowhead types. See manual http://manual.cytoscape.org/en/stable/Styles.html#introduction-to-style

The second approach can produce networks with arrows pointing in the direction you want, but know that network functions that rely on directness (like in-degree/out-degree calculations) use the model, not the visual style and will be wrong if you take this approach.

 - Alex



--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/76dd840b-b812-42a9-8769-61e707cab32a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages