Skip to content

Commit

Permalink
Merge pull request #805 from AlexsLemonade/sjspielman/804-update-read10x
Browse files Browse the repository at this point in the history
Keep column names when reading in 10x data
  • Loading branch information
sjspielman authored Nov 18, 2024
2 parents 480923d + 01f782d commit 9724471
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scRNA-seq-advanced/01-read_filter_normalize_scRNA.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ Some of these functions for other common data formats are discussed in [Chapter

```{r read SCE, live=TRUE}
# read SCE from matrix directory
raw_sce <- DropletUtils::read10xCounts(raw_matrix_dir)
raw_sce <- DropletUtils::read10xCounts(
raw_matrix_dir,
# ensure barcodes are set as column names in the SCE object
col.names = TRUE
)
```

Let's look at the contents of the object after reading it in:
Expand Down
6 changes: 5 additions & 1 deletion scRNA-seq/04-dimension_reduction_scRNA.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ Cell Ranger also outputs both filtered and raw matrices; today we will start wit
![Roadmap: Preprocessing and Import](diagrams/roadmap_single_preprocess_alevin.png)

```{r read10x, live = TRUE}
hodgkins_sce <- DropletUtils::read10xCounts(raw_matrix_dir)
hodgkins_sce <- DropletUtils::read10xCounts(
raw_matrix_dir,
# ensure barcodes are set as column names in the SCE object
col.names = TRUE
)
```

How many potential cells are there here?
Expand Down

0 comments on commit 9724471

Please sign in to comment.