hapmaptonumeric: Recodes single nucleotides to numeric format

View source: R/HapmapToNumeric.R

hapmaptonumericR Documentation

Recodes single nucleotides to numeric format

Description

This function takes one SNP marker with the single nucleotide hapmap format of snps to convert them to numeric format: 0, 1, 2. Where 0 and 2 are the homozygous genotypes and 1 the herozygote genotypes. 0 is assigned to the major allele and 2 to the minor allele.

Usage

hapmaptonumeric(gd.snp)

Arguments

gd.snp

A single SNP vector in hapmap format

Value

Returns a SNP vector in numeric format


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