snp.data: creates an snp.data object

Description Usage Arguments Value Author(s) See Also

View source: R/ss.R

Description

Creates object of class snp.data-class

Usage

1
2
3
4
5
6
7
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

Author(s)

Yurii Aulchenko

See Also

snp.data-class


GenABEL documentation built on May 30, 2017, 3:36 a.m.

Related to snp.data in GenABEL...