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

Commit af9edc3

Browse files
committed
update docs adding cache issue
1 parent 3ceaeaa commit af9edc3

File tree

5 files changed

+39
-10
lines changed

5 files changed

+39
-10
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ importFrom(S4Vectors,DataFrame)
1414
importFrom(SeuratObject,as.Seurat)
1515
importFrom(SeuratObject,as.sparse)
1616
importFrom(SingleCellExperiment,SingleCellExperiment)
17-
importFrom(SingleCellExperiment,simplifyToSCE)
17+
importFrom(SingleCellExperiment,combineCols)
1818
importFrom(SummarizedExperiment,"assayNames<-")
1919
importFrom(SummarizedExperiment,"colData<-")
2020
importFrom(SummarizedExperiment,colData)

R/query.R

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ COUNTS_VERSION <- "0.2"
1919
#' returns a [`SingleCellExperiment::SingleCellExperiment-class`] object corresponding to the samples in that
2020
#' data frame
2121
#'
22-
#' @param data A data frame containing, at minimum, a `.sample` column, which
22+
#' @param data A data frame containing, at minimum, a `sample_` column, which
2323
#' corresponds to a single cell sample ID. This can be obtained from the
2424
#' [get_metadata()] function.
2525
#' @param assays A character vector whose elements must be either "counts"
@@ -397,11 +397,11 @@ get_seurat <- function(...) {
397397
#'
398398
#' Sample-specific columns (definitions available at cellxgene.cziscience.com)
399399
#'
400-
#' `.sample`, `.sample_name`, `age_days`, `assay`, `assay_ontology_term_id`, `development_stage`, `development_stage_ontology_term_id`, `ethnicity`, `ethnicity_ontology_term_id`, `experiment___`, `organism`, `organism_ontology_term_id`, `sample_placeholder`, `sex`, `sex_ontology_term_id`, `tissue`, `tissue_harmonised`, `tissue_ontology_term_id`, `disease`, `disease_ontology_term_id`, `is_primary_data.x`
400+
#' `sample_`, `.sample_name`, `age_days`, `assay`, `assay_ontology_term_id`, `development_stage`, `development_stage_ontology_term_id`, `ethnicity`, `ethnicity_ontology_term_id`, `experiment___`, `organism`, `organism_ontology_term_id`, `sample_placeholder`, `sex`, `sex_ontology_term_id`, `tissue`, `tissue_harmonised`, `tissue_ontology_term_id`, `disease`, `disease_ontology_term_id`, `is_primary_data.x`
401401
#'
402402
#' Cell-specific columns (definitions available at cellxgene.cziscience.com)
403403
#'
404-
#' `.cell`, `cell_type`, `cell_type_ontology_term_idm`, `cell_type_harmonised`, `confidence_class`, `cell_annotation_azimuth_l2`, `cell_annotation_blueprint_singler`
404+
#' `cell_`, `cell_type`, `cell_type_ontology_term_idm`, `cell_type_harmonised`, `confidence_class`, `cell_annotation_azimuth_l2`, `cell_annotation_blueprint_singler`
405405
#'
406406
#' Through harmonisation and curation we introduced custom column, not present in the original CELLxGENE metadata
407407
#'
@@ -414,9 +414,24 @@ get_seurat <- function(...) {
414414
#' - `cell_annotation_blueprint_monaco`: SingleR cell annotation using Monaco reference
415415
#' - `sample_id_db`: Sample subdivision for internal use
416416
#' - `file_id_db`: File subdivision for internal use
417-
#' - `.sample`: Sample ID
417+
#' - `sample_`: Sample ID
418418
#' - `.sample_name`: How samples were defined
419419
#'
420+
#'
421+
#' **Possible cache path issues**
422+
#'
423+
#' If your default R cache path includes non-standard characters (e.g. dash because of your user or organisation name), the following error can manifest
424+
#'
425+
#' Error in `db_query_fields.DBIConnection()`:
426+
#' ! Can't query fields.
427+
#' Caused by error:
428+
#' ! Parser Error: syntax error at or near "/"
429+
#' LINE 2: FROM /Users/bob/Library/Cach...
430+
#'
431+
#' The solution is to choose a different cache, for example
432+
#'
433+
#' get_metadata(cache_directory = path.expand('~'))
434+
#'
420435
get_metadata <- function(
421436
remote_url = "https://object-store.rc.nectar.org.au/v1/AUTH_06d6e008e3e642da99d806ba3ea629c5/metadata/metadata.0.2.3.parquet",
422437
cache_directory = get_default_cache_dir()

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.

man/get_metadata.Rd

Lines changed: 17 additions & 3 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: 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)