convertImputedTo012: Convert imputed genotypes to 0/1/2

View source: R/quantgen.R

convertImputedTo012R Documentation

Convert imputed genotypes to 0/1/2

Description

Converts imputed genotypes to 0/1/2.

Usage

convertImputedTo012(X)

Arguments

X

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

Value

matrix

Author(s)

Timothee Flutre


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