R/helperGetData.R

Defines functions helperGetData

helperGetData <- function(x){
    tryCatch(
        expr = {
            cbind(ID = rownames(x), as.data.frame(assay(x)), 
                stringsAsFactors = FALSE)
        },
        error = function(e){
            message('Be sure the dataSE object has rownames with gene IDs
            and assay() functions from SummarizedExperiment.')
        }
    )
    cbind(ID = rownames(x), as.data.frame(assay(x)), 
        stringsAsFactors = FALSE)
}

Try the bigPint package in your browser

Any scripts or data that you put into this service are public.

bigPint documentation built on Nov. 8, 2020, 5:07 p.m.