I have a working version of this that works for two columns, I need to make it work for more.

It's a script for normalising array data so that the data from each column have the same distribution.

I have tab delineated data that need to be read in, e.g. for two columns

ID_REF IDENTIFIER GSM29783 GSM29784 31307_at L17325 77 788 31308_at L17330 -777 -877 31309_r_at U50277 7 8 31310_at X52009 -7777 -887 31311_at X61070 77777 88

I then sort each column individually by value (done)

I then have to average both of the top values, then both of the 2nd top values etc.

I then have to output those back into the original order they came from.

I'll give you the working code if you like?


In reply to Re: naming a variable with the datum from another variable by duncharris
in thread naming a variable with the datum from another variable by duncharris

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.