Skip to content

Commit

Permalink
update vignettes and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Sep 17, 2024
1 parent 47c792f commit fc5c134
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Imports:
tidybulk,
glue,
scater,
scran,
batchelor
Suggests:
knitr,
Expand Down
8 changes: 4 additions & 4 deletions vignettes/pseudobulk_transcriptomics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,19 @@ pseudo_bulk_nested =
pseudo_bulk_nested |>
# Identify top significant genes
mutate(top_genes = map_chr(
mutate(top_genes = map(
grouped_summarized_experiment,
~ .x |>
pivot_transcript() |>
arrange(pvalue) |>
head(1) |>
pull(.feature)
dplyr::slice(1:10) |>
pull(.feature)
)) |>
# Filter top gene
mutate(grouped_summarized_experiment = map2(
grouped_summarized_experiment, top_genes,
~ filter(.x, .feature == .y)
~ .x |> filter(.feature %in% .y)
))
pseudo_bulk_nested
Expand Down
4 changes: 2 additions & 2 deletions vignettes/solutions_transcriptomics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ seurat_obj |>
mutate(gamma_delta = signature_score > 0.7) |>
dplyr::count(gamma_delta) |>
summarise(proportion = n/sum(n))
count(gamma_delta) |>
metate(proportion = n/sum(n))
```

## Question 2
Expand Down
2 changes: 1 addition & 1 deletion vignettes/spatial_bioconductor_transcriptomics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ The gated cells can then be divided into pseudobulks within a SummarizedExperime
```{r , eval=FALSE}
spe_regions_aggregated <-
spatial_data |>
aggregate_cells(c(.gated))
aggregate_cells(.gated)
spe_regions_aggregated
```
Expand Down

0 comments on commit fc5c134

Please sign in to comment.