You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/tidytranscriptomics_case_study.Rmd
+13-10
Original file line number
Diff line number
Diff line change
@@ -453,16 +453,16 @@ We use tidyverse `nest` to group the data. The command below will create a tibbl
453
453
454
454
```{r}
455
455
pseudo_bulk |>
456
-
nest(data = -cell_type)
456
+
nest(grouped_summarized_experiment = -cell_type)
457
457
```
458
458
459
459
To explore the grouping, we can use tidyverse `slice` to choose a row (cell_type) and `pull` to extract the values from a column. If we pull the data column we can view the SummarizedExperiment object.
We can then identify differentially expressed genes for each cell type for our condition of interest, treated versus untreated patients. We use tidyverse `map` to apply differential expression functions to each cell type group in the nested data.
@@ -497,7 +497,7 @@ If we pull out the SummarizedExperiment object for the first cell type, as befor
497
497
```{r}
498
498
pseudo_bulk |>
499
499
slice(1) |>
500
-
pull(data)
500
+
pull(grouped_summarized_experiment)
501
501
```
502
502
503
503
Now we can create plots for significant genes for each cell type, visualising their transcriptional abundance, also without needing to create multiple objects.
0 commit comments