inst/extdata/wrappers_clustering/flowPeaks.R

wrapper.clustering.flowPeaks <- WrapTool(
  name = 'flowPeaks',
  type = 'clustering',
  r_packages = c('flowPeaks'),
  fun.build_model =
    function(input, tol = 0.1, h0 = 1, h = 1.5) {
      res <- flowPeaks::flowPeaks(x = input, tol = tol, h0 = h0, h = h)
      fp$peaks.cluster
    },
  fun.extract = function(model)
    model
)
davnovak/SingleBench documentation built on Dec. 19, 2021, 9:10 p.m.