#' retrieve all the IDAT Basenames in a directory
#'
#' Note that getBarcodes(dir, 1) will get the chip address for unmolested IDATs.
#'
#' @param dir the path to the directory (default: use ".", the current path)
#' @param elt which fragment[s] to use as the barcode (default: 1 and 2)
#' @param ... other arguments to pass to elts()
#'
#' @return the barcodes
#'
#' @export
getBarcodes <- function(dir=".", elt=1:2, ...) {
unique(elts(list.files(dir, pattern="idat"), elt=elt, ...))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.