nodes that don't have connections in dot format

0 views
Skip to first unread message

Elvis Geneston

unread,
Nov 20, 2009, 1:47:00 PM11/20/09
to networkx...@googlegroups.com

Hello everyone,

How do we include the nodes that don't have connections in write_dot(G, 'fileoutput.txt')?


I greatly appreciate any help.

Thanks.

elvis

On Tue, Nov 17, 2009 at 11:10 PM, ayesha <ayesha.d...@gmail.com> wrote:
Hi,

I am new to the programming world of python and need real help.

I have a text file that has numerous lines of input and each line
looks something like the following:

ln1 =  Y54E10BR.6       GO:0006350|GO:0006979|
ln2=   C08F11.14        GO:0006097|GO:0006099|GO:0008152|
and so on...

the first string is protein , the second and third being genes. I have
written a piece of code that separates the proteins and genes based on
the white spaces and the ' | '.
I now need to create a network such that, there is an edge between
each proetin and genes in the same line. A gene in one line may also
have an edge with a protein in another line...Can I do it with the
current file format that I have? I have been reading about the
add_edge function and I get the impression taht it needs some
numerical input?
If thats the case,how can I convert my more than 5000 proteins and
genes all into numbers and then add an edge between all of them?
Any ideas please?

--

You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To post to this group, send email to networkx...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/networkx-discuss?hl=.



Reply all
Reply to author
Forward
0 new messages