https://github.com/ctlab/phantasus
Revision 06931f99d0025c0b96c68f51f098e0219ed58395 authored by petrovich on 06 September 2018, 23:33:28 UTC, committed by petrovich on 06 September 2018, 23:33:28 UTC
1 parent db005e4
Raw File
Tip revision: 06931f99d0025c0b96c68f51f098e0219ed58395 authored by petrovich on 06 September 2018, 23:33:28 UTC
Update JS. TCGA datasets
Tip revision: 06931f9
subsetES.R
#' Subsets es, if rows or columns are not specified, all are retained
#' @param es ExpressionSet object.#'
#' @param columns List of specified columns' indices (optional), indices start from 0#'
#' @param rows List of specified rows' indices (optional), indices start from 0
#' @return new expression set `es`
#'
#'
subsetES <- function(es, columns = c(), rows=c()) {
    rows <- getIndicesVector(rows, nrow(exprs(es)))
    columns <- getIndicesVector(columns, ncol(exprs(es)))

    es <- es[rows, columns]
    assign("es", es, envir = parent.frame())
}
back to top