Class representing a dataset in a Vitessce view config.
Methods
Method add_file()
Add a file to this dataset.
Arguments
url
The URL to the file.
data_type
The data type for the file.
file_type
The file type for the file.
options
Optional. An options list for the file.
Examples
base_url <- "http://localhost:8000/"
vc <- VitessceConfig$new("My config")
dataset <- vc$add_dataset("My dataset")$add_file(
url = paste0(base_url, "cells.json"),
data_type = DataType$CELLS,
file_type = FileType$CELLS_JSON
)
Method get_routes()
Get a list of web server route objects corresponding to any local files which will need to be served.
Examples
## ------------------------------------------------
## Method `VitessceConfigDataset$add_file`
## ------------------------------------------------
base_url <- "http://localhost:8000/"
vc <- VitessceConfig$new("My config")
dataset <- vc$add_dataset("My dataset")$add_file(
url = paste0(base_url, "cells.json"),
data_type = DataType$CELLS,
file_type = FileType$CELLS_JSON
)