R/helpers.R
LoadBridgeReference.RdRead in a precomputed extended reference. This function can
read either from URLs or a file path. The function looks for a file
called ext.Rds for the extended reference Seurat object
LoadBridgeReference(path, seconds = 10L)Path or URL to the RDS file
Timeout to check for URLs in seconds
A list with two entries:
mapThe extended reference Seurat
object
plotThe reference Seurat object (for plotting)
if (FALSE) {
# Load from a URL
ref <- LoadBridgeReference("https://seurat.nygenome.org/references/pbmc")
# Load a file from the path to a directory
ref2 <- LoadBridgeReference("path/")
# Load a file directly
ref3 <- LoadBridgeReference("ext.Rds")
}