Properties:
Name | Type | Description |
---|---|---|
dataUtils.data |
Object
|
contains all data per tab |
dataUtils._d3LUTs |
array
|
All options ofr colormaps coming from d3 |
- Source:
Methods
(static) _quadtreeAdd()
Helper function for dataUtils._quadTreeAddAll(), and should therefore not be
called directly outside of that function.
- Source:
(static) _quadtreeAddAll()
Generate a tree of a fixed depth for better memory efficiency when used with
large point datasets. Use instead of d3.quadtree.addAll().
- Source:
(static) _quadtreeSize()
Get the number of points in the tree. Use instead of d3.quadtree.size().
- Source:
(static) createDataset(uid, options)
Creates an object inside dataUtils.data so that all options can be grouped by csv
- Source:
Parameters:
Name | Type | Description |
---|---|---|
uid |
String
|
The id of the data group |
options |
Object
|
options that could be used inside, only holds name currently |
(static) createMenuFromCSV(data_id, datumExample)
Fills the necessary input dropdowns with the csv headers so that user can choose them
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data_id |
String
|
The id of the data group like "U234345" |
datumExample |
Object
|
example datum that contains the headers of the csv |
(static) makeQuadTrees()
Create the data_obj[op + "_barcodeGarden"] ("Garden" as opposed to "forest")
To save all the trees per barcode or per key. It is an object so that it is easy to just call
the right tree given the key. It will be created every time the user wants to group by something different,
replacing the previous garden. It might date some time with big datasets, use at your own discretion.
- Source:
(static) processRawData(data_id, data)
created the _processeddata list to be used in rendering
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data_id |
String
|
The id of the data group like "U234345" |
data |
Array
|
data coming from d3 after parsing the csv |
(static) readCSV(data_id, thecsv)
Calls dataUtils.createDataset and loads and parses the csv using D3.
then calls dataUtils.createMenuFromCSV to modify the interface in its own tab
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data_id |
String
|
The id of the data group like "U234345" |
thecsv |
Object
|
csv file path |
(static) readH5(data_id, thecsv)
Calls dataUtils.createDataset and loads and parses the csv using D3.
then calls dataUtils.createMenuFromCSV to modify the interface in its own tab
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data_id |
String
|
The id of the data group like "U234345" |
thecsv |
Object
|
csv file path |
(static) startCSVcascade(event)
Selects a data object and reads a csv and starts the whole process to add it in datautils and the interface.
It can only be associated to a filepicker. It is atomatically listened when created in the interfaceUtils in the change event
- Source:
Parameters:
Name | Type | Description |
---|---|---|
event |
HTMLEvent
|
the event arries the file picker. which MUST have the data id in the begining separated by an "_" |
(static) updateViewOptions(data_id)
Make sure that the options selected are correct an call the necessary functions to process the data so
its ready to be displayed.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data_id |
String
|
The id of the data group like "U234345" |
(static) XHRCSV(thecsv)
This is a function to deal with the request of a csv from a server as opposed to local.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
thecsv |
Object
|
csv file path |