Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility with spaceranger 2.0 #6208

Merged
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: Seurat
Version: 4.1.1.9002
Date: 2022-06-17
Version: 4.1.1.9003
Date: 2022-07-19
Title: Tools for Single Cell Genomics
Description: A toolkit for quality control, analysis, and exploration of single cell RNA sequencing data. 'Seurat' aims to enable users to identify and interpret sources of heterogeneity from single cell transcriptomic measurements, and to integrate diverse types of single cell data. See Satija R, Farrell J, Gennert D, et al (2015) <doi:10.1038/nbt.3192>, Macosko E, Basu A, Satija R, et al (2015) <doi:10.1016/j.cell.2015.05.002>, Stuart T, Butler A, et al (2019) <doi:10.1016/j.cell.2019.05.031>, and Hao, Hao, et al (2020) <doi:10.1101/2020.10.12.335331> for more details.
Authors@R: c(
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Fix legend color in `DoHeatmap()` ([#5783](https://github.com/satijalab/seurat/issues/5783))
- Fix bug in `ScaleData()` when regressing out one gene ([#5970](https://github.com/satijalab/seurat/pull/5970))
- Fix name pulling in `PlotPerturbScore()` ([#6081](https://github.com/satijalab/seurat/pull/6081))
- Support spaceranger 2.0 ([#6208](https://github.com/satijalab/seurat/pull/6208))

# Seurat 4.1.1 (2022-05-01)

Expand Down
9 changes: 7 additions & 2 deletions R/preprocessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -1015,10 +1015,15 @@ Read10X_h5 <- function(filename, use.names = TRUE, unique.features = TRUE) {
Read10X_Image <- function(image.dir, image.name = "tissue_lowres_image.png", filter.matrix = TRUE, ...) {
image <- readPNG(source = file.path(image.dir, image.name))
scale.factors <- fromJSON(txt = file.path(image.dir, 'scalefactors_json.json'))
tissue.positions.path <- Sys.glob(paths = file.path(image.dir, 'tissue_positions*'))
tissue.positions <- read.csv(
file = file.path(image.dir, 'tissue_positions_list.csv'),
file = tissue.positions.path,
col.names = c('barcodes', 'tissue', 'row', 'col', 'imagerow', 'imagecol'),
header = FALSE,
header = ifelse(
test = basename(tissue.positions.path) == "tissue_positions.csv",
yes = TRUE,
no = FALSE
),
as.is = TRUE,
row.names = 1
)
Expand Down