kcnl=read.neuronlistfh('http://jefferislab.org/si/nblast/flycircuit/kcs20.rds',
'path/to/my/project/folder')
# this will automatically download the neurons from the web the first time
# it is run
plot3d(kcnl)
# create neuronlistfh object backed by filehash with one file per neuron
kcs20fh=as.neuronlistfh(kcs20,dir='/path/to/my/kcdb/data',filehash.type='RDS')
plot3d(subset(kcs20fh,type=='gamma'))
# save neuronlisfh object next to filehash backing database
save(kcs20fh,file='/path/to/my/kcdb/kcdb.rda')
# in a new session
load("/path/to/my/kcdb.rda")
plot3d(subset(kcs20fh,type=='gamma'))
Run the code above in your browser using DataLab