Compute/create matrix with genotype weights
matrix of genotypes (genetic variants as columns,
individuals as rows) as output by the
optional numeric vector of genotype weights. If
this option is not specified, the beta distribution is used
for weighting the variants, with each weight given by
w_i = dbeta(f_i, 1, 25)^2, with f_i the minor
allele frequency (MAF) of variant i. This default is the
same as used by the
weights parameter (a numeric vector) is given, this
function will return a matrix with that vector as the
diagonal. If the
weights parameter is not given (equal
NULL) the genotype weights will be calculated using
the beta distribution (see the explanation of the
Matrix with genotype weights.
Karim Oualkacha, Lennart C. Karssen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.