@abi-software/map-side-bar 1.1.14 → 1.1.17-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.1.10",
3
+ "version": "1.1.14",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.1.14",
3
+ "version": "1.1.17-beta-1",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -0,0 +1,28 @@
1
+ {
2
+ "description": "This dataset contains single cell scale anatomical map of the rat intrinsic cardiac nervous system (ICNS) across four male and three female hearts. These cell clusters can be seen by the yellow data points on the image as well as spherical markers on the 3D heart scaffold. The dataset provides an integrative framework to visualise the spatial distribution of ICNS across different hearts.",
3
+ "heading": "Mapped ICN samples",
4
+ "id": "sparc.science.context_data",
5
+ "samples": [
6
+ {
7
+ "annotation": "",
8
+ "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
9
+ "doi": "",
10
+ "heading": "ICNS from subject M54-8",
11
+ "id": "Sample 1",
12
+ "path": "",
13
+ "view": "View 1",
14
+ "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
15
+ },
16
+ {
17
+ "annotation": "",
18
+ "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
19
+ "doi": "",
20
+ "heading": "ICNS from subject M54-5",
21
+ "id": "Sample 2",
22
+ "path": "",
23
+ "view": "View 2",
24
+ "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
25
+ }
26
+ ],
27
+ "version": "0.1.0",
28
+ }
@@ -1,18 +1,41 @@
1
1
  <template>
2
2
  <div class="context-card-container" ref="container">
3
- <div v-show="showDetails" class="hide" @click="showDetails = !showDetails">Hide information<i class="el-icon-arrow-up"></i></div>
4
- <div v-show="!showDetails" class="hide" @click="showDetails = !showDetails">Show information<i class="el-icon-arrow-down"></i></div>
5
- <el-card v-if="showDetails && Object.keys(contextData).length !== 0" class="context-card card" :body-style="{ padding: '0px', 'background-color': 'white', display: 'flex', width: '516px'}">
6
- <img :src="entry.banner" class="context-image card-left">
7
- <div class="card-right">
8
- <div class="title">{{contextData.heading}}</div>
9
- <div>{{contextData.description}}</div>
10
- <template v-for="(key, i) in contextData.views">
11
- <br v-bind:key="i"/>
12
- <span v-bind:key="i+'_1'"><img :src="getFileFromPath(key.thumbnail) " style="height: 25px;"> {{key.description}}</span>
13
- </template>
14
- </div>
15
- </el-card>
3
+ <div v-show="showContextCard">
4
+ <div v-show="showDetails" class="hide" @click="showDetails = !showDetails">Hide information<i class="el-icon-arrow-up"></i></div>
5
+ <div v-show="!showDetails" class="hide" @click="showDetails = !showDetails">Show information<i class="el-icon-arrow-down"></i></div>
6
+ <el-card v-if="showDetails && Object.keys(contextData).length !== 0" v-loading="loading" class="context-card card" >
7
+ <div class="card-left">
8
+ <img :src="entry.banner" class="context-image">
9
+ </div>
10
+ <div class="card-right">
11
+ <div class="title">{{contextData.heading}}</div>
12
+ <div>{{contextData.description}}</div>
13
+ <br/>
14
+ <div v-if="contextData.views" class="subtitle">Scaffold Views</div>
15
+ <template v-for="(view, i) in contextData.views">
16
+ <span v-bind:key="i+'_1'" @click="openViewFile(view)" class="context-card-item">
17
+ <img class="key-image" :src="getFileFromPath(view.thumbnail)">
18
+ {{view.description}}
19
+ </span>
20
+ <br v-bind:key="i"/>
21
+ </template>
22
+ <div style="margin-bottom: 16px;"/>
23
+ <div v-if="contextData.samples" class="subtitle">Samples on Scaffold</div>
24
+ <template v-for="(sample, i) in contextData.samples">
25
+ <span v-bind:key="i+'_3'" class="context-card-item" @click="toggleSampleDetails(i)">
26
+ <img class="key-image" v-if="sample.thumbnail" :src="getFileFromPath(sample.thumbnail)">
27
+ {{sample.heading}}
28
+
29
+ </span>
30
+ <div v-bind:key="i+'_4'" v-if="sampleDetails[i]">
31
+ {{sample.description}}
32
+ <a v-bind:key="i+'_5'" v-if="sampleDetails[i]" :href="generateFileLink(sample.path)" target="_blank">View Source</a>
33
+ </div>
34
+ <br v-bind:key="i+'_2'"/>
35
+ </template>
36
+ </div>
37
+ </el-card>
38
+ </div>
16
39
  </div>
17
40
  </template>
18
41
 
@@ -23,6 +46,8 @@ import Vue from "vue";
23
46
  import { Link, Icon, Card, Button, Select, Input } from "element-ui";
24
47
  import lang from "element-ui/lib/locale/lang/en";
25
48
  import locale from "element-ui/lib/locale";
49
+ import EventBus from "./EventBus"
50
+ import hardcoded_info from './hardcoded-context-info'
26
51
 
27
52
  locale.use(lang);
28
53
  Vue.use(Link);
@@ -33,7 +58,6 @@ Vue.use(Select);
33
58
  Vue.use(Input);
34
59
 
35
60
 
36
-
37
61
  export default {
38
62
  name: "contextCard",
39
63
  props: {
@@ -46,14 +70,33 @@ export default {
46
70
  data: function () {
47
71
  return {
48
72
  contextData: {},
49
- showDetails: true
73
+ showDetails: true,
74
+ showContextCard: true,
75
+ sampleDetails: {},
76
+ loading: false
50
77
  };
51
78
  },
52
- computed: {
53
-
79
+ watch: {
80
+ 'entry.contextCardUrl': {
81
+ handler(val){
82
+ if (val) {
83
+ // used for hardcoding data
84
+ if (val === true){
85
+ this.contextData = hardcoded_info[this.entry.discoverId]
86
+ } else {
87
+ this.getContextFile(val)
88
+ this.showContextCard = true
89
+ }
90
+ } else {
91
+ this.showContextCard = false
92
+ }
93
+ },
94
+ immediate: true
95
+ }
54
96
  },
55
97
  methods: {
56
98
  getContextFile: function (contextFileUrl) {
99
+ this.loading = true
57
100
  fetch(contextFileUrl)
58
101
  .then((response) =>{
59
102
  if (!response.ok){
@@ -64,20 +107,48 @@ export default {
64
107
  })
65
108
  .then((data) => {
66
109
  this.contextData = data
67
- console.log(this.contextData)
110
+ this.loading = false
68
111
  })
69
112
  .catch(() => {
70
113
  //set defaults if we hit an error
71
114
  this.thumbnail = require('@/../assets/missing-image.svg')
72
115
  this.discoverId = undefined
116
+ this.loading = false
73
117
  });
74
118
  },
119
+ removeDoubleFilesPath: function(path){
120
+ if (path.includes('files/')){
121
+ return path.replace('files/', '')
122
+ } else {
123
+ return path
124
+ }
125
+ },
126
+ toggleSampleDetails: function(i){
127
+ if (this.sampleDetails[i] === undefined){
128
+ Vue.set(this.sampleDetails, i, true)
129
+ } else {
130
+ Vue.set(this.sampleDetails, i, !this.sampleDetails[i])
131
+ }
132
+ },
75
133
  getFileFromPath: function(path){
134
+ // for hardcoded data
135
+ if(this.entry.contextCardUrl === true){
136
+ return path
137
+ }
138
+ path = this.removeDoubleFilesPath(path)
76
139
  return `${this.entry.apiLocation}s3-resource/${this.entry.discoverId}/${this.entry.version}/files/${path}`
77
140
  },
78
- },
79
- mounted: function(){
80
- this.getContextFile(this.entry.contextCardUrl)
141
+ generateFileLink(path){
142
+ return `https://sparc.science/file/${this.entry.discoverId}/${this.entry.version}?path=${encodeURI(path)}`
143
+
144
+ },
145
+ openViewFile: function(view){
146
+
147
+ // note that we assume that the view file is in the same directory as the scaffold (viewUrls take relative paths)
148
+ this.entry.viewUrl = view.path.split('/')[view.path.split('/').length-1]
149
+ this.entry.type = 'Scaffold View'
150
+ EventBus.$emit("PopoverActionClick", this.entry)
151
+ }
81
152
  }
82
153
  };
83
154
  </script>
@@ -92,14 +163,32 @@ export default {
92
163
 
93
164
  .context-card{
94
165
  background-color: white;
166
+ max-height: 10 50px;
167
+ padding: 8px;
168
+ }
169
+
170
+ .context-card-item{
171
+ cursor: pointer;
172
+ padding-bottom: 8px;
173
+ }
174
+
175
+ .key-image {
176
+ width: 25px;
177
+ height: auto;
178
+ }
179
+
180
+ .context-card >>> .el-card__body {
181
+ padding: 0px;
182
+ display: flex;
183
+ width: 516px;
95
184
  }
96
185
 
97
186
  .context-image{
98
- width: 250px
187
+ width: 250px;
188
+ height: auto;
99
189
  }
100
190
 
101
191
  .card {
102
- padding-top: 18px;
103
192
  margin-bottom: 18px;
104
193
  position: relative;
105
194
  border: solid 1px #e4e7ed;
@@ -115,7 +204,16 @@ export default {
115
204
  padding-left: 6px;
116
205
  }
117
206
 
207
+ .cursor-pointer {
208
+ cursor: pointer;
209
+ height: 25px;
210
+ }
211
+
118
212
  .title{
119
213
  font-weight: bold;
120
214
  }
215
+
216
+ .subtitle{
217
+ font-weight: bold;
218
+ }
121
219
  </style>
@@ -17,9 +17,6 @@
17
17
  <div>
18
18
  <el-button v-if="entry.scaffolds" @click="openScaffold" size="mini" class="button" icon="el-icon-view">View scaffold</el-button>
19
19
  </div>
20
- <div>
21
- <el-button v-if="entry.contextualInformation" @click="openContext" size="mini" class="button" icon="el-icon-view">View context data</el-button>
22
- </div>
23
20
  <div>
24
21
  <el-button v-if="hasCSVFile" @click="openPlot" size="mini" class="button" icon="el-icon-view">View plot</el-button>
25
22
  </div>
@@ -46,11 +43,13 @@ import lang from "element-ui/lib/locale/lang/en";
46
43
  import locale from "element-ui/lib/locale";
47
44
  import EventBus from "./EventBus"
48
45
  import speciesMap from "./species-map";
46
+ import hardcoded_info from './hardcoded-context-info'
49
47
 
50
48
  locale.use(lang);
51
49
  Vue.use(Button);
52
50
  Vue.use(Icon);
53
51
 
52
+
54
53
  const capitalise = function(string){
55
54
  return string.replace(/\b\w/g, v => v.toUpperCase());
56
55
  }
@@ -147,19 +146,8 @@ export default {
147
146
  contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version,this.entry.contextualInformation) : undefined,
148
147
  banner: this.thumbnail
149
148
  }
150
- this.propogateCardAction(action)
151
- },
152
- openContext: function(){
153
- let action = {
154
- label: capitalise(this.label),
155
- resource: 'not used',
156
- title: "View 3D scaffold",
157
- type: "Scaffold",
158
- discoverId: this.discoverId,
159
- apiLocation: this.envVars.API_LOCATION,
160
- version: this.version,
161
- contextCardUrl: this.entry.contextualInformation ? this.getFileFromPath(this.discoverId, this.version,this.entry.contextualInformation) : undefined,
162
- banner: this.thumbnail
149
+ if (hardcoded_info[this.discoverId]){
150
+ action.contextCardUrl = true
163
151
  }
164
152
  this.propogateCardAction(action)
165
153
  },
@@ -18,9 +18,28 @@
18
18
  @tags-changed="tagsChangedCallback"
19
19
  ></custom-cascader>
20
20
  <div v-if="showFiltersText" class="filter-default-value">
21
- <map-svg-icon icon="noun-filter" class="filter-icon-inside" />Apply
22
21
  Filters
23
22
  </div>
23
+ <el-popover
24
+ title="How do filters work?"
25
+ width="250"
26
+ trigger="hover"
27
+ :append-to-body=false
28
+ popper-class="popover"
29
+ >
30
+ <map-svg-icon slot="reference" icon="help" class="help"/>
31
+ <div >
32
+ <strong>Within categories:</strong> OR
33
+ <br/>
34
+ example: 'heart' OR 'colon'
35
+ <br/>
36
+ <br/>
37
+ <strong>Between categories:</strong> AND
38
+ <br/>
39
+ example: 'rat' AND 'lung'
40
+ </div>
41
+ </el-popover>
42
+
24
43
  </span>
25
44
  </transition>
26
45
 
@@ -45,7 +64,7 @@
45
64
  <script>
46
65
  /* eslint-disable no-alert, no-console */
47
66
  import Vue from "vue";
48
- import { Option, Select } from "element-ui";
67
+ import { Option, Select, Popover } from "element-ui";
49
68
  import CustomCascader from "./Cascader";
50
69
  import lang from "element-ui/lib/locale/lang/en";
51
70
  import locale from "element-ui/lib/locale";
@@ -58,6 +77,7 @@ import { facetPropPathMapping } from "../algolia/utils.js";
58
77
  locale.use(lang);
59
78
  Vue.use(Option);
60
79
  Vue.use(Select);
80
+ Vue.use(Popover)
61
81
 
62
82
  const capitalise = function (txt) {
63
83
  return txt.charAt(0).toUpperCase() + txt.slice(1);
@@ -157,6 +177,7 @@ export default {
157
177
  this.createCascaderItemValue(facet.label, facetItem.label);
158
178
  });
159
179
  });
180
+ this.createDataTypeFacet()
160
181
  })
161
182
  .finally(() => {
162
183
  resolve();
@@ -176,17 +197,28 @@ export default {
176
197
  // Check for show all in selected cascade options
177
198
  event = this.showAllEventModifier(event);
178
199
 
179
- // Move results from arrays to object
180
- let filters = event.filter( selection => selection !== undefined).map( fs => ({
200
+ // Create results for the filter update
201
+ let filterKeys = event.filter( selection => selection !== undefined).map( fs => ({
181
202
  facetPropPath: fs[0],
182
203
  facet: fs[1].split("/")[1],
183
204
  term: fs[1].split("/")[0],
184
205
  }))
185
206
 
207
+ // Move results from arrays to object for use on scicrunch (note that we remove 'duplicate' as that is only needed for filter keys)
208
+ let filters = event.filter( selection => selection !== undefined).map( fs => {
209
+ let propPath = fs[0].includes('duplicate') ? fs[0].split('duplicate')[0] : fs[0]
210
+ return {
211
+ facetPropPath: propPath,
212
+ facet: fs[1].split("/")[1],
213
+ term: fs[1].split("/")[0],
214
+ }
215
+ })
216
+
217
+
186
218
  this.$emit('loading', true) // let sidebarcontent wait for the requests
187
219
 
188
220
  this.$emit("filterResults", filters); // emit filters for apps above sidebar
189
- this.setCascader(filters); //update our cascader v-model if we modified the event
221
+ this.setCascader(filterKeys); //update our cascader v-model if we modified the event
190
222
  this.makeCascadeLabelsClickable();
191
223
  }
192
224
  },
@@ -255,6 +287,28 @@ export default {
255
287
  }
256
288
  return event;
257
289
  },
290
+ createDataTypeFacet: function(){
291
+ let dataFacet = {...this.facets[2]} // copy the 'Experiemental approach' facet
292
+ let count = this.facets.at(-1).id // get the last id count
293
+
294
+ // Step through the children that are valid data types, switch thier values
295
+ let newChildren = dataFacet.children.filter( el=> {
296
+ if (el.label === 'Scaffold' || el.label === 'Simulation' || el.label === 'Show all'){
297
+ el.key = el.label
298
+ el.id = count
299
+ el.value = el.value.replace('Experimental approach', 'Data type')
300
+ count++
301
+ return el
302
+ }
303
+ })
304
+ dataFacet.id = count
305
+ dataFacet.key = 'Data type'
306
+ // Add 'duplicate' so that the key is unique. This is removed in the cascade event for filtering
307
+ dataFacet.value += 'duplicate'
308
+ dataFacet.children = newChildren
309
+ dataFacet.label = 'Data type'
310
+ this.facets.push(dataFacet)
311
+ },
258
312
  cascadeExpandChange: function (event) {
259
313
  //work around as the expand item may change on modifying the cascade props
260
314
  this.__expandItem__ = event;
@@ -358,6 +412,20 @@ export default {
358
412
  padding-left: 16px;
359
413
  }
360
414
 
415
+ .help {
416
+ width: 24px !important;
417
+ height: 24px;
418
+ transform: scale(1.1);
419
+ color: #8300bf;
420
+ cursor: pointer;
421
+ }
422
+
423
+ .popover {
424
+ color: rgb(48, 49, 51);
425
+ font-family: Asap;
426
+ margin: 12px;
427
+ }
428
+
361
429
  .filter-icon-inside {
362
430
  width: 12px !important;
363
431
  height: 12px !important;
@@ -439,4 +507,51 @@ export default {
439
507
  .cascader >>> .el-cascader-node__label {
440
508
  text-align: left;
441
509
  }
510
+
511
+ .filters >>> .el-popover {
512
+ background: #f3ecf6 !important;
513
+ border: 1px solid #8300BF;
514
+ border-radius: 4px;
515
+ color: #303133 !important;
516
+ font-size: 12px;
517
+ line-height: 18px;
518
+
519
+
520
+ }
521
+
522
+ .filters >>> .el-popover[x-placement^="top"] .popper__arrow {
523
+ border-top-color: #8300BF;
524
+ border-bottom-width: 0;
525
+ }
526
+ .filters >>> .el-popover[x-placement^="top"] .popper__arrow::after {
527
+ border-top-color: #f3ecf6;
528
+ border-bottom-width: 0;
529
+ }
530
+
531
+ .filters >>> .el-popover[x-placement^="bottom"] .popper__arrow {
532
+ border-top-width: 0;
533
+ border-bottom-color: #8300BF;
534
+ }
535
+ .filters >>> .el-popover[x-placement^="bottom"] .popper__arrow::after {
536
+ border-top-width: 0;
537
+ border-bottom-color: #f3ecf6;
538
+ }
539
+
540
+ .filters >>> .el-popover[x-placement^="right"] .popper__arrow {
541
+ border-right-color: #8300BF;
542
+ border-left-width: 0;
543
+ }
544
+ .filters >>> .el-popover[x-placement^="right"] .popper__arrow::after {
545
+ border-right-color: #f3ecf6;
546
+ border-left-width: 0;
547
+ }
548
+
549
+ .filters >>> .el-popover[x-placement^="left"] .popper__arrow {
550
+ border-right-width: 0;
551
+ border-left-color: #8300BF;
552
+ }
553
+ .filters >>> .el-popover[x-placement^="left"] .popper__arrow::after {
554
+ border-right-width: 0;
555
+ border-left-color: #f3ecf6;
556
+ }
442
557
  </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <el-card :body-style="bodyStyle" class="content-card">
3
3
  <div slot="header" class="header">
4
- <context-card v-if="contextCardEntry" :entry="contextCardEntry" />
4
+ <context-card v-if="contextCardEntry && contextCardEnabled" :entry="contextCardEntry" />
5
5
  <el-input
6
6
  class="search-input"
7
7
  placeholder="Search"
@@ -102,7 +102,8 @@ var initial_state = {
102
102
  start: 0,
103
103
  hasSearched: false,
104
104
  sciCrunchError: false,
105
- contextCardEntry: undefined
105
+ contextCardEntry: undefined,
106
+ contextCardEnabled: true
106
107
  };
107
108
 
108
109
  export default {
@@ -0,0 +1,74 @@
1
+ export default {
2
+ 77: {
3
+ "description": "This dataset contains single cell scale anatomical map of the rat intrinsic cardiac nervous system (ICNS) across four male and three female hearts. These cell clusters can be seen by the yellow data points on the image as well as spherical markers on the 3D heart scaffold. The dataset provides an integrative framework to visualise the spatial distribution of ICNS across different hearts.",
4
+ "heading": "Mapped ICN samples",
5
+ "id": "sparc.science.context_data",
6
+ "samples": [
7
+ {
8
+ "annotation": "",
9
+ "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
10
+ "doi": "",
11
+ "heading": "ICNS from subject M54-8",
12
+ "id": "Sample 1",
13
+ "path": "",
14
+ "view": "View 1",
15
+ "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
16
+ },
17
+ {
18
+ "annotation": "",
19
+ "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
20
+ "doi": "",
21
+ "heading": "ICNS from subject M54-5",
22
+ "id": "Sample 2",
23
+ "path": "",
24
+ "view": "View 2",
25
+ "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
26
+ }
27
+ ],
28
+ "version": "0.1.0",
29
+ },
30
+ 221: {
31
+ "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
32
+ "heading": "Digital tracings of enteric plexus",
33
+ "id": "sparc.science.context_data",
34
+ "samples": [
35
+ {
36
+ "annotation": "",
37
+ "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
38
+ "doi": "",
39
+ "heading": "Digital tracing for subject M11",
40
+ "id": "Sample 1",
41
+ "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
42
+ "view": "View 1"
43
+ },
44
+ {
45
+ "annotation": "",
46
+ "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
47
+ "doi": "",
48
+ "heading": "Digital tracing for subject M16",
49
+ "id": "Sample 2",
50
+ "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
51
+ "view": "View 2"
52
+ }
53
+ ],
54
+ "version": "0.1.0",
55
+ "views": [
56
+ {
57
+ "annotation": "--",
58
+ "description": "Digital tracing of neurons for subject M11.",
59
+ "id": "View 1",
60
+ "path": "files/derivative/Scaffolds/M11_view.json",
61
+ "sample": "Sample 1",
62
+ "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
63
+ },
64
+ {
65
+ "annotation": "--",
66
+ "description": "Digital tracing of neurons for subject M16.",
67
+ "id": "View 2",
68
+ "path": "files/derivative/Scaffolds/M16_view.json",
69
+ "sample": "Sample 2",
70
+ "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
71
+ }
72
+ ]
73
+ }
74
+ }