Skip to content

Commit

Permalink
fanc_cellid_from_segid also respects latest table
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed May 1, 2024
1 parent 0cae869 commit 7ea1c56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion R/ids.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ fanc_ids <- function(x, integer64=NA) {

#' Convert between FANC cell ids and root ids
#'
#' @description Converts between FANC cell ids (should survive most edits) and
#' root ids (guaranteed to match just one edit state). See details.
#'
#' @details CAVE/PyChunkedGraph assigns a 64 bit integer root id to all bodies
#' in the segmentation. These root ids are persistent in a computer science
#' sense, which is often the exact opposite of what neuroscientists might
Expand Down Expand Up @@ -202,8 +205,10 @@ fanc_ids <- function(x, integer64=NA) {
#' \donttest{
#' fanc_cellid_from_segid(fanc_latestid("648518346486614449"))
#' }
fanc_cellid_from_segid <- function(rootids=NULL, timestamp=NULL, version=NULL, cellid_table = 'cell_ids', rval=c("ids", 'data.frame')) {
fanc_cellid_from_segid <- function(rootids=NULL, timestamp=NULL, version=NULL, cellid_table = NULL, rval=c("ids", 'data.frame')) {
rval=match.arg(rval)
if(is.null(cellid_table))
cellid_table=fanc_cellid_table()
if(!is.null(rootids)) {
rootids=fanc_ids(rootids, integer64=F)
idlist=list(pt_root_id=rootids)
Expand Down
5 changes: 3 additions & 2 deletions man/fanc_cellid_from_segid.Rd

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

0 comments on commit 7ea1c56

Please sign in to comment.