Skip to contents

Calculate fold change from observed and expected depth-of-coverage

Usage

calc_fc(obs, exp, dir)

Arguments

obs

Observed depth-of-coverage

exp

Expected depth-of-coverage

dir

The direction of fold change to calculate - "gain" or "loss"

Value

The calculated fold change

Examples

calc_fc(10, 2, dir = "gain")
#> [1] 5