arcfish.tl.AxisWiseF#
- class arcfish.tl.AxisWiseF(adata: AnnData)#
Perform axis-wise F-test and combine p-values by aggregated Cauchy test.
- Parameters:
adata (AnnData) – adata of a single chromosome, created by
arcfish.pp.FOF_CT_Loader.create_adata().
Methods
__init__(adata)append_pval(result, cut_lo, cut_up, outer_cut)Perform tests in each axis.
append_summit(result)Treat the entry with the smallest p-value in each cluster as the summit.
ij_background(i, j, d1d, outer_cut)The entries that are between 25kb and outer_cut away from the (i,j) entry are treated as the background.
- static ij_background(i: int, j: int, d1d: ndarray, outer_cut: int) ndarray#
The entries that are between 25kb and outer_cut away from the (i,j) entry are treated as the background.
- Parameters:
- Returns:
A boolean matrix with background entries equal to True.
- Return type:
(p, p) np.ndarray