Hi,

i am not very good at pseudocode

Oh, dear. pseduocode == clear thinking. You're gonna need that.

Try starting this way: on a piece of paper, using an analogue writing device, set down the steps you would take to solve the problem using math. Your problem definition has the skeleton answer already.

(note use of BASIC line numbering to allow for inserted steps, lol)

  1. for each row, calculate the mean of the values.

  2. The output should be a list of genes and their respective mean expression value.
Now fill in the sub-steps. To calculate the mean for a row, what do you have to do first? Maybe reading the row is a prerequisite to doing the calculation?

(Possibly of interest: How to teach programming with a peanut butter and jelly sandwich)

Hope this helps!


The way forward always starts with a minimal test.

In reply to Re: Pseudocode for table data by 1nickt
in thread Pseudocode for table data by shabird

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.