R/make_gene_cor_mat.R

Defines functions make_gene_cor_mat

Documented in make_gene_cor_mat

#' @title make_gene_cor_mat
#' @description Contructs a symmetric correlation matrix from the input gene expression data
#' @param expr_data A matrix of normalized gene expression data where columns represent individuals and rows represent features (e.g. genes)
#' @return A matrix of Spearman rho values
#' @export

make_gene_cor_mat<-function(expr_data){

  return(cor(t(expr_data), method = "spearman"))

}
camiolomj/ICLite documentation built on July 28, 2021, 6:33 a.m.