differential_SNP | R Documentation |
Do difference analysis of SNP data
differential_SNP(snpDf, sampleGroup, combineMethod = min)
snpDf |
data.frame of SNP data, each column is a sample, and each row is a SNP. |
sampleGroup |
vector of sample group. |
combineMethod |
Method of combining the pvalue of multiple snp in a gene. |
data.frame
library(TCGAbiolinks)
query <- GDCquery(
project = "TCGA-CHOL",
data.category = "Simple Nucleotide Variation",
access = "open",
legacy = FALSE,
data.type = "Masked Somatic Mutation",
workflow.type = "Aliquot Ensemble Somatic Variant Merging and Masking"
)
GDCdownload(query)
data_snp <- GDCprepare(query)
samples <- unique(data_snp$Tumor_Sample_Barcode)
sampleGroup <- sample(c("A", "B"), length(samples), replace = TRUE)
names(sampleGroup) <- samples
pvalue <- differential_SNP_tcga(snpData = data_snp,
sampleGroup = sampleGroup)
# use demo data
snpDf <- matrix(sample(c("mutation", NA), 100, replace = TRUE), 10, 10)
snpDf <- as.data.frame(snpDf)
sampleGroup <- sample(c("A", "B"), 10, replace = TRUE)
result <- differential_SNP(snpDf, sampleGroup)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.