Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2018-06-22 02:52 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (121 votes). Check out past polls.