sample.spatial.kld: this function is called by 'compute.spatial.kld' to calculate...

View source: R/gsdensity_functions.R

sample.spatial.kldR Documentation

this function is called by 'compute.spatial.kld' to calculate the kl-divergence between cell-weighted with shuffled weight vector and the ref (all cells, unweighted)

Description

this function is called by 'compute.spatial.kld' to calculate the kl-divergence between cell-weighted with shuffled weight vector and the ref (all cells, unweighted)

Usage

sample.spatial.kld(weight_vec, spatial.coords, n, ref)

Arguments

weight_vec

weight_vec

spatial.coords

spatial.coords

n

n

ref

ref

Value

returns randomly sampled spatial klds for gene sets


gsdensity documentation built on March 31, 2023, 8:32 p.m.