Description Usage Arguments Value Author(s) Examples
Turns raw genotype data into 0 (homozygote), 1 (heterozygote) and NA
(missing), which is the working format for
the inbreedR
functions.
A raw genotype matrix has individuals in rows and each locus in two adjacent columns. Individual ID's can be rownames.
Type data(mouse_msats) for an example raw genotype data frame.
1 | convert_raw(genotypes)
|
genotypes |
Raw genotype |
data.frame
object with 0 (homozygote), 1 (heterozygote) and NA
(missing data).
Each locus is a column and each individual is a row.
Martin Stoffel (martin.adam.stoffel@gmail.com)
1 2 3 4 | # Mouse microsatellite data with missing values coded as NA
data(mouse_msats)
genotypes <- convert_raw(mouse_msats)
head(genotypes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.