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

Commit e9c30e4

Browse files
authored
Merge pull request #49 from stemangiola/update-readme-vignette
add direct dependency and simplify code
2 parents 5c8adff + e59beea commit e9c30e4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

vignettes/readme.Rmd

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ Explore the HCA content
3434

3535
```{r}
3636
get_metadata() |>
37-
distinct(tissue, file_id) |>
38-
count(tissue) |>
39-
arrange(desc(n))
37+
distinct(tissue, file_id)
4038
```
4139

4240
Query raw counts
@@ -45,7 +43,7 @@ Query raw counts
4543
library(stringr)
4644
sce <-
4745
get_metadata() |>
48-
filter(
46+
dplyr::filter(
4947
ethnicity == "African" &
5048
str_like(assay, "%10x%") &
5149
tissue == "lung parenchyma" &
@@ -61,7 +59,7 @@ Query counts scaled per million. This is helpful if just few genes are of intere
6159
```{r}
6260
sce <-
6361
get_metadata() |>
64-
filter(
62+
dplyr::filter(
6563
ethnicity == "African" &
6664
str_like(assay, "%10x%") &
6765
tissue == "lung parenchyma" &
@@ -76,7 +74,7 @@ Extract only a subset of genes:
7674

7775
```{r}
7876
get_metadata() |>
79-
filter(
77+
dplyr::filter(
8078
ethnicity == "African" &
8179
str_like(assay, "%10x%") &
8280
tissue == "lung parenchyma" &
@@ -89,14 +87,15 @@ Extract the counts as a Seurat object:
8987

9088
```{r}
9189
get_metadata() |>
92-
filter(
90+
dplyr::filter(
9391
ethnicity == "African" &
9492
str_like(assay, "%10x%") &
9593
tissue == "lung parenchyma" &
9694
str_like(cell_type, "%CD4%")
9795
) |>
9896
get_seurat()
9997
```
98+
10099
```{r}
101100
sessionInfo()
102101
```

0 commit comments

Comments
 (0)