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.

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.