This function combines metadata with binned relative expression intensities
bin_metadata(
md,
dat,
avg_bead_per_bin = 12,
pos = TRUE,
pos_k = 55,
ex_k = 1,
hc_function = "ward.D2",
plot_directory
)
A data.table of bead metadata combined with binned expression intensities for all genes for all beads
data.table of metadata of each bead
data.table of smoothed relative expression intensities
integer of average number of beads there should be per bin
TRUE if doing spatial and expressional binning, FALSE if just expressional binning
positional weight
expressional weight
hierarchical clustering function
output plot directory path