SNP2Haplo {SimHap} | R Documentation |
Converts biallelic SNP data to the format required by the suite of haplotype inference and analysis functions
SNP2Haplo(geno)
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. |
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.
Pamela A. McCaskie
data(SNP.dat) haplo.dat <- SNP2Haplo(SNP.dat)