Skip to content

Commit aeabfe5

Browse files
committed
fix: correct JSON formatting in README and update example data for term info
1 parent 364bc22 commit aeabfe5

1 file changed

Lines changed: 46 additions & 48 deletions

File tree

README.md

Lines changed: 46 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Class example:
1717
vfb.get_term_info('FBbt_00003748')
1818
```
1919
```json
20+
``json
2021
{
2122
"Name": "medulla",
2223
"Id": "FBbt_00003748",
@@ -124,31 +125,8 @@ vfb.get_term_info('FBbt_00003748')
124125
}
125126
],
126127
"IsIndividual": False,
127-
"Images": {},
128128
"IsClass": True,
129129
"Examples": {
130-
"VFB_00030786": [
131-
{
132-
"id": "VFB_00030810",
133-
"label": "medulla on adult brain template Ito2014",
134-
"thumbnail": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/thumbnail.png",
135-
"thumbnail_transparent": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/thumbnailT.png",
136-
"nrrd": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/volume.nrrd",
137-
"wlz": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/volume.wlz",
138-
"obj": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/volume_man.obj"
139-
}
140-
],
141-
"VFB_00101567": [
142-
{
143-
"id": "VFB_00102107",
144-
"label": "ME on JRC2018Unisex adult brain",
145-
"thumbnail": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/thumbnail.png",
146-
"thumbnail_transparent": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/thumbnailT.png",
147-
"nrrd": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/volume.nrrd",
148-
"wlz": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/volume.wlz",
149-
"obj": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/volume_man.obj"
150-
}
151-
],
152130
"VFB_00017894": [
153131
{
154132
"id": "VFB_00030624",
@@ -170,25 +148,38 @@ vfb.get_term_info('FBbt_00003748')
170148
"wlz": "https://www.virtualflybrain.org/data/VFB/i/0010/1385/VFB_00101384/volume.wlz",
171149
"obj": "https://www.virtualflybrain.org/data/VFB/i/0010/1385/VFB_00101384/volume_man.obj"
172150
}
151+
],
152+
"VFB_00101567": [
153+
{
154+
"id": "VFB_00102107",
155+
"label": "ME on JRC2018Unisex adult brain",
156+
"thumbnail": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/thumbnail.png",
157+
"thumbnail_transparent": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/thumbnailT.png",
158+
"nrrd": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/volume.nrrd",
159+
"wlz": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/volume.wlz",
160+
"obj": "https://www.virtualflybrain.org/data/VFB/i/0010/2107/VFB_00101567/volume_man.obj"
161+
}
162+
],
163+
"VFB_00030786": [
164+
{
165+
"id": "VFB_00030810",
166+
"label": "medulla on adult brain template Ito2014",
167+
"thumbnail": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/thumbnail.png",
168+
"thumbnail_transparent": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/thumbnailT.png",
169+
"nrrd": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/volume.nrrd",
170+
"wlz": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/volume.wlz",
171+
"obj": "https://www.virtualflybrain.org/data/VFB/i/0003/0810/VFB_00030786/volume_man.obj"
172+
}
173173
]
174174
},
175175
"IsTemplate": False,
176-
"Domains": {},
177-
"Licenses": {},
178-
"Publications": [],
179176
"Synonyms": [
180177
{
181178
"label": "ME",
182179
"scope": "has_exact_synonym",
183180
"type": "",
184181
"publication": "[Ito et al., 2014](FBrf0224194)"
185182
},
186-
{
187-
"label": "m",
188-
"scope": "has_related_synonym",
189-
"type": "",
190-
"publication": ""
191-
},
192183
{
193184
"label": "Med",
194185
"scope": "has_exact_synonym",
@@ -200,6 +191,12 @@ vfb.get_term_info('FBbt_00003748')
200191
"scope": "has_exact_synonym",
201192
"type": "",
202193
"publication": "[Venkatesh and Shyamala, 2010](FBrf0212889)"
194+
},
195+
{
196+
"label": "m",
197+
"scope": "has_related_synonym",
198+
"type": "",
199+
"publication": ""
203200
}
204201
]
205202
}
@@ -210,6 +207,7 @@ Individual example:
210207
vfb.get_term_info('VFB_00000001')
211208
```
212209
```json
210+
```json
213211
{
214212
"Name": "fru-M-200266",
215213
"Id": "VFB_00000001",
@@ -307,28 +305,28 @@ vfb.get_term_info('VFB_00000001')
307305
"score": "0.61",
308306
"name": "[fru-M-000204](VFB_00000333)",
309307
"tags": "Expression_pattern_fragment|Neuron|Adult|lineage_CM3",
310-
"thumbnail": "[![fru-M-000204 aligned to JFRC2](http://www.virtualflybrain.org/data/VFB/i/0000/0333/VFB_00017894/thumbnail.png 'fru-M-000204 aligned to JFRC2')](VFB_00017894,VFB_00000333)"
308+
"thumbnail": "[![fru-M-000204 aligned to JRC2018U](http://www.virtualflybrain.org/data/VFB/i/0000/0333/VFB_00101567/thumbnail.png 'fru-M-000204 aligned to JRC2018U')](VFB_00101567,VFB_00000333)"
311309
},
312310
{
313311
"id": "VFB_00000333",
314312
"score": "0.61",
315313
"name": "[fru-M-000204](VFB_00000333)",
316314
"tags": "Expression_pattern_fragment|Neuron|Adult|lineage_CM3",
317-
"thumbnail": "[![fru-M-000204 aligned to JRC2018U](http://www.virtualflybrain.org/data/VFB/i/0000/0333/VFB_00101567/thumbnail.png 'fru-M-000204 aligned to JRC2018U')](VFB_00101567,VFB_00000333)"
315+
"thumbnail": "[![fru-M-000204 aligned to JFRC2](http://www.virtualflybrain.org/data/VFB/i/0000/0333/VFB_00017894/thumbnail.png 'fru-M-000204 aligned to JFRC2')](VFB_00017894,VFB_00000333)"
318316
},
319317
{
320318
"id": "VFB_00002439",
321319
"score": "0.6",
322320
"name": "[fru-M-900020](VFB_00002439)",
323321
"tags": "Expression_pattern_fragment|Neuron|Adult|lineage_CM3",
324-
"thumbnail": "[![fru-M-900020 aligned to JFRC2](http://www.virtualflybrain.org/data/VFB/i/0000/2439/VFB_00017894/thumbnail.png 'fru-M-900020 aligned to JFRC2')](VFB_00017894,VFB_00002439)"
322+
"thumbnail": "[![fru-M-900020 aligned to JRC2018U](http://www.virtualflybrain.org/data/VFB/i/0000/2439/VFB_00101567/thumbnail.png 'fru-M-900020 aligned to JRC2018U')](VFB_00101567,VFB_00002439)"
325323
},
326324
{
327325
"id": "VFB_00002439",
328326
"score": "0.6",
329327
"name": "[fru-M-900020](VFB_00002439)",
330328
"tags": "Expression_pattern_fragment|Neuron|Adult|lineage_CM3",
331-
"thumbnail": "[![fru-M-900020 aligned to JRC2018U](http://www.virtualflybrain.org/data/VFB/i/0000/2439/VFB_00101567/thumbnail.png 'fru-M-900020 aligned to JRC2018U')](VFB_00101567,VFB_00002439)"
329+
"thumbnail": "[![fru-M-900020 aligned to JFRC2](http://www.virtualflybrain.org/data/VFB/i/0000/2439/VFB_00017894/thumbnail.png 'fru-M-900020 aligned to JFRC2')](VFB_00017894,VFB_00002439)"
332330
},
333331
{
334332
"id": "VFB_00001880",
@@ -345,18 +343,6 @@ vfb.get_term_info('VFB_00000001')
345343
],
346344
"IsIndividual": True,
347345
"Images": {
348-
"VFB_00017894": [
349-
{
350-
"id": "VFB_00000001",
351-
"label": "fru-M-200266",
352-
"thumbnail": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/thumbnail.png",
353-
"thumbnail_transparent": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/thumbnailT.png",
354-
"nrrd": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/volume.nrrd",
355-
"wlz": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/volume.wlz",
356-
"obj": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/volume.obj",
357-
"swc": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/volume.swc"
358-
}
359-
],
360346
"VFB_00101567": [
361347
{
362348
"id": "VFB_00000001",
@@ -368,6 +354,18 @@ vfb.get_term_info('VFB_00000001')
368354
"obj": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00101567/volume.obj",
369355
"swc": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00101567/volume.swc"
370356
}
357+
],
358+
"VFB_00017894": [
359+
{
360+
"id": "VFB_00000001",
361+
"label": "fru-M-200266",
362+
"thumbnail": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/thumbnail.png",
363+
"thumbnail_transparent": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/thumbnailT.png",
364+
"nrrd": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/volume.nrrd",
365+
"wlz": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/volume.wlz",
366+
"obj": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/volume.obj",
367+
"swc": "https://www.virtualflybrain.org/data/VFB/i/0000/0001/VFB_00017894/volume.swc"
368+
}
371369
]
372370
},
373371
"IsClass": False,

0 commit comments

Comments
 (0)