Learn R Programming

SVG (version 1.0.0)

fisher_spatial_cpp: Compute Fisher's Exact Test for Spatial Enrichment

Description

Fast computation of contingency table and Fisher test p-value for binary spatial enrichment.

Usage

fisher_spatial_cpp(bin_vec, from_idx, to_idx)

Value

List with contingency table counts, odds ratio, and p-value

Arguments

bin_vec

Binary vector for one gene

from_idx

Vector of source indices for edges

to_idx

Vector of target indices for edges