Nothing
#' Function to perform Meta-Analysis with LD Correlation Coefficients
#'
#' @param marker_ld A symmetric squared matrix containing the pairwise linkage disequilibrium between markers in a chromosome
#' @param marker_pvalues A vector with the p-values for the SNPs annotated within each gene
#' @return A vector of p-values for each gene annotated within the defined coordinates
#' @name meta_LD
#' @keywords internal
meta_LD<-function(marker_ld, marker_pvalues){
weights <- rowMeans(marker_ld)
weighted_average_pvalue <- sum(marker_pvalues * weights) / sum(weights)
gene_pvalue_weighted_avg <- weighted_average_pvalue
return(gene_pvalue_weighted_avg)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.