Skip to content

Commit

Permalink
Update Neuroglancer documentation and add example
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinchai committed Jan 3, 2025
1 parent e9c25a0 commit 92aa1c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions docs/neuroglancer.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Using Neuroglancer to Visualize Structure Tensors in Zarr Format
# Using Neuroglancer to Visualize Orientation Vector in Zarr Format

## 1. Ensure the vector dimension is in a single chunk

Expand All @@ -8,10 +8,14 @@ Neuroglancer requires that the dimension along the channels (where your vector d

Once you have your data chunked correctly, you can load the Zarr dataset into Neuroglancer. Typically, you will:

1. Start Neuroglancer (either locally or on a server).
## 2.1 Start Local Neuroglancer Server
1. Start Neuroglancer.
2. Open Neuroglancer in a browser.
3. Load Zarr if it presents locally `load zarr:///example.path.zarr`

## 2.2 Start Neuroglancer on lincbrain
1. Find the dataset you want to visualize
2. Under `Open With` button, select Neuroglancer

## 3. Rename the channel dimension from `c'` to `c^`

Expand Down Expand Up @@ -68,3 +72,10 @@ void main() {
```

In Neuroglancer, you can paste this shader code in the layer’s Shader Editor (usually found under the “Layer” panel).


## 5. Example

An example dataset can be found at [here](https://lincbrain.org/dandiset/000010/draft/files?location=sourcedata%2Fderivatives&page=2). The file `sample18_st_filtered.ome.zarr`. Once we change the dimension name to `c^` and apply the shader. We can see the result as following.
![](img/neuroglancer_orientation_vector_example.jpeg)

0 comments on commit 92aa1c3

Please sign in to comment.