R/AllClass.R

#' Polygenic Risk Score Object
#'
#' Contains various characteristics of the polygenic risk score. 
#' @exportClass PRS
#' @export
setClass("PRS",
	 representation(score = "list")
	 )

#' Optimal PRS representation
#'
#' Contains the score and various diagnostics.
#' @exportClass oPRS
#' @export
setClass("oPRS",
	 representation(
		all_scores = "matrix",
		p = "vector",
		optimal_score = "data.frame",
		optimal_p = "numeric",
		optimal_r2 = "numeric",
		nsnp = "numeric",
		n_i = "numeric",
		r_i = "numeric",
		h_i = "numeric"
		)
	 )
Chris1221/pRs documentation built on May 6, 2019, 11:47 a.m.