filter_allele_balance: Filter out heterozygous genotypes failing an allele balance...

Description Usage Arguments Value Examples

View source: R/filter_allele_balance.R

Description

This function requires a vcfR object as input, and returns a vcfR object filtered to convert heterozygous sites with an allele balance falling outside of .25-.75 to 'NA'. From the Ddocent filtering page "Allele balance: a number between 0 and 1 representing the ratio of reads showing the reference allele to all reads, considering only reads from individuals called as heterozygous, we expect that the allele balance in our data (for real loci) should be close to 0.5".

Usage

1

Arguments

vcfR

a vcfR object

Value

An identical vcfR object, except that genotypes failing the allele balance filter have been converted to 'NA'.

Examples

1

SNPfiltR documentation built on Oct. 29, 2021, 1:07 a.m.