countGenotypicClasses: Genotypic classes

View source: R/quantgen.R

countGenotypicClassesR Documentation

Genotypic classes

Description

Count the genotypic classes per SNP (not imputed, i.e. 0, 1, 2 and NA).

Usage

countGenotypicClasses(X)

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

Value

matrix with 4 columns and as many rows as there are SNPs

Author(s)

Timothee Flutre


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