469,344 Members | 6,461 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

How to create a dynamic multidimensional array

Hi all,

I want to create a file like this:

NC_010109.1 NTRFinder motif_small_b 789 799 . . . ID=NTR-a1;Parent=NTR-a;Name=motif_small_b
NC_010109.1 NTRFinder motif_small_a 811 821 . . . ID=NTR-a2;Parent=NTR-a;Name=motif_small_a
NC_010109.1 NTRFinder motif_small_j 822 832 . . . ID=NTR-a3;Parent=NTR-a;Name=motif_small_j
NC_010109.1 NTRFinder motif_tall_a 833 880 . . . ID=NTR-a4;Parent=NTR-a;Name=motif_tall_a
NC_010109.1 NTRFinder motif_small_a 881 891 . . . ID=NTR-a5;Parent=NTR-a;Name=motif_small_a
NC_010109.1 NTRFinder motif_small_b 892 902 . . . ID=NTR-a6;Parent=NTR-a;Name=motif_small_b

I have 2 arrays: in the first array is the 3rd, 4th and 5th column saved, in the second array the other columns. Now I want to put the arrays together and crate a file like above. The problem is that the 9th column refers to the 3rd (the "Name" and the ID will is counted).
Any idea how I can realise that?

Cheers, Anja
Oct 28 '10 #1
0 1484

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by @ nospam.com | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.