Learn R Programming

GenABEL (version 1.8-0)

snp.data: creates an snp.data object

Description

Creates object of class snp.data-class

Usage

snp.data(nids, rawdata, idnames = as.character(c(1:nids)), snpnames = as.character(c(1:(length(rawdata)/ceiling(nids/4)))), chromosome = as.factor(rep(1,(length(rawdata)/ceiling(nids/4)))), map = as.double(seq(1,(length(rawdata)/ceiling(nids/4)))), coding=as.raw(rep(1,length(rawdata)/ceiling(nids/4))), strand=as.raw(rep(0,length(rawdata)/ceiling(nids/4))), male = rep(0, nids))

Arguments

nids
number of people
idnames
list of IDs
male
male indicator for IDs
snpnames
list of SNP names
chromosome
list of chromosomes SNPs belong to
coding
list of nucleotide coding for the SNPs
strand
strands of the SNPs
map
map position of SNPs
rawdata
genotypes presented in raw data format

Value

Object of class snp.data-class

See Also

snp.data-class