Skip to content

Commit 1d6b4d8

Browse files
Fixed undocumented argument
1 parent f078218 commit 1d6b4d8

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

R/banc-table.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,3 +372,10 @@ banc_update_status <- function(df, update, col = "status", wipe = FALSE){
372372
# chunksize = 100)
373373

374374

375+
376+
377+
378+
379+
380+
381+

R/ids.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ banc_islatest <- function(x, timestamp=NULL, ...) {
114114
#' Find the latest id for a banc root id
115115
#'
116116
#' @inheritParams fafbseg::flywire_latestid
117+
#' @param x a `data.frame` with at least one of: `root_id`, `pt_root_id`, `supervoxel_id` and/or `pt_supervoxel_id`.
118+
#' Supervoxels will be preferentially used to update the `root_id` column.
119+
#' Else a vector of `BANC` root IDs.
117120
#' @param ... Additional arguments passed to \code{\link{flywire_latestid}}
118121
#'
119122
#' @export

R/urls.R

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,25 @@ banc_fetch <- function(url, token=banc_token(), ...) {
306306
else x
307307
}
308308

309+
# Make a neuroglancer layer with 3D points in it, for synapse review
310+
banc_annotation_layer <- function(data,
311+
layer = "sample",
312+
open = FALSE,
313+
rawcoords = NA,
314+
colpal = NULL){
315+
#data <- read_csv('/Users/abates/projects/flyconnectome/bancpipeline/tracing/2024-08-12_banc_synapse_sample_v1.csv')
316+
#data$pt_position<-data$`Coordinate 1`
317+
data$layer <- "synapse_sample"
318+
al <- ngl_annotation_layers(data[,c("pt_position", "layer")], rawcoords=rawcoords, colpal=colpal)
319+
sc<-fafbseg::ngl_decode_scene(banc_scene())
320+
sc2<-sc+al
321+
u<-as.character(sc2)
322+
su<-banc_shorturl(u)
323+
# # Extract annotations!
324+
# ngl_annotations(su)
325+
if(open){
326+
browseURL(u)
327+
}else{
328+
su
329+
}
330+
}

man/banc_latestid.Rd

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)