Learn R Programming

gsdensity (version 0.1.2)

compute.jsd: 5. compute the specificity of gene set when cell partition information is available; the information could be clustering, sample origins, or other conditions inspired by https://github.com/FloWuenne/scFunctions/blob/0d9ea609fa72210a151f7270e61bdee008e8fc88/R/calculate_rrs.R

Description

this function is called by compute.spec.single to calculate the similarity between two vectors

Usage

# S3 method for jsd
compute(x, y)

Value

returns jsd_distance

Arguments

x

x

y

y