differential_SNP_GEO | R Documentation |
Do difference analysis of SNP data downloaded from GEO
differential_SNP_GEO(snpData, sampleGroup, method = "Chisquare")
snpData |
data.frame of SNP data downloaded from GEO |
sampleGroup |
vector of sample group |
method |
one of "Chisquare", "fisher", and "CATT"(Cochran-Armitage trend test) |
data.frame
file1 <- read.table("GSE66903_series_matrix.txt.gz",
fill=TRUE, comment.char="!", header = TRUE)
rownames(file1) <- file1[, 1]
snpData <- file1[, -1]
sampleGroup <- sample(c("A", "B"), ncol(snpData ), replace = TRUE)
names(sampleGroup) <- colnames(snpData)
snpData <- SNP_QC(snpData)
sampleGroup <- sample(c("A", "B"), ncol(snpData ), replace = TRUE)
result1 <- differential_SNP_GEO(snpData = snpData,
sampleGroup = sampleGroup, method = "Chisquare")
# use demo data
snpDf <- matrix(sample(c("AA", "Aa", "aa"), 100, replace = TRUE), 10, 10)
snpDf <- as.data.frame(snpDf)
sampleGroup <- sample(c("A", "B"), 10, replace = TRUE)
result <- differential_SNP_GEO(snpDf, sampleGroup, method = "fisher")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.