fishatlas_read_brain: Read 3D larval zebrafish template brain from Kunst et al....

Description Usage Arguments Details Value References See Also Examples

View source: R/get_meshes.R

Description

Read the template brain for a 6 day old larval zebrafish, generated by Kunst et al. 2019, straight from https://fishatlas.neuro.mpg.de. 3D triangular meshes are returned as a nat package hxsurf object, which mimics the Amira surface format. These can be be plotted in 3D using rgl and analysed with tools from the nat ecosystem. This incldue subseting by neuropil, i.e.. if you only want to visualise or analyse the forebrain.

Usage

1
2
3
fishatlas_read_brain(type = c("brain_regions", "outline", "fiber",
  "cell_bodies"), fishatlas_url = "https://fishatlas.neuro.mpg.de",
  surf = NULL)

Arguments

type

which version of the template brain you want to retreive. See details. Defaults to retreiving an expert segmnetation of the template brain into 51 neuropils

fishatlas_url

the web location of the fish brain atlas project

surf

Use if you want to add the downloaded brain to a hxsruf object already in your environment. Defaults to null, a new object is made from scratch

Details

A single 3D brain object orits neuropils are read from .txt files hosted on https://fishatlas.neuro.mpg.de, and turned into a hxsurf object in R, which mimics the Amira surface format. As of May 2019, data available is:

Note that since neurons are reconstructed from many different neural species, there is no 'standard' orientation between species, but within a species these neurons are registered to a template brain, usually using elastix.

Value

a nat package hxsurf object, which mimics the Amira surface format, replete with metadata that can be accessed using $

References

Kunst, Michael, Eva Laurell, Nouwar Mokayes, Anna Kramer, Fumi Kubo, António M. Fernandes, Dominique Förster, Marco Dal Maschio, and Herwig Baier. 2019. “A Cellular-Resolution Atlas of the Larval Zebrafish Brain.” Neuron, May. https://doi.org/10.1016/j.neuron.2019.04.034.

See Also

fishatlas_download_neurons, fishatlas_cell_types, fishatlas_read_saved_neurons

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
## Lets have a look at these neuropils!
zfbrain = fishatlas_read_brain(type = "brain_regions")
plot3d(zfbrain)

## Maybe we just want to plot for forebrain
clear3d()
plot3d(subset(zfbrain, "Forebrain"), alpha = 0.5, col = "red")

## Maybe within the forebrain, we are interested in plotting the habenula
plot3d(subset(zfbrain, "Habenula"), alpha = 0.3, col = "red")


## End(Not run)

natverse/fishatlas documentation built on Nov. 4, 2019, 8:36 p.m.