This function is for calculating the subject and cell type specific relative abundance for selected cell types.

music_Theta(x, non.zero = FALSE, clusters, samples, select.ct = NULL)

Arguments

x

SingleCellExperiment, single cell dataset

non.zero

logical, default as F. If true, remove all gene with zero expression

clusters

character, the colData used as clusters

samples

character,the colData used as samples

select.ct

vector of cell types included, default as NULL. If NULL, include all cell types in x

markers

vector or list of gene names

Value

gene*subject by cell type matrix of relative abundance