library("LewyBodies.SN.TopDown") library("vp.misc") library("msmsTests")
data(msal_human_default) # subset m <- m[rowSums(exprs(m) > 0) > 10,] # dim(m) image.lewy.counts(m)
counts.pca(m, facs=pData(m)[,"prepBatch",drop=F], snms=sampleNames(m))
library("msmsTests") res <- msms.glm.qlll(m, "y ~ prepBatch + 1", "y ~ 1", div=colSums(exprs(m))) res$p.val.adj <- p.adjust(res$p.value) sum(res$p.val.adj < 0.05) sum(res$p.val.adj < 0.05)/nrow(res) hist(res$p.value, 50, col='lightgrey')
res <- msms.glm.qlll(m, "y ~ subject.type + match.group", "y ~ match.group", div=colSums(exprs(m))) res$p.val.adj <- p.adjust(res$p.value) sum(res$p.val.adj < 0.05, na.rm=T) head(res[order(res$p.value),], 10) hist(res$p.value, 50, col='lightgrey')
best <- rownames(res)[which.min(res$p.value)] plot.lewy.count.feature(m, best)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.