make.geno {SNPassoc}R Documentation

Create a group of locus objects from some SNPs, assign to 'model.matrix' class.

Description

This function prepares the CRITICAL element corresponding to matrix of genotypes necessary to be included in 'haplo.glm' function.

Usage

make.geno(data, SNPs.sel, sep="/")

Arguments

data data frame containing the the SNPs that will be used to estimate the haplotypes.
SNPs.sel a vector indicating the names of SNPs that are used to estimate the haplotypes
sep character separator used to divide alleles. See snp function for details.

Value

the same as 'setupGeno' function, from 'haplo.stats' library, returns

See Also

snp

Examples

data(SNPs)
geno<-make.geno(SNPs,c("snp10001","snp10002","snp10003"),sep="")

[Package SNPassoc version 1.0-2 Index]