Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 6d5d8a3

Browse files
committed
fix cell id
1 parent d957f46 commit 6d5d8a3

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

R/query.R

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@ get_SingleCellExperiment = function(.data, repository = "/vast/projects/RCP/huma
3434
files_to_read |>
3535
map(~ {
3636
cat(".")
37-
x = loadHDF5SummarizedExperiment(glue("{repository}/{.x}") )
38-
x[,colnames(x) %in% ( raw_data |> pull(.cell) )]
39-
}
40-
)
37+
loadHDF5SummarizedExperiment(glue("{repository}/{.x}") ) |>
38+
inner_join(
39+
raw_data |>
40+
41+
# Needed because cell IDs are not unique outside the file_id or file_id_db
42+
filter(file_id_db == .x),
43+
by=".cell"
44+
)
45+
})
4146

4247
# Harmonise genes
4348
all_genes =

man/get_SingleCellExperiment.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)