Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 33897d9

Browse files
committed
change notes
1 parent b27e7a9 commit 33897d9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

vignettes/tidytranscriptomics_workshop.Rmd

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,11 @@ sce_obj |> filter(Phase == "G1")
161161

162162
We can use `select` to view columns, for example, to see the filename, total cellular RNA abundance and cell phase.
163163

164+
* If we use `select` we will also get any view-only columns returned, such as the UMAP columns generated during the preprocessing.
165+
164166
```{r}
165167
sce_obj |> select(.cell, file, nCount_RNA, Phase)
166168
```
167-
A couple of things to note with `select`
168-
169-
* As we did not output the .cell column we get a tibble instead of a SingleCellExperiment object and a message to let us know: `tidySingleCellExperiment says: Key columns are missing. A data frame is returned for independent data analysis.` This is ok as it's what we want here when viewing the columns.
170-
171-
* If we use `select` to output the .cell (key) column we will also get any view-only columns returned, such as the UMAP columns generated during the preprocessing.
172-
```{r message=FALSE}
173-
sce_obj |> select(.cell, nCount_RNA, Phase)
174-
```
175169

176170
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`.
177171

0 commit comments

Comments
 (0)