View source: R/MULTIseq.Classification.Suite.R
| localMaxima | R Documentation | 
'localMaxima' is an internal function to 'classifyCells' and 'findReclassCells' which identifies local maxima amongst sample barcode UMI probability density functions.
 localMaxima(x) | x | Probability-density function, as generated using 'bkde'. | 
As implemented by 'Tommy' at https://stackoverflow.com/questions/6836409/finding-local-maxima-and-minima
Vector of local maxima
Chris McGinnis
  model <- approxfun(bkde(barTable.n[,i], kernel="normal"))
  x <-  seq(from=quantile(barTable.n[,i],0.001), to=quantile(barTable.n[,i],0.999),
    length.out=100)
  extrema <- localMaxima(model(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.