bin_metadata: Spatio-molecular binning of relative expression intensities

View source: R/bin.R

bin_metadataR Documentation

Spatio-molecular binning of relative expression intensities

Description

This function combines metadata with binned relative expression intensities

Usage

bin_metadata(
  md,
  dat,
  avg_bead_per_bin = 12,
  pos = TRUE,
  pos_k = 55,
  ex_k = 1,
  hc_function = "ward.D2",
  plot_directory
)

Arguments

md

data.table of metadata of each bead

dat

data.table of smoothed relative expression intensities

avg_bead_per_bin

integer of average number of beads there should be per bin

pos

TRUE if doing spatial and expressional binning, FALSE if just expressional binning

pos_k

positional weight

ex_k

expressional weight

hc_function

hierarchical clustering function

plot_directory

output plot directory path

Value

A data.table of bead metadata combined with binned expression intensities for all genes for all beads


dkzhang777/SlideCNA documentation built on Jan. 25, 2025, 5:53 p.m.