-
Notifications
You must be signed in to change notification settings - Fork 4
/
datasets.html
216 lines (188 loc) · 5.39 KB
/
datasets.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<head>
<meta charset="utf-8">
<title>datasets</title>
<link rel="icon" sizes="16x16 32x32" href="/favicon.ico?v=2">
<meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<template name="main">
<div id='large' class='thumbnail-large'></div>
<div id='background'></div>
<!-- Top menu -->
<div class="container site-header">
<div class="row">
<div class="column-6">
<h1 class="title">DataSets</h1>
</div>
<div class="prefix-2 column-3 suffix-1">
<a href='http://codeneuro.org'><img style="margin-top: 18px; width: 350px; max-width: 350px" src="svg/logo.svg"></a>
</div>
</div>
</div>
<!-- Main view -->
<div class="row main">
<!-- Side bar -->
<div class="column-3">
<div class="about">
<div class="row">
<p style="font-style: italic; margin-bottom: 38px">A public resource for curated neural data sets, encouraging collaboration and reproducible research</p>
<p style="font-size: 20px">Cloud-based access to large neural data sets</p>
<i class="fa fa-database fa-2x"></i>
<p style="font-size: 20px">Supporting open analysis development</p>
<i class="fa fa-group fa-2x"></i>
</div>
</div>
</div>
<!-- Browser -->
<div class="column-9">
<div class="browser">
<div class="row">
<div class="column-3">
{{> sourcesColumn}}
</div>
<div class="column-3">
{{> projectsColumn}}
</div>
<div class="column-3">
{{> datasetsColumn}}
</div>
</div>
</div>
</div>
</div>
<hr>
<!-- Lower view -->
<div class="row">
<div class="column-2">
{{> datasetThumbnail}}
</div>
<!-- Info labels -->
<div class="column-2" style="margin-top:10px">
<div class="fields fields-labels">
<div class="row">
<p>Contributors</p>
<p>Location</p>
<p>Animal / Method</p>
<p>Experiment</p>
<p>Dimensions</p>
<p>Contents</p>
</div>
</div>
</div>
<div class="column-8" style="margin-top:10px">
<div class="row">
<!-- Info content -->
<div class="column-4">
<div class="fields">
{{> datasetInfo}}
</div>
</div>
<!-- Get the data -->
<div class="column-4">
<p style="font-size: 150%; margin-top: 7px;">Get the data{{ >question}}{{ >share}}</p>
<div style="margin-top: -3px">
{{> outputMethods}}
</div>
<div class="data">
{{> getData}}
</div>
</div>
</div>
</div>
</div>
</template>
<template name="question">
<a><i class="fa fa-question-circle question"></i></a>
</template>
<template name="share">
{{#if $neq dataset ""}}
<i class="fa fa-share share"></i>
{{/if}}
</template>
<template name="datasetThumbnail">
{{#if $neq dataset ""}}
<img id='thumbnail' class='thumbnail-small' src="{{url}}">
{{/if}}
</template>
<template name="sourcesColumn">
{{#if $neq isLoaded ""}}
<ul class="listing sources">
{{#each sources}}
<li class="directory sources {{selected}}">{{splitSpace name}}</li>
{{/each}}
</ul>
{{else}}
<ul class="listing sources">
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</ul>
{{/if}}
</template>
<template name="projectsColumn">
<ul class="listing projects">
{{#if $neq isLoaded ""}}
{{#each projects}}
<li class="directory projects {{selected}}">{{splitSpace name}}</li>
{{/each}}
{{/if}}
</ul>
</template>
<template name="datasetsColumn">
<ul class="listing datasets">
{{#if $neq isLoaded ""}}
{{#each datasets}}
<li class="directory datasets {{selected}}">{{name}}</li>
{{/each}}
{{/if}}
</ul>
</template>
<template name="datasetInfo">
{{#if $neq dataset ""}}
<p>{{commaList contributors}}</p>
<p>{{location}}</p>
<p>{{animal}} / {{method}}</p>
<p>{{experiment}}</p>
<p>[{{commaList dimensions}}]</p>
<p>{{commaList contents}}</p>
{{/if}}
</template>
<template name="outputMethods">
{{#each methods}}
<button class="btn btn-output output {{this}} {{selected}}">{{this}}</button>
{{/each}}
</template>
<template name="getData">
{{#if $eq outputMethod "Amazon"}}
{{#if $neq download ""}}
<p>bucket = "s3n://neuro.datasets/"</p>
<p>path = "{{source}}/{{project}}/{{dataset}}/"</p>
{{/if}}
{{/if}}
{{#if $eq outputMethod "Notebook"}}
{{#if $neq download ""}}
{{#if $neq isLoaded ""}}
{{#if $eq isLoaded "True"}}
<p>click <a href={{notebook}} target="_blank">here</a> for live notebook</p>
{{/if}}
{{#if $eq isLoaded "None"}}
<p>Example notebook coming soon</p>
{{/if}}
{{else}}
<p>loading...</p>
{{/if}}
{{/if}}
{{/if}}
{{#if $eq outputMethod "Download"}}
{{#if $neq download ""}}
<p>Direct download coming soon</p>
{{/if}}
{{/if}}
</template>
<template name="refresh">
<button class="btn btn-refresh"><i class="fa fa-refresh fa-2x"></i></button>
</template>
<template name="downloadFromS3">
<button class="btn"><i class="fa fa-download fa-2x"></i></button>
</template>