get_wsaf: Get within-sample allele frequencies

View source: R/main.R

get_wsafR Documentation

Get within-sample allele frequencies

Description

Get within-sample allele frequencies from coverage and count data. Missing values can optionally be imputed by applying a summary function to the non NA values at each locus. The default summary function takes the mean of the non NA values.

Usage

get_wsaf(x, impute = TRUE, FUN = median, ...)

Arguments

x

object of class mipanalyzer_biallelic.

impute

whether to impute missing values.

FUN

function used to impute missing values. Default = 'median'

...

other arguments to pass to FUN.


mrc-ide/MIPanalyzer documentation built on Jan. 17, 2024, 7:16 p.m.