Compute pairwise modification co-occurrence odds ratios.
Source:R/odds-ratios.R
compute_odds_ratios.RdGiven a modkit mod_calls.tsv.gz file, build a per-read binary
modification matrix for each tRNA and compute Fisher's exact test
for each pair of positions. This is computationally expensive for
full datasets; use the refs parameter to restrict to specific
tRNAs.
Examples
path <- clover_example("ecoli/mod_calls.tsv.gz")
compute_odds_ratios(path)
#> # A tibble: 1 × 7
#> ref pos1 pos2 odds_ratio log_odds_ratio p_value total_obs
#> <chr> <chr> <chr> <dbl> <dbl> <dbl> <int>
#> 1 host-tRNA-Glu-TTC-1-1 34 46 2.5 0.916 0.516 15