Hi everyone, This is my dataset and I only do the data loading part. Could you please help me to do the genes selection by using (Welch t-test, Wilcoxon Mann Whitney test(WMW), and Significance of Analysis Microarray(SAM))and add the Genes Symbol for the final answer. I am new to the r code. Please help me.
# load series and platform data from GEO
gset <- getGEO("GSE116486", GSEMatrix =TRUE, AnnotGPL=TRUE)
if (length(gset) > 1) idx <- grep("GPL570", attr(gset, "names")) else idx <- 1
gset <- gset[[idx]]
# make proper column names to match toptable
fvarLabels(gset) <- make.names(fvarLabels(gset))
# group membership for all samples
gsms <- "0000001000001111111110001111000001000001000110"
sml <- strsplit(gsms, split="")[[1]]
# log2 transformation
ex <- exprs(gset)
qx <- as.numeric(quantile(ex, c(0., 0.25, 0.5, 0.75, 0.99, 1.0), na.rm=T))
LogC <- (qx[5] > 100) ||
(qx[6]-qx[1] > 50 && qx[2] > 0)
if (LogC) { ex[which(ex <= 0)] <- NaN
exprs(gset) <- log2(ex) }
exprs(gset) <- normalizeBetweenArrays(exprs(gset)) # normalize data
exprs(gset)
# assign samples to groups and set up design matrix
gs <- factor(sml)
groups <- make.names(c("AD case","Normal case"))
levels(gs) <- groups
gset$group <- gs
design <- model.matrix(~group + 0, gset)
colnames(design) <- levels(gs)
fit <- lmFit(gset, design) # fit linear model
Your post title is a nightmare. Please read https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1002202#s5 (Rule 5) and edit your title to be concise and specific.
The original publication for this GEO series used limma and found it necessary to make a number of batch and covariate corrections. That makes it unlikely that Welch t-tests, WMW or SAM would be adequate analysis methods.
Thank you for your comment.Could you please explain it more and give me some guidelines(how to applied these kind of methods).
Is anyone knows that definite code (link)for SAM?.Could you please help me.
Top level posts should be only for answers. If you have a clarification or another question, please edit your original question or make a new one. Also, just asking for code probably isn’t going to be received welll. Please show what you tried first, where you got stuck etc.