Previously when using the "collapseKeys" parameter (i.e. telling the script to average over a variable), the mean of cell counts was taken and then the GR value computed. This update changes the script so that a GR value is computed for each cell count and then these values are averaged.
This matches how the GRmetrics R package handles averaging so that the output from the two functions is the same when averaging over variables.
Previously when using the "collapseKeys" parameter (i.e. telling the script to average over a variable), the mean of cell counts was taken and then the GR value computed. This update changes the script so that a GR value is computed for each cell count and then these values are averaged.
This matches how the GRmetrics R package handles averaging so that the output from the two functions is the same when averaging over variables.