ccf_streamlines.angle.find_closest_streamline#

ccf_streamlines.angle.find_closest_streamline(coord, closest_surface_voxel_reference, surface_paths, resolution=(10, 10, 10), volume_shape=(1320, 800, 1140))#

Find the nearest streamline of a CCF coordinate.

If voxel is not in the reference file, returns None.

Parameters
  • coord ((3, ) array) – Coordinates of point (microns)

  • closest_surface_voxel_reference (str or array) – Either a file path to a HDF5 file containing information about the closest streamlines for voxels within the isocortex, or the already loaded array from that file.

  • surface_paths (str or h5py file object) – Either a file path to an HDF5 file containing information about the paths between the top and bottom of cortex or an open h5py file object referring to that information.

  • resolution (tuple, default (10, 10, 10)) – 3-tuple of voxel dimensions in microns

  • volume_shape (tuple, default (1320, 800, 1140)) – 3-tuple of volume shape in voxels

Returns

streamline_coords – 3-D coordinates of streamline in microns

Return type

(N, 3) array