Description Usage Arguments Value
View source: R/mappingfunctions.R
Normalise a SNP count matrix by an external reference frequency distribution by mean and standard deviation predicted under a binomial model.
1 |
rawdatmat |
A matrix of SNP counts of the alternative allele; of dimension N by L |
f |
A snp frequency vector of length L |
ploidy |
ploidy of the data (2=diploid) ; maximum that rawdatmat can take |
minfreq |
a thresholding for very raw SNPs in the reference, to prevent them from being over-weighted |
meanimpute |
(default FALSE) whether to mean impute missing data |
A matrix of size N by L which is rawdatmat zero meaned and with theoretical s.d. 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.