471,872 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

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 1529

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
reply views Thread by NeoPa | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.