filter_sample: A function for sample filtration Input requirements: 1. have...

View source: R/utils.R

filter_sampleR 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

Description

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

Usage

filter_sample(Z, avg_cutoff, cutoff_ratio)

Arguments

Z

a matrix

avg_cutoff

threshold of average

cutoff_ratio

threshold of ratio

Value

the coefficient and p value of linear regression


demic documentation built on May 29, 2024, 10:05 a.m.