in reply to Re: Spliting file + removing column
in thread Spliting file + removing column
yes you are right. I being the biologist do not know much about programming.
The first block of the above code you provided is just printing G explicitly in the vertices block. It could either be A, T, G or C. Secondly I also want to have their serial numbers in vertices block. i-e the first block should look like
1 GIn *edges section, like you said it is of no use to print the same pair twice. Is it possible to print the pairs once followed by the number indicating their total sum in file. Its a huge file. I have given a part of it here. For example, the *edges portion in this case should be like below where third column indicates the total sum of the pair in whole file which is 2 in this case
1 2 2Please note that the 1st column of the input file i-e serial number pairs only with 3rd, 4th and 5th column NOT with the 6th column (which is happening in my code above)
I shall be very thankful for your guidance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Spliting file + removing column
by tilly (Archbishop) on Jan 13, 2011 at 17:42 UTC | |
by AG87 (Acolyte) on Jan 13, 2011 at 17:59 UTC | |
by tilly (Archbishop) on Jan 13, 2011 at 18:20 UTC |