filter_sample {demic} | R Documentation |
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)
Z |
a matrix |
avg_cutoff |
threshold of average |
cutoff_ratio |
threshold of ratio |
the coefficient and p value of linear regression