CsvWrapper | R Documentation |
Class representing a CSV file in a Vitessce dataset.
CSV file wrapper class
vitessceR::AbstractWrapper
-> CsvWrapper
csv_path
The object to wrap.
csv_url
The object to wrap.
local_csv_uid
The path to the local zarr store.
data_type
The Vitessce data type for this file.
options
A list of options to pass to the Vitessce file definition.
coordination_values
A list of coordination values to pass to the Vitessce file definition.
request_init
A list of requestInit values to pass to fetch when loading the CSV over HTTP.
vitessceR::AbstractWrapper$auto_view_config()
vitessceR::AbstractWrapper$get_file_defs()
vitessceR::AbstractWrapper$get_local_dir_route()
vitessceR::AbstractWrapper$get_local_dir_url()
vitessceR::AbstractWrapper$get_local_file_route()
vitessceR::AbstractWrapper$get_local_file_url()
vitessceR::AbstractWrapper$get_out_dir()
vitessceR::AbstractWrapper$get_out_dir_route()
vitessceR::AbstractWrapper$get_route_str()
vitessceR::AbstractWrapper$get_routes()
vitessceR::AbstractWrapper$get_url()
vitessceR::AbstractWrapper$get_url_simple()
new()
Create a wrapper around a CSV file.
CsvWrapper$new( csv_path = NA, csv_url = NA, data_type = NA, options = NA, coordination_values = NA, request_init = NA, ... )
csv_path
The path to a local CSV file.
csv_url
The URL to a remote CSV file.
data_type
The Vitessce data type for this file.
options
A list of options to pass to the Vitessce file definition.
coordination_values
A list of coordination values to pass to the Vitessce file definition.
request_init
A list of requestInit values to pass to fetch when loading the CSV over HTTP.
...
Parameters inherited from AbstractWrapper
.
A new CsvWrapper
object.
convert_and_save()
Create the JSON output files, web server routes, and file definition creators.
CsvWrapper$convert_and_save(dataset_uid, obj_i, base_dir = NA)
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
base_dir
A base directory for local data.
make_routes()
Get a list of server route objects.
CsvWrapper$make_routes(dataset_uid, obj_i)
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
get_csv_url()
Get the URL to the Zarr store, to fill in the file URL in the file definitions.
CsvWrapper$get_csv_url(base_url, dataset_uid, obj_i)
base_url
The base URL, on which the route will be served.
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
A URL as a string.
make_file_def_creator()
Make the file definition creator function for the cells data type.
CsvWrapper$make_file_def_creator(dataset_uid, obj_i)
dataset_uid
The ID for this dataset.
obj_i
The index of this data object within the dataset.
A file definition creator function which takes a base_url
parameter.
clone()
The objects of this class are cloneable with this method.
CsvWrapper$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.