neivar: Calculate neighborhood standard deviation.

Description Usage Arguments Value Examples

View source: R/neivar.R

Description

This function calculates the standard deviation of nonzero observations among single cells.

Usage

1
neivar(single, nei, n)

Arguments

single

matrix with each column being the upper triangular of each single cell

nei

neighborhood size

n

matrix size

Value

standard deviation matrix with each position being the standard deviation in the neighborhood among all single cells.

Examples

1
neivar(m,nei=2) 

Queen0044/scHiCBayes documentation built on Dec. 18, 2021, 8:43 a.m.