SNP2Haplo {SimHap}R Documentation

Convert biallelic SNP data to haplo format

Description

Converts biallelic SNP data to the format required by the suite of haplotype inference and analysis functions

Usage

SNP2Haplo(geno)

Arguments

geno A data frame containing biallelic SNP data. The first column should contain a subject identifier. The remaining columns should each represent a biallelic SNP, containing two alleles per entry with no separator.

Value

SNP2Haplo returns a data frame whose first column is a subject identifier, and where the remaining columns represent the genotype data. Two columns are returned per SNP, each containing a single allele.

Author(s)

Pamela A. McCaskie

See Also

SNP2Geno

Examples


data(SNP.dat)
haplo.dat <- SNP2Haplo(SNP.dat)


[Package SimHap version 1.0.0 Index]