Learn R Programming

gsdensity (version 0.1.2)

sample.spatial.kld: 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)

Value

returns randomly sampled spatial klds for gene sets

Arguments

weight_vec

weight_vec

spatial.coords

spatial.coords

n

n

ref

ref