Class representing a dataset in a Vitessce view config.
Methods
Method new()
Create a new dataset object.
Usage
VitessceConfigDataset$new(uid, name, base_dir = NA)
Method add_file()
Add a file to this dataset.
Usage
VitessceConfigDataset$add_file(
url = NA,
file_type = NA,
options = NA,
coordination_values = NA,
data_type = NA
)
Arguments
url
The URL to the file.
file_type
The file type for the file.
options
Optional. An options list for the file.
data_type
The data type for the file.
Examples
base_url <- "http://localhost:8000/"
vc <- VitessceConfig$new(schema_version = "1.0.16", name = "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(schema_version = "1.0.16", name = "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
)