Skip to contents

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

Usage

fisher_spatial_cpp(bin_vec, from_idx, to_idx)

Arguments

bin_vec

Binary vector for one gene

from_idx

Vector of source indices for edges

to_idx

Vector of target indices for edges

Value

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