Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Statistics on Tab Delimited File

by eye (Chaplain)
on Dec 10, 2009 at 22:31 UTC ( #812303=note: print w/ replies, xml ) Need Help??

in reply to Statistics on Tab Delimited File

Using libraries (like Acme::Tools) is not only efficient for coding, it can be a good way to gain the benefit of technical expertise you may not have. I mention this because the OP's code to compute median is fundamentally flawed (median is computed differently for even and odd numbers of items).

For more details on median, see MathWorld.

Comment on Re: Statistics on Tab Delimited File
Replies are listed 'Best First'.
Re^2: Statistics on Tab Delimited File
by Paragod28 (Novice) on Dec 10, 2009 at 22:44 UTC
    Yes I know the median routine is flawed. I was not receiving appropriate outputs against values such as 1e-33 so I decided to sort and cut the list in half and take that number. It is not accurate but close enough for my purposes. I am just trying to get an idea on organism distribution on sequence samples. If anyone knows a way to output the median of scientific notation (evalues)it would greatly help. Thanks again.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2016-05-01 03:59 GMT
Find Nodes?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW

    Results (441 votes). Check out past polls.