initialize_grids: Initialize Grid for cycle_npreg_loglik

Description Usage Arguments Value

View source: R/cycle_npreg.R

Description

For prediction, initialize grid points for cell cycle phase on a circle.

Usage

1
initialize_grids(Y, grids = 100, method.grid = c("pca", "uniform"))

Arguments

Y

Gene expression matrix (gene by sample).

grids

Number of bins used over interval 0 to 2*pi.

method.grid

The approach used to initialize angles in the computation. method.grid = "uniform" creates k equally-spaced bins ("grids"). method.grid = "pca" uses gene expression values to infer angles, and then these angles are used to project the cells to the closest bin.

Value

A vector of initialized angles to be used in cycle_npreg_loglik.


jhsiao999/peco documentation built on Nov. 21, 2020, 5:34 p.m.