Skip to contents

Given cell assignments (or posterior probabilities), estimate the mean profile of each cluster.

Usage

estimate_MeanProfile(counts, clust, s, bg)

Arguments

counts

Counts matrix, cells X genes.

clust

Vector of cluster assignments, or a matrix of probabilities of cells (rows) belonging to clusters (columns).

s

Vector of scaling factors for each cell, e.g. as defined by cell area.

bg

Expected background

Value

A matrix of cluster profiles, genes X clusters

Details

E step: estimate each cluster's mean profile (Ptolemy Estep function)

estimate each cluster's mean profile (Ptolemy Estep function)