Friday, July 31, 2015

RNAseq library type explained

http://onetipperday.blogspot.com/2012/07/how-to-tell-which-library-type-to-use.html

Monday, July 27, 2015

Read zip file without unzipping in R

The following R function is modified from Joshua Ulrich's post in stackoverflow. An argument FUN is added for specifying what R function would be employed to process the file handler.

read.zip = function(file, FUN=read.table, ...) {
  zipFileInfo = unzip(file, list=TRUE)
  if(nrow(zipFileInfo) > 1)
    stop("More than one data file inside zip")
  else
    FUN(unz(file, as.character(zipFileInfo$Name)), ...)
}




Reference:
http://stackoverflow.com/questions/8986818/automate-zip-file-reading-in-r

Tuesday, July 14, 2015

How R Searches and Finds Stuff

http://blog.obeautifulcode.com/R/How-R-Searches-And-Finds-Stuff/