allensdk.api.queries.tree_search_api module

class allensdk.api.queries.tree_search_api.TreeSearchApi(base_uri=None)[source]

Bases: allensdk.api.api.Api

See Searching a Specimen or Structure Tree for additional documentation.

get_tree(self, kind, db_id, ancestors=None, descendants=None)[source]

Fetch meta data for the specified structure or specimen.

Parameters:
kind : string

‘Structure’ or ‘Specimen’

db_id : integer

The id of the structure or specimen to search.

ancestors : boolean, optional

whether to include ancestors in the response (defaults to False)

descendants : boolean, optional

whether to include descendants in the response (defaults to False)

Returns:
dict

parsed json response data