Skip to content

Commit

Permalink
Update README.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelove authored May 31, 2018
1 parent 1841ec8 commit 6c2e3f3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,13 @@ dds <- DESeqDataSetFromTximport(txi, coldata, ~ group)
dds <- DESeqDataSet(se, ~ group)
# from count matrix
dds <- DESeqDataSetFromMatrix(counts, coldata, ~ group)
# minimal filtering helps keep things fast
# one can set 'n' to e.g. min(5, smallest group sample size)
keep <- rowSums(counts(dds) >= 10) >= n
dds <- dds[keep,]
dds <- DESeq(dds)
res <- results(dds)
res <- lfcShrink(dds, coef = 2) # this added in DESeq2 v1.16
res <- results(dds) # no shrinkage of LFC, or:
res <- lfcShrink(dds, coef = 2, type="apeglm") # shrink LFCs
```

[edgeR](http://www.bioconductor.org/packages/release/bioc/html/edgeR.html)
Expand All @@ -402,6 +406,10 @@ y <- estimateDisp(y,design)
fit <- glmFit(y,design)
lrt <- glmLRT(fit)
topTags(lrt)
# or use the QL methods:
qlfit <- glmQLFit(y,design)
qlft <- glmQLFTest(qlfit)
topTags(qlft)
```

[limma-voom](http://www.bioconductor.org/packages/release/bioc/html/limma.html)
Expand Down

0 comments on commit 6c2e3f3

Please sign in to comment.