for example, this works
neuprint_get_shortest_paths(1633411652, 1663767674)
but this does not
neuprint_get_shortest_paths(1850310331, 1663767674)
the returned queries look ok but the second one bodyid = 1850310331 has no name or type. It seems to cause a problem when building the returned dataframe
connTable <- dplyr::bind_rows(lapply(nc$data, function(d){ l <- d[[1]] tryCatch( dplyr::bind_rows(lapply(1:l, function(i){ data.frame(from=as.character(d[[2]][[i]][[1]]), to=as.character(d[[2]][[i+1]][[1]]), weight=d[[3]][[i]], depth=i, name.from=d[[2]][[i]][[2]],name.to=d[[2]][[i+1]][[2]], type.from=d[[2]][[i]][[3]],type.to=d[[2]][[i+1]][[3]], stringsAsFactors = FALSE) })), error = function(e) NULL) }))
One possible solution is to use, eg., I(list(d[[2]][[i]][[2]])) instead of d[[2]][[i]][[2]]
Similar problem with neuprint_get_paths