combine_pvalue: combine pvalues of SNP difference analysis result

View source: R/SNP.R

combine_pvalueR Documentation

combine pvalues of SNP difference analysis result

Description

combine pvalues of SNP difference analysis result

Usage

combine_pvalue(snpResult, snp2gene, combineMethod = min)

Arguments

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.

Value

data.frame

Examples

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)

huerqiang/GeoTcgaData documentation built on March 21, 2024, 1:42 a.m.