select_fov_images#

select_fov_images(metadata: DataFrame, cells_per_fov: int, bins: list[int], counts: list[int]) list[dict][source]#

Selects FOV images from dataset within each volume bin.

Selected FOVs must not contains any outliers or cells in a state other than M0. Selected FOVs will have exactly the number of specified cells. Average volume of all cells in the FOV are used to determine which volume bin the FOV falls in. FOVs are evaluated in the order they appear in the metadata.

Parameters:
  • metadata – Quilt package metadata for FOV images.

  • cells_per_fov – Number of cells per FOV.

  • bins – Cell volume bin boundaries.

  • counts – Number of FOVs to select from each cell volume bin.

Returns:

List of selected FOV image paths and cell ids