Learn R Programming

SlideCNA (version 0.1.0)

bin_metadata: 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
)

Value

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

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