-
Notifications
You must be signed in to change notification settings - Fork 0
/
14_CreateTables.qmd
66 lines (60 loc) · 1.25 KB
/
14_CreateTables.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: "Tables"
format:
docx:
output-file: "Tables"
execute:
echo: false
warning: false
---
```{r}
#load the libraries
library(gt)
library(tidyverse)
library(readxl)
```
## Table 3
```{r}
diffExp <- readRDS("results/diffExpLME4_Q3.RDS")
diffExp %>% filter(Contrast == "KRT_P - KRT_AD") %>%
filter(FDR <= 0.05) %>%
select(Gene,Estimate,FDR) %>%
arrange(-Estimate) %>%
gt() %>%
fmt_number(n_sigfig = 3) %>%
cols_label(
Gene = md("**Gene**"),
Estimate = md("**log2 Fold Change**"),
FDR ~ md("**FDR**")
)
```
## Table 4
```{r}
diffExp <- readRDS("results/diffExpLME4_Q3.RDS")
diffExp %>% filter(Contrast == "CD4_P - CD4_AD") %>%
filter(FDR <= 0.05) %>%
select(Gene,Estimate,FDR) %>%
arrange(-Estimate) %>%
gt() %>%
fmt_number(n_sigfig = 3) %>%
cols_label(
Gene = md("**Gene**"),
Estimate = md("**log2 Fold Change**"),
FDR ~ md("**FDR**")
)
```
## Table 5
```{r}
diffExp <- readRDS("results/diffExpLME4_Q3.RDS")
diffExp %>% filter(Contrast == "CD8_P - CD8_AD") %>%
filter(FDR <= 0.05) %>%
select(Gene,Estimate,FDR) %>%
arrange(-Estimate) %>%
gt() %>%
fmt_number(n_sigfig = 3) %>%
cols_label(
Gene = md("**Gene**"),
Estimate = md("**log2 Fold Change**"),
FDR ~ md("**FDR**")
)
```