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

[r] use new SOMATileDBContext$context() accessor #357

Merged
merged 2 commits into from
Apr 6, 2023
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
2 changes: 1 addition & 1 deletion api/r/cellxgene.census/R/open.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ open_soma <- function(census_version = "latest", uri = NULL, tiledbsoma_ctx = NU
} else {
# FIXME: we should use something like SOMATileDBContext$replace() (yet to
# exist) in case the user context has other important fields besides config
cfg <- as.vector(tiledb::config(tiledbsoma_ctx$get_tiledb_context()))
cfg <- as.vector(tiledb::config(tiledbsoma_ctx$context()))
if (!is.null(s3_region)) {
cfg["vfs.s3.region"] <- s3_region
}
Expand Down
16 changes: 5 additions & 11 deletions api/r/cellxgene.census/R/source_h5ad.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ get_source_h5ad_uri <- function(dataset_id, census_version = "latest") {
)
)

# FIXME execution of value_filter:
# Error: Currently unsupported type: UTF8
# dataset <- as.data.frame(
# census$get("census_info")$get("datasets")$read(
# value_filter=paste("dataset_id == '", dataset_id, "'", sep="")
# ))
# should replace retrieving the entire datasets dataframe:
dataset <- as.data.frame(census$get("census_info")$get("datasets")$read(
column_names = c("dataset_id", "dataset_h5ad_path")
))
dataset <- dataset[dataset$dataset_id == dataset_id, ]
dataset <- as.data.frame(
census$get("census_info")$get("datasets")$read(
value_filter = paste("dataset_id == '", dataset_id, "'", sep = "")
)
)
stopifnot("Unknown dataset_id" = nrow(dataset) == 1)
dataset <- as.list(dataset[1, ])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A known-good Cell Census version. This may need updating if the version used
# is withdrawn for any reason.
KNOWN_CENSUS_VERSION <- "2023-02-13"
KNOWN_CENSUS_VERSION <- "2023-04-04"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! This will be less of a problem once have a LTS (5 year) release.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just designate one build to be a "long term test build", give it a tag, and not delete it? I don't think we need a "real" LTS release for this purpose....

KNOWN_CENSUS_URI <- paste(
"s3://cellxgene-data-public/cell-census/",
KNOWN_CENSUS_VERSION,
Expand Down