50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

SlideCNA (version 0.1.0)

long_to_bin: Convert to wide bin x genes + metadata format

Description

This function will combine beads into bins, taking the average expression intensities, average positions, most common cluster seurat cluster, and most common cluster/tissue type of constituent beads

Usage

long_to_bin(dat_long, plot_directory, spatial = TRUE)

Value

data.table of expression intensities at aggregated bin level

Arguments

dat_long

data.table of bead expression intensities per gene with metadata in long format

plot_directory

output plot directory path

spatial

True if using spatial information