Skip to content
Example code for the NeuroAnatomy Toolbox (nat) R package
HTML Other
  1. HTML 98.4%
  2. Other 1.6%
Branch: master
Clone or download
Latest commit 8c52272 Oct 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
01-setup
02-grosjean2011 reference help for additional commands of interest Jan 12, 2015
03-helmstaedter2013
04-sumbul2014 set binary mode in download.file Dec 4, 2015
05-miyasaka2014 Update 06-nblast-masked.R Aug 2, 2019
06-lee2012 set binary mode in download.file Dec 4, 2015
07-insectbraindb allow setup script to be run interactively Dec 4, 2015
10-kunst2019 Create zfish_simplified.surf Aug 2, 2019
11-frechter2019
12-catmaid Delete 04-EM-LM-bridging-neurons.R Aug 2, 2019
13-bridging
14-mouselight Create images.txt Aug 6, 2019
images Create hex-natverse_logo.png Aug 2, 2019
lyx add reference for Lee et al 2012 (Drosophila) Sep 27, 2014
notebooks natverse URL Aug 25, 2019
.gitignore Update .gitignore Aug 2, 2019
LICENSE Update LICENSE Apr 17, 2014
README.md
install.R Updated install configurations of binder. Aug 21, 2019
nat.examples.Rproj Add rstudio project Apr 3, 2015
runtime.txt Added binder related files. Aug 21, 2019

README.md

nat.examples

Sample code for the NeuroAnatomy Toolbox (nat) R package

Contents

  1. Library installation and basic example
  2. Grosjean et al 2011 Drosophila Projection Neuron Data
  3. Helmstaedter et al 2013 Mouse Retinal Connectome
  4. Sumbul et al 2014 Mouse Retinal Ganglion Cells
  5. Miyasaka et al 2014 Zebrafish Mitral Cell Projectome
  6. Lee et al 2012 Traced Drosophila neurons
  7. Heinze et al 2013 Traced Monarch butterfly neurons

Using these examples

  1. Install R for your platform
  2. Optionally install RStudio IDE
  3. Start R or RStudio
  4. Now install (once only) and load nat package from within R
install.packages("nat")
library(nat)

Each example (except the very basic 01-setup) assumes that R's current working directory has been set to the relevant folder. This will be handled by the 00-setup.R script in each folder if it is called like this:

source('/path/to/nat.examples/02-grosjean20011/00-setup.R')

Do not use the chdir=TRUE option (even if your IDE wants to do this for you).

You can also set the path yourself manually e.g.

setwd('/path/to/nat.examples/02-grosjean20011/')

Once you have run the 00-setup.R script you can start start running bits of code interactively (e.g. with copy paste or RStudio's "Run selection* menu option).

Acknowledgements

We insist that you cite the original authors of each study if you make use of the data that they have released. Please also cite this repository (https://github.com/natverse/nat.examples) if you make use of specific example code along with the https://github.com/natverse/nat package.

You can’t perform that action at this time.