Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scRNA-seq-advanced/05-aucell.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,21 @@ ewing_gene_set_collection <- ewing_gene_set_names |>
sce <- readr::read_rds(sce_file)
```

Our object includes counts for all genes that were present in the index when quantifying gene expression.
There are a number of genes that are present in the object but not detected in any of the cells.
We don't want genes that are not found in our data set to impact our rankings, so let's remove them.

```{r, filter_sce}
# remove genes that are not detected in any of the cells from the SCE object
genes_to_keep <- rowData(sce)$detected > 0
sce <- sce[genes_to_keep, ]
```


The `AUCell` functions takes an expression matrix with genes as rows and cells as column.
We can extract a counts matrix in sparse format for use with `AUCell`.


```{r counts_matrix}
# Extract counts matrix
counts_matrix <- counts(sce)
Expand Down