getPed {Relate} | R Documentation |
This functions main purpose is only for debugging purposes. It solely returns the genotypes,positions and chromosomes of a snpMatrix pedfile object. Which in turn consist of a list with 3 elements.
#library(snpMatrix) #ped <- read.snps.pedfile("data.ped") vars <- getPed(pedfile)
pedfile |
Return value of read.snps.pedfile of snpMatrix |
chromosome |
This is an Integer containing the 'chromosome' |
position |
Vector of real values, containing the relative position to the chromosome |
data |
snp data genotypes |
albrecht@binf.ku.dk, thorfinn@binf.ku.dk
http://staff.pubhealth.ku.dk/~ande/web/software/relate.html
#library("snpMatrix") ## ## SNP MATRIX MUST BE INSTALLED # path<-paste(.find.package("Relate"),"/data/500.ped",sep="") # ped<-read.snps.pedfile(path) # datas<-getPed(ped)