R/proliferationIndex.R

Defines functions proliferationIndex

Documented in proliferationIndex

## =========================================================================##
## =========================================================================##
##                          proliferationIndex                              ##
## =========================================================================##
## =========================================================================##
proliferationIndex <- function(object)
{
  tot.events <- sum(object@modelPoints$y)
  # absolute values of cells is %/100*tot.events
  my.count <- round((object@generations/100) * tot.events)
  temp <- vector()
  for(i in 1:length(object@generations)) {
    temp[i] <- (my.count[i] / 2^(i-1))
  }
  prolif.index <- (sum(my.count)/sum(temp))
  return(prolif.index)
}

Try the flowFit package in your browser

Any scripts or data that you put into this service are public.

flowFit documentation built on April 28, 2020, 9:04 p.m.