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

Commit 7501f03

Browse files
committed
add prostate atlas
1 parent 626e0a9 commit 7501f03

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: CuratedAtlasQueryR
33
Title: Queries the Human Cell Atlas
4-
Version: 1.3.7
4+
Version: 1.4.7
55
Authors@R: c(
66
person(
77
"Stefano",
@@ -126,7 +126,7 @@ biocViews:
126126
Transcription,
127127
Transcriptomics
128128
Encoding: UTF-8
129-
RoxygenNote: 7.3.1
129+
RoxygenNote: 7.3.2
130130
LazyDataCompression: xz
131131
URL: https://github.com/stemangiola/CuratedAtlasQueryR
132132
BugReports: https://github.com/stemangiola/CuratedAtlasQueryR/issues

R/metadata.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ cache <- rlang::env(
1010
)
1111

1212
#' Returns the URLs for all metadata files
13-
#' @param databases A character vector specifying the names of the metadata files. Default is c("metadata.0.2.3.parquet", "fibrosis.0.2.3.parquet")
13+
#' @param databases A character vector specifying the names of the metadata files.
14+
#' Default is c("metadata.0.2.3.parquet", "fibrosis.0.2.3.parquet", "prostate.0.1.0.parquet")
1415
#' @export
1516
#' @return A character vector of URLs to parquet files to download
1617
#' @examples
@@ -20,7 +21,8 @@ cache <- rlang::env(
2021
#' immune system across age, sex and ethnicity." bioRxiv (2023): 2023-06.
2122
#' doi:10.1101/2023.06.08.542671.
2223
#' @source [Mangiola et al.,2023](https://www.biorxiv.org/content/10.1101/2023.06.08.542671v3)
23-
get_database_url <- function(databases = c("metadata.0.2.3.parquet", "fibrosis.0.2.3.parquet")) {
24+
get_database_url <- function(databases = c("metadata.0.2.3.parquet", "fibrosis.0.2.3.parquet",
25+
"prostate.0.1.0.parquet")) {
2426
glue::glue(
2527
"https://object-store.rc.nectar.org.au/v1/AUTH_06d6e008e3e642da99d806ba3ea629c5/metadata/{databases}")
2628
}

man/get_database_url.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-query.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,16 @@ test_that("get_pseudobulk() syncs appropriate fixed file", {
253253
expect_gt(1)
254254
})
255255

256+
test_that("get_single_cell_experiment() syncs prostate atlas", {
257+
temp <- tempfile()
258+
# A sample from prostate atlas
259+
sample <- "GSM4089151"
260+
meta <- get_metadata(cache_directory = temp) |> filter(sample_ == sample)
261+
sce <- meta |> get_single_cell_experiment(cache_directory = temp)
262+
sce |>
263+
row.names() |>
264+
length() |>
265+
expect_gt(1)
266+
})
267+
256268

0 commit comments

Comments
 (0)