AbstractWrapper | R Documentation |
Abstract class representing a local dataset object in a Vitessce dataset.
Abstract dataset object wrapper class
out_dir
The directory for processed output files.
use_cache
If converted output files already exist, should they be used?
is_remote
Is the data object fully remote?
routes
A list of VitessceConfigServerRoute
objects.
file_def_creators
A list of file definition creator functions.
base_dir
The base directory for local data.
new()
Create an abstract wrapper around a data object.
AbstractWrapper$new(out_dir = NA, use_cache = FALSE)
out_dir
The directory for processed output files.
use_cache
If converted output files already exist, should they be used? By default, FALSE.
A new AbstractWrapper
object.
convert_and_save()
Fill in the file_def_creators array. Each function added to this list should take in a base URL and generate a Vitessce file definition. If this wrapper is wrapping local data, then create routes and fill in the routes array. This method is void, should not return anything.
AbstractWrapper$convert_and_save(dataset_uid, obj_i, base_dir = NA)
dataset_uid
A unique identifier for this dataset.
obj_i
Within the dataset, the index of this data wrapper object.
base_dir
Path to a base directory.
get_routes()
Obtain the routes that have been created for this wrapper class.
AbstractWrapper$get_routes()
A list of server routes.
get_file_defs()
Obtain the file definitions for this wrapper class.
AbstractWrapper$get_file_defs(base_url)
base_url
A base URL to prepend to relative URLs.
A list of server routes.
get_out_dir_route()
Create a web server route for this object.
AbstractWrapper$get_out_dir_route(dataset_uid, obj_i)
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
A new VitessceConfigServerStaticRoute
instance.
get_local_dir_url()
Construct a URL to a local directory.
AbstractWrapper$get_local_dir_url( base_url, dataset_uid, obj_i, local_dir_path, local_dir_uid )
base_url
The base URL on which the web server is serving.
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
local_dir_path
The path to the local directory.
local_dir_uid
A unique identifier for this local directory in this dataset.
A string for the URL.
get_local_file_url()
Construct a URL to a local file.
AbstractWrapper$get_local_file_url( base_url, dataset_uid, obj_i, local_file_path, local_file_uid )
base_url
The base URL on which the web server is serving.
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
local_file_path
The path to the local file.
local_file_uid
A unique identifier for this local file in this dataset.
A string for the URL.
get_local_dir_route()
Create a web server route for this object.
AbstractWrapper$get_local_dir_route( dataset_uid, obj_i, local_dir_path, local_dir_uid )
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
local_dir_path
The path to the local directory.
local_dir_uid
A unique identifier for this local directory in this dataset.
A new VitessceConfigServerStaticRoute
instance.
get_local_file_route()
Create a web server route for this object.
AbstractWrapper$get_local_file_route( dataset_uid, obj_i, local_file_path, local_file_uid )
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
local_file_path
The path to the local file.
local_file_uid
A unique identifier for this local file in this dataset.
A new VitessceConfigServerFileRoute
instance.
get_url()
Create a local web server URL for a dataset object.
AbstractWrapper$get_url(base_url, dataset_uid, obj_i, ...)
base_url
The base URL on which the web server is serving.
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
...
Passes extra arguments to get_route_str
A URL as a string.
get_url_simple()
Construct a URL.
AbstractWrapper$get_url_simple(base_url, suffix)
base_url
The base URL on which the web server is serving.
suffix
The suffix to append to the base URL.
A URL as a string like base_url/suffix
get_route_str()
Create a string representing a web server route path (the part following the base URL).
AbstractWrapper$get_route_str(dataset_uid, obj_i, ...)
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
...
Pastes extra arguments together after obj_i
, separated by slash.
A path as a string.
get_out_dir()
Create a directory path to a dataset within the base output directory.
AbstractWrapper$get_out_dir(dataset_uid, obj_i, ...)
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
...
Passes extra arguments to file.path
A path as a string.
auto_view_config()
Automatically configure views for a particular dataset.
AbstractWrapper$auto_view_config(vc)
vc
A VitessceConfig
instance to configure.
clone()
The objects of this class are cloneable with this method.
AbstractWrapper$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.