recodeIntoDominant: SNP genotypes

View source: R/quantgen.R

recodeIntoDominantR Documentation

SNP genotypes

Description

Recode SNP genotypes from additive to dominant.

Usage

recodeIntoDominant(X, simplify.imputed = FALSE)

Arguments

X

matrix of bi-allelic SNP genotypes encoded in allele doses in 0,1,2, with genotypes in rows and SNPs in columns; missing values should be encoded as NA

simplify.imputed

if TRUE, imputed genotypes will be considered as homozygotes if less than 0.66 or more than 1.33, and heterozygotes otherwise

Value

matrix with genotypes in 0,1

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.