Learn R Programming

biodosetools (version 3.7.2)

calculate_aberr_table: Calculate aberrations table

Description

Calculate aberrations table

Usage

calculate_aberr_table(
  data,
  type = c("count", "case"),
  aberr_module = c("dicentrics", "translocations", "micronuclei"),
  assessment_u = 1
)

Value

Data frame containing cell count (\(N\)), aberrations (\(X\)), and other coefficients (dispersion index, \(u\)-value, ...), as well as raw count or case data.

Arguments

data

Count or case data.

type

Type of input data. Either "count" and "case".

aberr_module

Aberration module, required for type = "case".

assessment_u

Expected \(u\)-value of the assessment. For a Poisson distribution this should be unity.

Examples

Run this code
data <- data.frame(
    ID = c("example1", "example2"),
    C0 = c(302, 160),
    C1 = c(28, 55),
    C2 = c(22, 19),
    C3 = c(8, 17),
    C4 = c(1, 9),
    C5 = c(0, 4)
)


calculate_aberr_table(data,
                      type = "case",
                      aberr_module = "dicentrics",
                      assessment_u = 1)

Run the code above in your browser using DataLab