Skip to content

Commit

Permalink
add JRCFIB2022Mraw template
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Jul 29, 2023
1 parent 45577dd commit 9d4cb7c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
31 changes: 30 additions & 1 deletion flybrains/data/template_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,39 @@
484680
],
"units": "nanometers",
"_navis_units": "8 nanometers",
"_navis_units": "nanometers",
"description": "Full male CNS EM volume currenty being generated by FlyEM at HHMI Janelia Research Campus",
"doi": "unpublished"
},
{
"name": "JRCFIB2022Mraw",
"label": "JRCFIB2022Mraw",
"type": null,
"sex": "M",
"dims": [
94088,
71047,
60858
],
"voxdims": [
8,
8,
8
],
"origin": null,
"boundingbox": [
0,
752704,
0,
568376,
0,
484680
],
"units": "nanometers",
"_navis_units": "8 nanometers",
"description": "Uncalibrated version of the full male CNS EM volume currenty being generated by FlyEM at HHMI Janelia Research Campus",
"doi": "unpublished"
},
{
"name": "JRCVNC2018F",
"label": "JRCVNC2018F",
Expand Down
20 changes: 18 additions & 2 deletions flybrains/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'JFRC2013', 'JFRC2013DS',
'JRC2018F', 'JRC2018U', 'JRC2018M',
'JRCFIB2018F', 'JRCFIB2018Fraw', 'JRCFIB2018Fum',
'JRCFIB2022M',
'JRCFIB2022M', 'JRCFIB2022Mraw',
'JRCVNC2018F',
'JRCVNC2018M',
'JRCVNC2018U',
Expand Down Expand Up @@ -725,6 +725,21 @@ class _JRCFIB2022M(FlyTemplateBrain):

JRCFIB2022M = _JRCFIB2022M(**template_meta['JRCFIB2022M'])

class _JRCFIB2022Mraw(_JRCFIB2022M):
@property
def mesh(self):
"""On-demand loading of surface mesh."""
if not hasattr(self, '_mesh'):
# Load the raw mesh (voxels)
fp = os.path.join(mesh_filepath, f'JRCFIB2022M.ply')
self._mesh = tm.load_mesh(fp)
# Convert nanometers to voxels
self._mesh.vertices /= 8
return self._mesh

JRCFIB2022Mraw = _JRCFIB2022Mraw(**template_meta['JRCFIB2022Mraw'])


class _JRCVNC2018F(FlyTemplateBrain):
"""JRC2018 reference ventral nerve chords.
Expand Down Expand Up @@ -1029,7 +1044,8 @@ def register_templates():
JRC2018F, JRC2018U, JRC2018M,
JRCVNC2018F, JRCVNC2018U, JRCVNC2018M, VNCIS1,
FAFB14, FAFB, FLYWIRE,
JRCFIB2022M, JRCFIB2018F, JRCFIB2018Fraw,
JRCFIB2022M,JRCFIB2022Mraw,
JRCFIB2018F, JRCFIB2018Fraw,
FANC, DmelL1CNS_Seymour, COURT2017VNS, COURT2018VNS]

for tmp in templates:
Expand Down

0 comments on commit 9d4cb7c

Please sign in to comment.