This function assigns the data to hexagons.
Examples
all_centroids_df <- s_curve_obj$s_curve_umap_hb_obj$centroids
assign_data(data = s_curve_noise_umap_scaled, centroid_df = all_centroids_df)
#> # A tibble: 3,750 × 4
#> emb1 emb2 ID hb_id
#> <dbl> <dbl> <int> <int>
#> 1 0.270 0.839 1 200
#> 2 0.788 0.466 2 132
#> 3 0.771 0.319 3 102
#> 4 0.306 0.542 5 140
#> 5 0.549 0.806 6 189
#> 6 0.166 0.259 7 79
#> 7 0.672 0.596 9 160
#> 8 0.735 0.354 10 101
#> 9 0.839 0.467 11 132
#> 10 0.240 0.0903 12 35
#> # ℹ 3,740 more rows