Skip to contents

Load reference spectra from file or cache

Usage

load_reference(reference, cache_dir = NULL, verbose = TRUE)

Arguments

reference

Either a reference name (e.g., "TCAT.V1") or path to a reference file (.tsv/.txt)

cache_dir

Directory to cache references

verbose

Print progress messages

Value

A list containing:

  • spectra: Reference spectra matrix (programs x genes)

  • score_data: Score definitions (if available)

  • score_path: Path to score file (if available)

  • ref_name: Reference name

Examples

if (FALSE) { # \dontrun{
ref <- load_reference("TCAT.V1")
dim(ref$spectra)
} # }