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

Commit 5e41305

Browse files
committed
Use <- instead of = for consistency
1 parent 0e46060 commit 5e41305

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vignettes/tidytranscriptomics_case_study.Rmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,22 +387,22 @@ For comparison, we show the alternative using base R and Seurat
387387

388388
```{r eval = FALSE}
389389
390-
counts_positive =
390+
counts_positive <-
391391
GetAssayData(seurat_obj, assay="SCT")[c("CD3D", "TRDC", "TRGC1", "TRGC2"),] |>
392392
colSums() |>
393393
scales::rescale(to=c(0,1))
394394
395-
counts_negative =
395+
counts_negative <-
396396
GetAssayData(seurat_obj, assay="SCT")[c("CD8A", "CD8B"),] |>
397397
colSums() |>
398398
scales::rescale(to=c(0,1))
399399
400-
seurat_obj$signature_score = counts_positive - counts_negative
400+
seurat_obj$signature_score <- counts_positive - counts_negative
401401
402-
p = FeaturePlot(seurat_obj, features = "signature_score")
402+
p <- FeaturePlot(seurat_obj, features = "signature_score")
403403
404404
# This is not reproducible (in contrast to tidygate)
405-
seurat_obj$within_gate = colnames(seurat_obj) %in% CellSelector(plot = p)
405+
seurat_obj$within_gate <- colnames(seurat_obj) %in% CellSelector(plot = p)
406406
407407
seurat_obj |>
408408
subset(within_gate == TRUE) |>
@@ -429,7 +429,7 @@ single_cell_object |>
429429
We'll demonstrate creating a 3D plot using some data that has 3 UMAP dimensions.
430430

431431
```{r umap plot 2, message = FALSE, warning = FALSE}
432-
pbmc = iscb2022tidytranscriptomics::seurat_obj_UMAP3
432+
pbmc <- iscb2022tidytranscriptomics::seurat_obj_UMAP3
433433
434434
pbmc |>
435435

0 commit comments

Comments
 (0)