inst/examples/example-pedfile-snpStats.R

library(snpStats)

### read data
pedfile <- system.file("extdata/sample.ped.gz", package = "snpStats")
infofile <- system.file("extdata/sample.info", package = "snpStats")

sample <- read.pedfile(pedfile, snps = infofile)

### data tables
phen <- sample$fam

phen <- within(phen, {
  id <- rownames(phen)
  affected[is.na(affected)] <- 1
})
  

Try the solarius package in your browser

Any scripts or data that you put into this service are public.

solarius documentation built on May 2, 2019, 2:43 a.m.