recode_G.Rd
Given a genotype-phenotype (GP) map recodes genotypes in G. The GP map is a matrix with each row containing new coding for one marker in G: new codes for genotypes 'AA', 'aA' and 'aa' (in G encoded as 0, 1 and 2, respectively).
recode_G(G, GP_map)
G | genotypes matrix |
---|---|
GP_map | genotype-phenotype map |
weights matrix
If only a vector GP map is provided, same re-coding is assumed for each and every locus in G.
Marcin Kierczak <marcin.kierczak@scilifelab.se>