Nothing
#' Read the Data block of Illumina sample sheet as data.frame
#' @param file An Illumina SampleSheet, with one Data block
#' @param sep Character, separator between columns, comma by default
#' @return A \code{data.frame} of the data block
#'
#' @examples
#' myText <- paste("[Header]",
#' "IEMFileVersion,5",
#' "",
#' "[Reads]",
#' "51",
#' "1",
#' "[Data]",
#' "Lane,Sample_ID,Description",
#' "1,1,Sample1",
#' "1,2,Sample2",
#' "2,3,Sample3",
#' "2,4,Sample4", sep="\n")
#' read_illumina_sampleSheet(textConnection(myText))
#' @export
read_illumina_sampleSheet <- function(file, sep=",") {
lines <- readLines(file)
dataBlock <- grep("^\\[Data\\]", lines)
if(length(dataBlock)==0)
stop("No data block found")
res <- read.csv(textConnection(lines), header=TRUE, sep=sep,
quote="", dec=".", row.names=NULL,
stringsAsFactors = FALSE,
skip=dataBlock)
return(res)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.