from caveclient import CAVEclient
url = "https://global.brain-wire-test.org/"
datastack = "fish1_full"
client = CAVEclient(datastack_name=datastack, server_address=url)
client.info.get_datastacks()
['h01_c3_flat', 'fish1_full', 'fish1_test']
# get existing tables
all_tables = client.annotation.get_tables()
all_tables
['synapses_axax', 'synapses_axde', 'synapses_axax_test']
# create a new table
table_name = "soma_ids_locations"
description = """
This table contains soma IDs and their locations. The patient's position of the soma and the tag are the soma's fixed ID numbers. Data source: gs://fish1-public/lores_cbs_231218"""
schema_name = "bound_tag"
client.annotation.create_table(table_name=table_name,
schema_name=schema_name,
description=description,
voxel_resolution=[8, 8, 30])
<Response [200]>
all_tables = client.annotation.get_tables()
all_tables
['synapses_axax', 'synapses_axde', 'soma_ids_locations']