| AbstractWrapper | R Documentation |
Abstract class representing a local dataset object in a Vitessce dataset.
Abstract dataset object wrapper class
out_dirThe directory for processed output files.
use_cacheIf converted output files already exist, should they be used?
is_remoteIs the data object fully remote?
routesA list of VitessceConfigServerRoute objects.
file_def_creatorsA list of file definition creator functions.
base_dirThe base directory for local data.
new()Create an abstract wrapper around a data object.
AbstractWrapper$new(out_dir = NA, use_cache = FALSE)
out_dirThe directory for processed output files.
use_cacheIf 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_uidA unique identifier for this dataset.
obj_iWithin the dataset, the index of this data wrapper object.
base_dirPath 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_urlA 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_uidThe ID for this dataset.
obj_iThe 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_urlThe base URL on which the web server is serving.
dataset_uidThe ID for this dataset.
obj_iThe index of this data object within the dataset.
local_dir_pathThe path to the local directory.
local_dir_uidA 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_urlThe base URL on which the web server is serving.
dataset_uidThe ID for this dataset.
obj_iThe index of this data object within the dataset.
local_file_pathThe path to the local file.
local_file_uidA 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_uidThe ID for this dataset.
obj_iThe index of this data object within the dataset.
local_dir_pathThe path to the local directory.
local_dir_uidA 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_uidThe ID for this dataset.
obj_iThe index of this data object within the dataset.
local_file_pathThe path to the local file.
local_file_uidA 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_urlThe base URL on which the web server is serving.
dataset_uidThe ID for this dataset.
obj_iThe 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_urlThe base URL on which the web server is serving.
suffixThe 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_uidThe ID for this dataset.
obj_iThe 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_uidThe ID for this dataset.
obj_iThe 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)
vcA VitessceConfig instance to configure.
clone()The objects of this class are cloneable with this method.
AbstractWrapper$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.