Description Usage Arguments Value Note Author(s) See Also
View source: R/codeW.genomeSpecific.R
This function codes design matrix [W1,W2]. An element of W1 will be 1 if the individual is heterozygous for this loci AND the SNP comes from genome 1, else it is 0. An element of W2 will be 1 if the individual is heterozygous for this loci AND the SNP comes from genome 2, else it is 0.
1 | codeW.genomeSpecific(x, N, num.snp)
|
x |
integer matrix giving the genotypes of the
individuals. Always two adjacent rows give the genotype of one
individual, where the odd rows give genome 1 (from one of the parents)
and even rows genome 2 (from the other parent). The presence of a SNP
is coded as |
N |
The number of individuals, integer scalar. This must be equal to |
num.snp |
The number of SNP, integer scalar. This must be equal to |
An integer matrix ([W1,W2]) with N
rows and num.snp * 2
columns.
This is an untility function and not intended to be called directly by the user.
Frank Technow
hypredCode
and hypredTpGenomeSpecific
which use this function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.