get_streamlines_for_region#

brainrender.atlas_specific.allen_brain_atlas.streamlines.get_streamlines_for_region(region, force_download=False)[source]#

Using the Allen Mouse Connectivity data and corresponding API, this function finds experiments whose injections were targeted to the region of interest and downloads the corresponding streamlines data from the Allen mesoscale connectivity dataset on Google Cloud Storage. By default, experiments are selected for only WT mice and only when the region was the primary injection target.

Parameters:
  • region (str) – Acronym of the brain region to search for.

  • force_download (bool) – If True, re-download even if cached. Default False.

Returns:

Streamlines data, or None if no experiments are found.

Return type:

list of pd.DataFrame or None