ccf_streamlines.projection.Isocortex2dProjector#

class ccf_streamlines.projection.Isocortex2dProjector(projection_file, surface_paths_file, hemisphere='both', view_space_for_other_hemisphere=False)#

2D projection of common cortical framework volumes

Parameters
  • projection_file (str) – File path to an HDF5 file containing the 2D projection information.

  • surface_paths_file (str) – File path to an HDF5 file containing information about the paths between the top and bottom of cortex.

  • hemisphere ({"both", "left", "right"}) – Whether to create a final projection with both hemispheres (default) or just left or right.

  • view_space_for_other_hemisphere (bool, str, or int, optional) – If False (default), view is used as-is. If True, view is assumed to have the right half reserved for the other hemisphere, so that returning both hemispheres will result in a projection the size of the original view. This is valid for the ‘top’, ‘back’, ‘bottom’, and ‘front’ views. If the value is a str, it must be one of ‘flatmap_dorsal’, flatmap_butterfly’, ‘medial’, ‘side’, or ‘rotated’, which will use a preset value to place the hemispheres adjacent or near adjacent when used with the views of the same name. If an integer of value n, the right-most n voxels will be removed before combining both hemispheres to allow the user to customize the spacing.

__init__(projection_file, surface_paths_file, hemisphere='both', view_space_for_other_hemisphere=False)#

Methods

__init__(projection_file, surface_paths_file)

project_path_ordered_data(data)

Project 1D data corresponding to the list of streamlines

project_volume(volume[, kind])

Create a maximum projection view of the volume