Archive For December 11, 2013

Using liftover

By |

The LiftOver tool is essentially a way for you to take a location or set of locations in one build of a genome and map it to a different build or genome. For instance, say you have a locus chr17:1000000-1000100 in human genome build hg17 and you want to know where it resides in the…

Read more »

merging data frames

By |

Great resource here on merging data frames: http://rwiki.sciviews.org/doku.php?id=tips%3adata-frames%3amerge Suppose you had two data frames, df1 and df2, each with an “id” column. To merge we just merge(df1, df2, by.x=”id”, by.y=”id”, all=TRUE) The all=TRUE keeps all rows of both data frames. You can also do a cross join using data frames. Another way to think of…

Read more »