@@ -13,14 +13,17 @@ assay_map <- c(
1313REMOTE_URL <- " https://swift.rc.nectar.org.au/v1/AUTH_06d6e008e3e642da99d806ba3ea629c5/harmonised-human-atlas"
1414COUNTS_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+ # '
5659get_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.
0 commit comments