Specify the Census search space with an obs_value_filter
parameter in find_nearest_obs
#1305
Labels
obs_value_filter
parameter in find_nearest_obs
#1305
Description
Currently
find_nearest_obs
finds the closest Census cells to user's data. It would be a great addition to have the ability for the search to be constrained to a subset of user-defined Census cells instead of all Census cells.To provide consistency with other census API, a simple parameter
obs_value_filter
(as used in theget_anndata
API) can be added to limit the search to Census cells meeting the filter criteria.Context
The
find_nearest_obs
functionality is great and working as intended, however many times I can be interested on searching the most similar cells against a specific subset of Census defined by a biological context, specially when I know my query cells are from the same/similar biological context.Impact
This limits the ability to utilize the
find_nearest_obs
to its full extent in its current form.Ideal behavior
A parameter
obs_value_filter
infind_nearest_obs
to limit the search to Census cells meeting the filter criteria.The text was updated successfully, but these errors were encountered: