Query FlyWire level 2 cache attributes
Arguments
- rootid
One or more FlyWire root ids defining a segment. Supply either
rootidorl2ids.- l2ids
Optional vector of level 2 ids to query directly. Supply either
rootidorl2ids.- attributes
Optional character vector of attribute names to retrieve.
NULLrequests all available attributes.- split_columns
Whether to expand multivalued attributes into separate columns using the same names as python
caveclient.- rval
Return either a
data.frameor the raw namedlistreturned by pythoncaveclient.- datastack_name
defaults to the value selected by
choose_segmentationand to "flywire_fafb_production" when that is missing. See https://global.daf-apis.com/info/ for other options.- ...
Additional arguments passed to
flywire_l2idsand to recursive calls whenrootidcontains multiple ids.
Value
When rval="data.frame", a tibble with one row per queried
level 2 id and an explicit l2_id column stored as a 64 bit integer.
Other integer-valued columns are normalised for stability across
caveclient code paths: values exactly representable as an R double
are returned as numeric, while larger values are kept as
bit64::integer64. When rval="list", the raw named list
returned by caveclient$l2cache$get_l2data(). When rootid has
length greater than 1, a named list is returned with one result per root
id.