update_func: Update Function

Description Usage Arguments Value

View source: R/update_func.R

Description

Implements the scSorter method by iteratively running update_mu and update_C.

Usage

1
2
3
4
5
6
7
8
update_func(
  dat,
  design_mat,
  weightmat,
  unknown_threshold1 = 0,
  unknown_threshold2 = 0.05,
  max_iter = 100
)

Arguments

dat

A matrix of input data.

design_mat

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

weightmat

A matrix of weights assigned to each marker gene.

unknown_threshold1

The parameter determines undecided cells cutoff. The default value is 0.

unknown_threshold2

The parameter determines whether undecided cells are further processed. The default value is 0.05.

max_iter

The maximum number of iterations for the algorithm to update parameters. The default value is 100.

Value

A list contains parameter estimates, type assignments, and the corresponding cost.


scSorter documentation built on March 17, 2021, 9:06 a.m.