updateFlowHist: updateFlowHist

Description Usage Arguments Details Value Author(s) Examples

View source: R/FlowHist.R

Description

Update, and optionally re-analyze, a FlowHist object

Usage

1
2
updateFlowHist(fh, linearity = NULL, debris = NULL, samples = NULL,
  analyze = TRUE)

Arguments

fh

a FlowHist object

linearity

character, either "variable", the default, or "fixed". If "fixed", linearity is fixed at 2; if "variable", linearity is fit as a model parameter.

debris

character, either "SC", the default, or "MC", to set the debris model component to the Single-Cut or Multi-Cut models.

samples

integer, the number of samples in the data

analyze

logical, if TRUE the updated model will be analyzed immediately

Details

Allows users to switch the debris model from Single-Cut to Multi-Cut (or vice-versa), or to toggle linearity between fixed and variable.

Value

a FlowHist object with the modified values of linearity and/or debris, and, if analyze was TRUE, a new NLS fitting

Author(s)

Tyler Smith

Examples

1
2
3
4
5
6
## defaults to 256 bins:
library(flowPloidyData) 
fh1 <- FlowHist(file = flowPloidyFiles()[1], channel = "FL3.INT.LIN")
## default is Single-Cut, change that to Multi-Cut:
fh1mc <- updateFlowHist(fh1, debris = "MC")
plot(fh1)

flowPloidy documentation built on Nov. 8, 2020, 8:04 p.m.