Learn R Programming

scSorter (version 0.0.2)

cost_func: Cost Function

Description

Calculates the cost.

Usage

cost_func(dat, clus, mu, designmat)

Arguments

dat

A matrix of input data.

clus

A vector of predicted cell types.

mu

Parameter estimates from update_mu.

designmat

An indicator variable matrix records specified marker genes of each cell type.