Calculates chi-square and returns p-values

compute_pvals(counts, counts_unweighted)

Arguments

counts

A data.frame or matrix of counts

counts_unweighted

A data.frame or matrix of counts