combine_pvalue | R Documentation |
combine pvalues of SNP difference analysis result
combine_pvalue(snpResult, snp2gene, combineMethod = min)
snpResult |
data.frame of SNP difference analysis result. |
snp2gene |
data frame of two column: snp and gene. |
combineMethod |
Method of combining the pvalue of multiple snp in a gene. |
data.frame
snpResult <- data.frame(pvalue = runif(100), estimate = runif(100))
rownames(snpResult) <- paste0("snp", seq_len(100))
snp2gene <- data.frame(snp = rownames(snpResult),
gene = rep(paste0("gene", seq_len(20)), 5))
result <- combine_pvalue(snpResult, snp2gene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.