Skip to content

Commit

Permalink
Merge pull request satijalab#6208 from stephenwilliams22/stephen/spac…
Browse files Browse the repository at this point in the history
…eranger2.0

compatibility with spaceranger 2.0
  • Loading branch information
mojaveazure authored Jul 19, 2022
2 parents bba46ff + 857fdf1 commit 9bb1fa7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
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

0 comments on commit 9bb1fa7

Please sign in to comment.