Skip to content

Commit b151a17

Browse files
authored
Merge pull request #398 from lcdb/v1.11
V1.11
2 parents 360615d + e6e14a3 commit b151a17

27 files changed

+1697
-386
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ workflows/rnaseq/downstream/results
6262
workflows/rnaseq/downstream/rnaseq_cache
6363
workflows/rnaseq/downstream/rnaseq_files
6464
workflows/rnaseq/downstream/rnaseq.html
65+
*.xlsx
66+
._*
67+
Rplots.pdf
68+
/lib/include/*

docs/rnaseq-rmd.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Here is how the code above would look using this method:
208208
subset.counts=TRUE))
209209
)
210210
211-
dds.list <- map(lst, lcdbwf::make_dds, config=config, parallel=config$parallel$parallel)
211+
dds_list <- map(lst, lcdbwf::make_dds, config=config, parallel=config$parallel$parallel)
212212
213213
That is, first we create a list of lists (``lst``), and then we used ``map()`` to apply
214214
the ``make_dds`` function to all items in the list. The collapsing of
@@ -260,6 +260,24 @@ adds some extra convenience when working with lists of dds objects, including
260260
the detection of parallelization as set up in the config object. See the help
261261
for ``lcdbwf::make_results()`` for more details.
262262

263+
By default, if no test argument is specified in the parameters for
264+
``lcdbwf::make_dds`` found here in `examples 1-4, <https://github.com/lcdb/lcdb-wf/blob/LRT/workflows/rnaseq/downstream/rnaseq.Rmd#L164-L187>`_
265+
the Wald test is performed. When ``lcdbwf::make_results`` processes a Wald test dds object, it
266+
detects the Wald test and expects a ``contrast`` or ``coef`` argument to specify which
267+
p-values and log2FoldChange values to report.
268+
269+
DESeq2 also supports the nBinomLRT (LRT). `Example 5 <https://github.com/lcdb/lcdb-wf/blob/LRT/workflows/rnaseq/downstream/rnaseq.Rmd#L189-L194>`_
270+
demonstrates how to create a dds object with LRT data. Since the LRT tests
271+
the removal of one or more terms from the design formula, a single
272+
log2FoldChange column doesn't reflect the test's complexity. DESeq2's results
273+
object is optimized for the Wald test, and when storing LRT results, it
274+
maintains consistency in datastructure by choosing a single pair-wise comparison for
275+
log2FoldChange values. To avoid confusion, ***we set all log2FoldChange values to
276+
0 for LRT results***.
277+
278+
For more details, see the DESeq2 documentation:
279+
`DESeq2 Likelihood Ratio Test <https://bioconductor.org/packages/devel/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#i-ran-a-likelihood-ratio-test-but-results-only-gives-me-one-comparison>`_.
280+
263281
.. _rules:
264282

265283
To take advantage of this infrastructure, we put each of those contrasts into

0 commit comments

Comments
 (0)