determine_sample_dist: Determine distributiion within sample

Description Usage Arguments Value

View source: R/varsites.r

Description

For each site within each sample, it determines if the dominant allele is homogeneous (likeley the only allele present), or if there is evidence of a second allele present (heterogeneous).

Usage

1
determine_sample_dist(dat, thres = 0.05, error_prob = 0.01)

Arguments

dat

A data.frame or tibble. One site per line, must have columns depth and freq.

thres

p-value threshold to consider that the evidence against error only model is too large. Sites within samples with p-value below threshold will be considered heterogeneous.

error_prob

Baseline error probability in sequences.

Value

A data frame or tibble with columns for depth, freq and sample_dist, as well as any other columns previously present.


surh/HMVAR documentation built on Aug. 18, 2021, 1:21 a.m.