-
Notifications
You must be signed in to change notification settings - Fork 63
Data Import
You can currently provide data to UpSet through a publicly available dataset and a simple description file, which also must be publicly available.
UpSet uses a binary encoding for the sets. Here is a simple example, with Sets A, B and C, and three elements in the rows (R1, R2, R3):
Row;A;B;C
R1;1;0;0
R2;0;1;0
R3;0;0;1
You can download this file here.
To make upset understand this data format you have to provide a simple JSON file. The configuration file for the above dataset is as simple as this:
{
"file": "data/test/test.csv",
"name": "Test",
"header": 0,
"separator": ";",
"skip": 0,
"meta": [
{ "type": "id", "index": 0, "name": "Name" }
],
"sets": [
{ "format": "binary", "start": 1, "end": 3 }
]
}
Here, file
describes the path to the data file. This path typically should be a globally accessible URL, such as https://dl.dropboxusercontent.com/u/36962787/UpSet/movies.json
Specimen,IO,PG,SUV,PB,RN,PRN,PAG,SPVi,LRN,GRN,IRN,V,III,XII,MRN,ECU,IntAProp,IcgsProp,IntPProp,LNProp,MNProp,PBProp,SUVProp,YProp,LAVProp Sp1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1.0,0,0,0,0,0,0,0,0 Sp2,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0.84,0.15,0,0.0047,0,0,0,0,0 Sp3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0.82,0.13,0.011,0,0.0033,0.0050,0.03,0,0 Sp4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.68,0.13,0.012,0.013,0,0.028,0.077,0.021,0.043 Sp5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.63,0.16,0.14,0,0.015,0,0.055,0,0 Sp6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0.59,0.32,0.0095,0.0063,0.016,0.0016,0.057,0.0032,0