You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to upload skeletons to neuroglancer using the following function: vol.skeleton.upload_raw(777, skel.vertices, skel.edges)
after creating a skeletons layer:
info_seg = CloudVolume.create_new_info(
num_channels = 1, #this is critical
layer_type = 'segmentation', # 'image' or 'segmentation'
data_type = 'uint32', # can pick any popular uint
encoding = 'raw', # see: https://github.com/seung-lab/cloud-volume/wiki/Compression-Choices
resolution = [ 8, 8, 30], # X,Y,Z values in nanometers
skeletons = "skeletons",
voxel_offset = [ 4096, 4096, 0 ], # values X,Y,Z values in voxels
chunk_size = [ 64, 64, 64 ], # rechunk of image X,Y,Z in voxels
volume_size = [ 40960-4096, 61440-4096, 4010], # X,Y,Z size in voxels
)
vol = CloudVolume('gs:///layers/skel_clem_test', info=info_seg)
vol.provenance.description = "test_upload_skel"
vol.provenance.owners = ['[email protected]'] # list of contact email addresses
vol.chunk_size
vol.commit_info() # generates gs://bucket/dataset/layer/info json file
vol.commit_provenance() # generates gs://bucket/dataset/layer/provenance json file
vol.skeleton.upload_raw(777, skel.vertices, skel.edges)
Trying to load this layer into skelunker or the main neuroglancer branch results in an error 404.
Unless I'm wrong somewhere, it would be nice to be able to make it work with the newer branches.
Thanks a lot,
Jon
The text was updated successfully, but these errors were encountered:
Hello,
I tried to upload skeletons to neuroglancer using the following function:
vol.skeleton.upload_raw(777, skel.vertices, skel.edges)
after creating a skeletons layer:
Trying to load this layer into skelunker or the main neuroglancer branch results in an error 404.
Unless I'm wrong somewhere, it would be nice to be able to make it work with the newer branches.
Thanks a lot,
Jon
The text was updated successfully, but these errors were encountered: