R/average_counts_rtree.R
count_within_detail.RdVery fast version using rtree::countWithinDistance().
count_within_detail(csd, phenotypes = NULL, radii)Cell seg data.
Optional list of phenotypes to include. If omitted,
will use unique_phenotypes(csd). Counts are from each cell to each
phenotype.
The radius or radii to search within.