fafbseg.flywire.get_cave_table

fafbseg.flywire.get_cave_table(table_name, materialization='latest', split_positions=False, fill_user_info='try', drop_invalid=True, *, dataset=None, **filters)[source]

Get annotations from given CAVE table.

Parameters:
  • table_name (str) – Name of the table.

  • materialization ("live" | "latest" | int | bool | iterable) – Which materialization version to fetch. You can also provide an ID (int) for a specific materialization version (see get_materialization_versions). If you provide a container of materialization versions this function will search all of them and concatenate the results (no deduplication). Set to False to fetch the non-materialized version.

  • fill_user_info ("try" (default) | bool | "full") –

    Whether to fill-in user information for the table:
    • ”try” (default) will add a column with user names; if the querying user doesn’t have the right permission to see that information it will silently fail and leave the column empty

    • True will try do the same as “try” but will raise an error if permissions are missing

    • ”full” will do the same as True but also add a user_pi column with the principal investigator for that user

    Ignored if table has no user_id column!

  • split_positions (bool) – Whether to split x/y/z positions into separate columns.

  • drop_invalid (bool) – Whether to drop invalidated (i.e. deleted or updated) annotations.

  • dataset ("public" | "production" | "sandbox" | "flat_630", optional) – Against which FlyWire dataset to query. If None will fall back to the default dataset (see set_default_dataset()).

  • **filters – Additional filter queries. See Examples. This works only if materialization!=False.

Returns:

table

Return type:

pandas.DataFrame