Sunday, September 16, 2012

Upper limit on genetic diversity

A paper from Leffler et al: Diversity across the animal kingdom

I've re-plotted the data that they provided in datset1 and Figure 1 in the paper.


The difference from the lowest measured to highest measured diversity, is only a 800-fold difference.  That may seem like a lot, but under a neutral theory where any changes are driven by random sampling of alleles (genetic drift), much larger population (census size) should have diversity proportional to their census size.  In nature there are some organisms that have a census size several million times more than others, and yet their diversity is only so much more bigger.  Population history explains some of this, as a population bottleneck would reduce diversity, and the recovery time would then be a function of mutation rate/generation and generation time.    The authors of this study go into semi-quantitative arguments of why this may be.  Natural selection is the answer that is making a comeback.

My horse in the race is that non-coding functional variants (as shown by the ENCODE paper to be under selection in humans and mice).  These sites will be linked to neutral sites, and selection on these sites will seek to reduce diversity at neutral coding sites.

H/T Razib at Gene Expression Discover Blog

Sunday, June 10, 2012

Streaming in linux notes

Here are some notes for web streaming in linux.

I was using Ubuntu 10.04 LTS for the longest of time.  Unfortunately, this meant using the Linux 2.6.x series kernal, which doesn't include the drivers for using the kinect as a webcam.  I finally got around to updating to 11.10 (I'll eventually do 12.04 LTS, probably tonight).

Unfortunately, it didn't quite work for streaming in justin.tv.  I found a repository for vl4 loopback : https://github.com/umlaeute/v4l2loopback.  In addition, though I'm able to get a google hangout with video correctly, I would like embed the video into a screenshare, which isn't quite possible with the default screenshare.

Update: I ended up using webcamstudio


Tuesday, June 5, 2012

Organizing R Analysis

Organizing analysis

One of the perpetual problems I seem to be having is how do I go about organizing analysis, especially when others want many different types of analysis on the same data.  For instance, often times I've been asked to do sex-specific and sex-combined analysis array data with different exogenous variables etc.  Do you separate out each analysis into its own environment even though many variables are shared across the analysis?