Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Pseudocode for table data

by 1nickt (Canon)
on Mar 17, 2020 at 20:58 UTC ( [id://11114400]=note: print w/replies, xml ) Need Help??


in reply to Pseudocode for table data

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114400]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found