# Define the list for the genotype data. There are 50 SNPs in the TPED file.
snp.list <- list(nsnps.vec=50, format="tped")
snp.list$file <- system.file("sampleData", "geno_data.tped.gz", package="CGEN")
snp.list$subject.list <- system.file("sampleData", "geno_data.tfam", package="CGEN")
# Define pheno.list
pheno.list <- list(id.var=c("Family", "Subject"), delimiter="\t", header=1,
response.var="CaseControl")
pheno.list$file <- system.file("sampleData", "pheno.txt", package="CGEN")
pheno.list$main.vars <- ~Gender + Exposure
pheno.list$int.vars <- ~Exposure
pheno.list$strata.var <- "Study"
# Define the list of options.
# Specifying n.jobs=5 will let each job process 10 SNPs.
op <- list(n.jobs=5, GxE.scan.op=list(model=1))
# GxE.scan.partition(snp.list, pheno.list, op=op)
Run the code above in your browser using DataLab