Skip to content

Commit

Permalink
work round nblast bug by depending on nat.nblast
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Apr 16, 2016
1 parent 0aa4dda commit 47c8152
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ License: GPL-3
LazyData: TRUE
Depends:
R (>= 2.10),
nat.flybrains
nat.flybrains,
nat.nblast
Imports:
nat,
rgl,
nat.templatebrains,
catmaid,
nat.nblast,
nabor,
igraph,
Morpho,
Expand Down
13 changes: 8 additions & 5 deletions R/nblast_fafb.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ fetchdp<-function(skids, mirror=TRUE, conn=NULL, ...) {
#'
#' @examples
#' \dontrun{
#' # load dps object (see details)
#'
#' # load https://github.com/jefferislab/nat.flybrains
#' library(nat.flybrains)
#' # first load dps object (see details)
#'
#' # nblast neuron 27884
#' PN27884f=nblast_fafb(27884, mirror = FALSE)
Expand All @@ -50,7 +47,13 @@ fetchdp<-function(skids, mirror=TRUE, conn=NULL, ...) {
#' # plot results, just top hit
#' plot3d(PN27884f, hits=1)
#' }
nblast_fafb <- function(skids, db=dps, conn=NULL, mirror=TRUE, normalised=TRUE, .parallel=T, ...) {
nblast_fafb <- function(skids, db=NULL, conn=NULL, mirror=TRUE, normalised=TRUE, .parallel=T, ...) {
if(is.null(db)){
if(exists('dps')) db=get('dps') else{
stop("You must have the dps object containing flycircuit neurons loaded!\n",
"See details of nblast_fafb documentation!")
}
}
n=fetchn(skids=skids, mirror=mirror, conn=conn)
if(length(n)>1) n=elmr::stitch_neurons(n)
else n=n[[1]]
Expand Down
7 changes: 2 additions & 5 deletions man/nblast_fafb.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 47c8152

Please sign in to comment.