library("LewyBodies.SN.TopDown") library("vp.misc") library("msmsTests")
data(msal_human_default) # subset m <- m[rowSums(exprs(m) > 0) > 10,] # exprs(m) <- log2(exprs(m) + 1) # should I log or not? m <- exhaustive_ratios(m, INDEX="UniProtID") dim(m) image.lewy.iq(m)
counts.pca(m, facs=pData(m)[,"prepBatch",drop=F], snms=sampleNames(m))
res <- eset_lm(m, "y ~ prepBatch + 1", "y ~ 1") res$p.val.adj <- p.adjust(res$p.value) sum(res$p.val.adj < 0.05, na.rm=TRUE) sum(res$p.val.adj < 0.05, na.rm=TRUE)/nrow(res) hist(res$p.value, 50, col='lightgrey')
res <- eset_lm(m, "y ~ subject.type + match.group", "y ~ match.group") 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.