morphology_corr.lm: Corrects morphology based on scatter or uptake control.

View source: R/morphology_corr_lm.R

morphology_corr.lmR Documentation

Corrects morphology based on scatter or uptake control.

Description

Corrects morphology based on scatter or uptake control.

Usage

morphology_corr.lm(
  fcb,
  uptake,
  channel,
  predictors = NULL,
  subsample = 10000,
  slope = 1,
  updateProgress = NULL,
  ret.model = FALSE
)

Arguments

fcb

the barcoded dataframe, post compensation and preprocessing

uptake

Optional: a dataframe consisting of all cells barcoded with a single level of the barcoding dye

channel

The name (string) of the channel to be corrected, ie. the column name in 'fcb_df'

predictors

A single predictor

subsample

Integer, number of cells to sample (with replacement) for the morphology correction, defaults to 10,000.

updateProgress

used in reactive context (shiny) to return progress information to GUI#'

Value

a tibble/data.frame with the selected channel corrected for fsc and ssc


bjreisman/DebarcodeR documentation built on Oct. 22, 2022, 1:50 a.m.