Skip to content

Commit

Permalink
Add statusLabel to get_meta
Browse files Browse the repository at this point in the history
* test baseline must be updated
* closes #73
  • Loading branch information
jefferis committed Feb 6, 2020
1 parent 8afc932 commit 7d719f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/name.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ neuprint_get_neuron_names <- function(bodyids, dataset = NULL, all_segments = TR
#'
#' \item status (Traced etc)
#'
#' \item statusLabel similar to \code{status} but often a bit more specific

#' \item size size in voxels
#'
#' \item pre number of presynapses
Expand Down Expand Up @@ -74,7 +76,7 @@ neuprint_get_meta <- function(bodyids, dataset = NULL, all_segments = TRUE, conn
paste(
"WITH %s AS bodyIds UNWIND bodyIds AS bodyId ",
"MATCH (n:`%s`) WHERE n.bodyId=bodyId",
"RETURN n.bodyId AS bodyid, n.%s AS name, n.type AS type, n.status AS status, n.size AS voxels, n.pre AS pre, n.post AS post, n.cropped AS cropped, exists(n.somaLocation) as soma, n.cellBodyFiber as cellBodyFiber"
"RETURN n.bodyId AS bodyid, n.%s AS name, n.type AS type, n.status AS status, n.statusLabel AS statusLabel, n.size AS voxels, n.pre AS pre, n.post AS post, n.cropped AS cropped, exists(n.somaLocation) as soma, n.cellBodyFiber as cellBodyFiber"
),
id2json(bodyids),
all_segments,
Expand Down
1 change: 1 addition & 0 deletions man/neuprint_get_meta.Rd

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

1 change: 1 addition & 0 deletions tests/testthat/test-name.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ test_that("test name searches ", {
"name",
"type",
"status",
"statusLabel",
"voxels",
"pre",
"post",
Expand Down

0 comments on commit 7d719f1

Please sign in to comment.