single_position.error: Determine the frequency error at variable positions

View source: R/error.R

single_position.errorR Documentation

Determine the frequency error at variable positions

Description

Determine the frequency error at variable positions

Usage

single_position.error(pu, haplotypes, freq, minimum_coverage = 1000)

Arguments

pu

A VSeqTools_Pileup object as produced by BAM_pileup

haplotypes

character.vector of haplotypes

freq

numeric.vector of haplotype frequencies

min_coverage

minimum coverage needed to compute errors, otherwise an NA is returned

Value

a data.frame containing columns pos, error that give reference position and frequency error at the position. Errors are the sum of absolute value of frequency error over the nucleotides.


SLeviyang/RegressHaplo documentation built on June 1, 2022, 10:48 p.m.