indexGenoDoses: Index the dose of each SNP genotype

View source: R/quantgen.R

indexGenoDosesR Documentation

Index the dose of each SNP genotype

Description

Return if a given SNP enotype is 0 or 1, even if it was imputed.

Usage

indexGenoDoses(X, boundaries = seq(from = 0, to = 2, length.out = 4))

Arguments

X

matrix of bi-allelic SNP genotypes encoded, for each SNP, in number of copies of its second allele, i.e. as allele doses in 0,1,2, with genotypes in rows and SNPs in columns; the "second" allele is arbitrary, which can be the minor or the major allele

boundaries

vector with interval boundaries of allele dose

Value

matrix of logicals with two columns, is.0 and is.1

Author(s)

Timothee Flutre


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