snpMatrixToNumeric: snpMatrixToNumeric

View source: R/snptonumeric.R

snpMatrixToNumericR Documentation

snpMatrixToNumeric

Description

Recodes a biallelic SNP matrix in hapmap format to numeric format, e.g., 0, 1, 2. The function applies the snptonumeric function over the columns of the SNP matrix.

Usage

snpMatrixToNumeric(X = NULL)

Arguments

X

A SNP matrix containing in its row names the id of the individuals and columns as SNPs.

Value

A numeric SNP matrix.

See Also

snptonumeric


leocrh/FPGC documentation built on Nov. 15, 2024, 2:46 a.m.