Read a per-read charging likelihood file produced by the tRNA sequencing
pipeline and binarize it at ml_threshold. Unlike read_charging(), which
returns per-tRNA aggregate counts, this returns one row per read and is the
input required by compute_charging_odds_ratios().
Examples
path <- clover_example("ecoli/charging_calls.tsv.gz")
read_charging_calls(path)
#> # A tibble: 15 × 3
#> read_id ref charged
#> <chr> <chr> <int>
#> 1 read_1 host-tRNA-Glu-TTC-1-1 1
#> 2 read_2 host-tRNA-Glu-TTC-1-1 1
#> 3 read_3 host-tRNA-Glu-TTC-1-1 1
#> 4 read_4 host-tRNA-Glu-TTC-1-1 0
#> 5 read_5 host-tRNA-Glu-TTC-1-1 1
#> 6 read_6 host-tRNA-Glu-TTC-1-1 0
#> 7 read_7 host-tRNA-Glu-TTC-1-1 0
#> 8 read_8 host-tRNA-Glu-TTC-1-1 1
#> 9 read_9 host-tRNA-Glu-TTC-1-1 0
#> 10 read_10 host-tRNA-Glu-TTC-1-1 0
#> 11 read_11 host-tRNA-Glu-TTC-1-1 0
#> 12 read_12 host-tRNA-Glu-TTC-1-1 0
#> 13 read_13 host-tRNA-Glu-TTC-1-1 0
#> 14 read_14 host-tRNA-Glu-TTC-1-1 1
#> 15 read_15 host-tRNA-Glu-TTC-1-1 0