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
{{ message }}
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: vignettes/solutions.Rmd
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,12 +45,11 @@ seurat_obj |>
45
45
count(gate) %>%
46
46
summarise(proportion = n/sum(n))
47
47
48
-
49
48
```
50
49
51
50
## Question 2
52
51
53
-
There is a cluster of cells characterised by a low RNA output (nCount_RNA). Use tidygate to asses the cell composition (curated_cell_type) of that cluster.
52
+
There is a cluster of cells characterised by a low RNA output (nCount_RNA). Use tidygate to identify the cell composition (curated_cell_type) of that cluster.
We can use `mutate` to create a column. For example, we could create a new `Phase_l` column that contains a lower-case version of `Phase`.
114
123
115
124
```{r}
116
125
seurat_obj |>
117
126
mutate(Phase_l=tolower(Phase)) |>
118
-
# select columns to view
127
+
128
+
# Select columns to view
119
129
select(Phase, Phase_l)
120
130
```
121
131
@@ -137,7 +147,7 @@ seurat_obj <- seurat_obj |>
137
147
seurat_obj |> select(sample)
138
148
```
139
149
140
-
We could use tidyverse `unite` to combine columns, for example to create a new column for sample id combining the sample and BCB columns.
150
+
We could use tidyverse `unite` to combine columns, for example to create a new column for sample id that combines the sample and patient identifier (BCB) columns.
It was also possible to visualise the cells as a 3D plot using plotly.
409
-
The example data used here only contains a few genes, for the sake of time and size in this demonstration, but below is how you could generate the 3 dimensions needed for 3D plot with a full dataset.
420
+
As a final note, it's also possible to do complex and powerful things in a simple way, due to the integration of the tidy transcriptomics packages with the tidy universe. As one example, we can visualise the cells as a 3D plot using plotly.
421
+
422
+
The example data we've been using only contains a few genes, for the sake of time and size in this demonstration, but below is how you could generate the 3 dimensions needed for 3D plot with a full dataset.
0 commit comments