getMedianMetric.lsObj: getMedianMetric.lsObj

View source: R/Seurat.Utils.Metadata.R

getMedianMetric.lsObjR Documentation

getMedianMetric.lsObj

Description

Get the median values of different columns in meta.data, can iterate over a list of Seurat objects.

Usage

getMedianMetric.lsObj(
  ls.obj = ls.Seurat,
  n.datasets = length(ls.Seurat),
  mColname = "percent.mito"
)

Arguments

ls.obj

List of Seurat objects, Default: ls.Seurat

n.datasets

lenght of list (n objects), Default: length(ls.Seurat)

mColname

Metadata column name to calculate on. Default: 'percent.mito'

Examples

## Not run: 
if (interactive()) {
  ls.Seurat <- getMedianMetric.lsObj(
    ls.obj = ls.Seurat, n.datasets = length(ls.Seurat),
    mColname = "percent.mito"
  )
}

## End(Not run)

vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.