#' Estimate log-normal distribution for the library sizes
#'
#' @param LS observed library sizes
#' @param batch batches
#'
#' @return Estimated log-normal parameter library sizes
#' @importFrom fitdistrplus fitdist
estLibSizeDistr = function(LS, batch){
tapply(LS, batch, function(L.b){
fitdist(L.b, distr = "lnorm")$estimate
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.