Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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
Domain Nodelet?
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 taking refuge in the Monastery: (4)
As of 2023-10-03 15:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found