Archive for July, 2008

formatC in R

Monday, July 28th, 2008

Output data from R could be very problematic, for example, I have a matrix (I thought I have a numeric matrix) and I want to format it into a numeric matrix with 3 decimal digits for each element. After half an hour, it turns out it is never an easy job. Here is what I did for a temporary solution:

outx <- as.matrix(outx) outf <- formatC(outx, digits=3, format=”f”) For some reason, my matrix “outx” is not actually a pure numeric matrix, they are numerics to me, but some hidden operation makes R thinks it is not. After add a converting as.matrix, the problem seems solved. format() is not a good choice for saving formatted numeric data because you can’t specify how many (at most) decimal digits you want.

Going to attend ISMB 2008

Tuesday, July 15th, 2008

It will be my first time attending the ISMB annual meeting! Looking forward…

A billionaire’s fascinating move

Wednesday, July 9th, 2008

A friend of mine, Jaime sent me a news link from NY Times. It is about David Shaw, a billionaire who created a very successful investment company moved to science–biophysics to be exactly. I heard some stories about him especially about his approach–which is running massively parallel jobs on protein folding/binding simulation. I’m very impressed with his ambitious work, which is worthy paying attention to.