Skip to content

Commit d03b1d3

Browse files
committed
add: species and session count to paracoord
1 parent 01527bd commit d03b1d3

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

docs/metasearch.js

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ d3.csv('data/phenotype_mri.csv', function (data) {
1111
});
1212
dataset = data;
1313

14-
dimensionObj = {"project": {"index": 1},
15-
"site_id": {"index": 2},
16-
"sex": {"index": 3},
17-
"diagnosis": {"index": 4},
18-
"age": {"index": 5},
19-
"handedness": {"index": 6},
20-
"full iq": {"index": 7},
21-
"performance iq": {"index": 8},
22-
"verbal iq": {"index": 9},
23-
"MRI": {"index": 0}}
14+
dimensionObj = {
15+
"MRI": {"index": 0},
16+
"project": {"index": 1},
17+
"site_id": {"index": 2},
18+
"sex": {"index": 3},
19+
"diagnosis": {"index": 4},
20+
"age": {"index": 5},
21+
"handedness": {"index": 6},
22+
"full_iq": {"index": 7},
23+
"performance_iq": {"index": 8},
24+
"verbal_iq": {"index": 9},
25+
"species": {"index": 10},
26+
"session_count": {"index": 11}
27+
};
2428

2529
parcoords = d3.parcoords()("#filter")
2630
.data(data)
@@ -46,7 +50,7 @@ d3.csv('data/phenotype_mri.csv', function (data) {
4650
// setting up grid
4751
var column_keys = d3.keys(data[0]);
4852
column_keys = ['project', 'site_id', 'participant_id', 'diagnosis',
49-
'sex', 'age', 'MRIs']
53+
'sex', 'age', 'MRIs'];
5054
var linkformatter = function(row, cell, value, columnDef, dataContext) {
5155
if (value == ''){
5256
return '';

0 commit comments

Comments
 (0)