R/minSetSize-methods.R

setMethod(
          "minSetSize",
          signature( sets = "CMAPCollection" ),
          function(sets, universe=NULL, min.members = 5) {
            
            if (is.null(universe)) {
              universe = featureNames(sets)
            }
            sets[, Matrix::colSums( abs( members( sets ) ) ) >= min.members ]
          }
          )

Try the gCMAP package in your browser

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

gCMAP documentation built on April 29, 2020, 3:54 a.m.