Skip to content

Commit 49b9bc6

Browse files
committed
Minor formatting changes
1 parent 4fdf91e commit 49b9bc6

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

Markdowns/08_DE_analysis_with_DESeq2.Rmd

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ and day 11.
113113
## Exercise 1
114114

115115
> This time create and investigate the model matrix for the variable "Status".
116-
> 1. Create a model formula to investigate the effect of “Status” on gene expression.
117-
> 2. Look at the model matrix and identify which is the reference group in your model.
116+
>
117+
> 1. Create a model formula to investigate the effect of “Status” on gene expression.
118+
> 2. Look at the model matrix and identify which is the reference group in your model.
118119
119120
The intercept has been set automatically to the group in the factor that is
120121
alphabetically first: `Infected`.
@@ -351,11 +352,12 @@ ddsObj.filt <- ddsObj.raw[keep, ]
351352
> called `results.additive`
352353
>
353354
> Questions:
354-
> a) How many coefficients are there in the additive model?
355-
> b) What is the reference group in the additive model?
356-
> c) What contrasts could we perform using this model?
357-
> d) What contrast does the `results.additive` object represent?
358-
> e) How many genes have an adjusted p-value of less than 0.05
355+
>
356+
> a) How many coefficients are there in the additive model?
357+
> b) What is the reference group in the additive model?
358+
> c) What contrasts could we perform using this model?
359+
> d) What contrast does the `results.additive` object represent?
360+
> e) How many genes have an adjusted p-value of less than 0.05
359361
360362
```{r echo = FALSE, message = FALSE, include = FALSE}
361363
additive.model <- as.formula(~ TimePoint + Status)

Markdowns/08_DE_analysis_with_DESeq2.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269

270270
<h1 class="title toc-ignore">Introduction to Bulk RNAseq data analysis</h1>
271271
<h3 class="subtitle">Differential Expression of RNA-seq data</h3>
272-
<h4 class="date">Last modified: 30 Sep 2024</h4>
272+
<h4 class="date">Last modified: 03 Oct 2024</h4>
273273

274274
</div>
275275

@@ -337,7 +337,12 @@ <h2>The simple model</h2>
337337
<div id="exercise-1" class="section level2">
338338
<h2>Exercise 1</h2>
339339
<blockquote>
340-
<p>This time create and investigate the model matrix for the variable “Status”. 1. Create a model formula to investigate the effect of “Status” on gene expression. 2. Look at the model matrix and identify which is the reference group in your model.</p>
340+
<p>This time create and investigate the model matrix for the variable “Status”.</p>
341+
<ol style="list-style-type: decimal">
342+
<li>Create a model formula to investigate the effect of “Status” on gene expression.<br />
343+
</li>
344+
<li>Look at the model matrix and identify which is the reference group in your model.</li>
345+
</ol>
341346
</blockquote>
342347
<p>The intercept has been set automatically to the group in the factor that is alphabetically first: <code>Infected</code>.</p>
343348
<p>It would be nice if <code>Uninfected</code> were the base line/intercept. To get R to use <code>Uninfected</code> as the intercept we need to use a <code>factor</code>. Let’s set factor levels on Status to use <code>Uninfected</code> as the intercept.</p>
@@ -525,7 +530,12 @@ <h2>Exercise 3</h2>
525530
<li><p>Run the size factor estimation, dispersion estimation and modelling steps using the <code>DESeq</code> command as above.</p></li>
526531
<li><p>Extract the default contrast using the <code>results</code> command into a new object called <code>results.additive</code></p></li>
527532
</ol>
528-
<p>Questions: a) How many coefficients are there in the additive model? b) What is the reference group in the additive model? c) What contrasts could we perform using this model? d) What contrast does the <code>results.additive</code> object represent? e) How many genes have an adjusted p-value of less than 0.05</p>
533+
<p>Questions:</p>
534+
<pre><code>a) How many coefficients are there in the additive model?
535+
b) What is the reference group in the additive model?
536+
c) What contrasts could we perform using this model?
537+
d) What contrast does the `results.additive` object represent?
538+
e) How many genes have an adjusted p-value of less than 0.05 </code></pre>
529539
</blockquote>
530540
<div id="the-default-contrast-of-results-function" class="section level3">
531541
<h3>The default contrast of <code>results</code> function</h3>
379 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)