A function for sample filtration Input requirements: 1. have values in more than half of the contigs 2. average log2(cov) > 0 in all these contigs
filter_sample(Z, avg_cutoff, cutoff_ratio)the coefficient and p value of linear regression
a matrix
threshold of average
threshold of ratio