R/perid.summary.R

"perid.summary" <- 
function (data,snpsubset,idsubset, ...) {
	if (is(data,"gwaa.data")) data <- data@gtdata
	if (!is(data,"snp.data")) stop("The data argument must be of snp.data-class or gwaa.data-class")
	if (!missing(snpsubset)) data <- data[,snpsubset]
	if (!missing(idsubset)) data <- data[idsubset,]
	out <- hom(data, ... )
	out <- as.data.frame(out,stringsAsFactors=FALSE)
	out$CallPP <- out$NoMeasured/data@nsnps
	out$Het <- 1. - out$Hom
	rownames(out) <- data@idnames
	out
}

Try the GenABEL package in your browser

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

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