schicluster.loop.loop_calling#

Module Contents#

fetch_chrom(cool, chrom) numpy.array[source]#
select_loop_candidates(cool_e, min_dist, max_dist, resolution, chrom)[source]#

Select loop candidate pixel to perform t test

paired_t_test(cool_t, cool_t2, chrom, loop, n_cells)[source]#

Paired t test per pixel

scan_kernel(E, kernel, loop)[source]#

Scan loop surrounding background kernel

loop_background(E, pad, gap, loop)[source]#

Calculate loop surrounding background level

call_loop_single_chrom(group_prefix, chrom, resolution=10000, min_dist=50000, max_dist=10000000, pad=5, gap=2)[source]#

calculate t test and loop background for one chromosome

filter_by_background(data, thres_bl, thres_donut, thres_h, thres_v, resolution)[source]#
find_summit(loop, res, dist_thres)[source]#
call_loops(group_prefix, resolution, output_prefix, thres_bl=1.33, thres_donut=1.33, thres_h=1.2, thres_v=1.2, fdr_thres=0.1, dist_thres=20000, size_thres=1)[source]#
filter_loops(total_loops, output_prefix, fdr_thres, resolution, dist_thres, size_thres)[source]#