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

Commit 4ee5c7c

Browse files
authored
Merge pull request #76 from stemangiola/rcmdcheck-2
R CMD check
2 parents e56c95a + dde7b20 commit 4ee5c7c

File tree

5 files changed

+35
-32
lines changed

5 files changed

+35
-32
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,4 @@ LazyDataCompression: xz
126126
URL: https://github.com/stemangiola/CuratedAtlasQueryR
127127
BugReports: https://github.com/stemangiola/CuratedAtlasQueryR/issues
128128
VignetteBuilder: knitr
129+
Roxygen: list(markdown = TRUE)

R/query.R

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ assay_map <- c(
1313
REMOTE_URL <- "https://swift.rc.nectar.org.au/v1/AUTH_06d6e008e3e642da99d806ba3ea629c5/harmonised-human-atlas"
1414
COUNTS_VERSION <- "0.2"
1515

16-
#' Given a data frame of HCA metadata, returns a SingleCellExperiment object
17-
#' corresponding to the samples in that data frame
16+
#' Gets a SingleCellExperiment from curated metadata
17+
#'
18+
#' Given a data frame of Curated Atlas metadata obtained from [get_metadata()],
19+
#' returns a [`SingleCellExperiment::SingleCellExperiment-class`] object corresponding to the samples in that
20+
#' data frame
1821
#'
1922
#' @param data A data frame containing, at minimum, a `.sample` column, which
2023
#' corresponds to a single cell sample ID. This can be obtained from the
2124
#' [get_metadata()] function.
22-
#' @param assays A character vector whose elements must be either "counts" and/or
23-
#' "cpm", representing the corresponding assay(s) you want to request.
25+
#' @param assays A character vector whose elements must be either "counts"
26+
#' and/or "cpm", representing the corresponding assay(s) you want to request.
2427
#' @param repository A character vector of length one. If provided, it should be
2528
#' an HTTP URL pointing to the location where the single cell data is stored.
2629
#' @param cache_directory An optional character vector of length one. If
@@ -52,7 +55,7 @@ COUNTS_VERSION <- "0.2"
5255
#'
5356
#' @export
5457
#'
55-
#'
58+
#'
5659
get_SingleCellExperiment <- function(
5760
data,
5861
assays = c("counts", "cpm"),
@@ -335,10 +338,12 @@ get_seurat <- function(...) {
335338
get_SingleCellExperiment(...) |> as.Seurat(data = NULL)
336339
}
337340

341+
#' Gets the Curated Atlas metadata as a data frame.
342+
#'
338343
#' Downloads a parquet database of the Human Cell Atlas metadata to a local
339344
#' cache, and then opens it as a data frame. It can then be filtered and
340345
#' passed into [get_SingleCellExperiment()]
341-
#' to obtain a [`SingleCellExperiment`](SingleCellExperiment::SingleCellExperiment-class)
346+
#' to obtain a [`SingleCellExperiment::SingleCellExperiment-class`]
342347
#'
343348
#' @param remote_url Optional character vector of length 1. An HTTP URL pointing
344349
#' to the location of the parquet database.

man/get_SingleCellExperiment.Rd

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

man/get_metadata.Rd

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

man/get_seurat.Rd

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

0 commit comments

Comments
 (0)