Skip to content
Example code for the NeuroAnatomy Toolbox (nat) R package
HTML Other
  1. HTML 99.1%
  2. Other 0.9%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
01-setup Update hello-nat.R Jul 1, 2014
02-grosjean2011 reference help for additional commands of interest Jan 12, 2015
03-helmstaedter2013 Merge branch 'master' of github.com:jefferis/nat.examples Jul 18, 2019
04-sumbul2014 set binary mode in download.file Dec 4, 2015
05-miyasaka2014 set binary mode in download.file Dec 4, 2015
06-lee2012 set binary mode in download.file Dec 4, 2015
07-insectbraindb
images
lyx add reference for Lee et al 2012 (Drosophila) Sep 27, 2014
notebooks Added binder related files. Aug 21, 2019
.gitignore Update .gitignore Aug 2, 2019
LICENSE Update LICENSE Apr 17, 2014
README.md Update README.md Aug 2, 2019
install.R Updated install configurations of binder. Aug 21, 2019
nat.examples.Rproj Add rstudio project Apr 3, 2015
runtime.txt

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/jefferis/nat.examples) if you make use of specific example code along with the https://github.com/jefferis/nat package.

You can’t perform that action at this time.