R/add.pheno.R

Defines functions add.pheno

##' for each transband, add the phenotypes "Y".
##'
##' @inheritParams add.effect
##' @inheritParams make.transbands
add.pheno <- function(transbands, mlratio){
  for(i in 1:length(transbands)){
    phenos <- transbands[[i]]
    Y <- mlratio[, phenos]
    attr(transbands[[i]], "Y") <- Y
  }
  return(transbands)
}
jianan/qtlpvl documentation built on May 12, 2021, 5:49 a.m.