项目作者: flyconnectome

项目描述 :
Support Acccess to the Female Adult Nerve Cord (FANC) Dataset
高级语言: R
项目地址: git://github.com/flyconnectome/fancr.git
创建时间: 2021-04-21T17:20:24Z
项目社区:https://github.com/flyconnectome/fancr

开源协议:GNU General Public License v3.0

下载


fancr

natverse
Docs
R-CMD-check
R-CMD-check

The goal of fancr is to support analysis of the Female Adult
Nerve Cord dataset aka (FANC), especially autosegmentation data. Those
data are made available by the FANC project led by Wei-Chung Allen Lee (Harvard) and his collaborators including John Tuthill and Sebastian Seung/Zetta.

To access FANC resources, you must have permissions to access the FANC
autosegmentation
dataset

and have confirmed your
acceptance

of the FANC proofreading and data ownership guidelines. At this point you should
have a linked Google account that will be authorised (see below) for access to
FANC online resources.

Broadly speaking the fancr package is a thin wrapper over the
fafbseg package setting up necessary
default paths etc.

Installation

You can install the development version of fancr from github:

  1. if(!requireNamespace('natmanager'))
  2. install.packages('natmanager')
  3. natmanager::install('natverse', pkgs = 'flyconnectome/fancr')
  4. # install required python packages esp cloudvolume/caveclient
  5. fafbseg::simple_python()

To do anything useful with the fancr package, you need authorisation to access
FANC resources. To prove your authorisation for programmatic access you must
generate and store a token in your web browser after logging in to an approved
Google account. This should be streamlined by running the following command in R
(which will also set you up for Pythonic access via cloudvolume.)

  1. # set up token - will open your browser to generate a new token
  2. fanc_set_token()
  3. # if you already have one do
  4. # fanc_set_token("<my token>")

To check that everything is set up properly, try:

  1. dr_fanc()
  2. fanc_xyz2id(cbind(34495, 82783, 1954), rawcoords=TRUE)
  3. svids=fanc_leaves("648518346482929060")
  4. head(svids)

Updating

You can just repeat the install instructions, but this ensures
that all dependencies are updated:

  1. natverse::natverse_update(update = T)
  2. natmanager::install(pkgs = 'flyconnectome/fancr')
  3. fafbseg::simple_python()