Query a BigWig file at pre-defined GRanges bins via megadepth
Source:R/helpers_megadepth.R
dot-query_megadepth_bins.RdWrites bins_gr directly to a temporary BED file (no re-tiling) and runs
the megadepth binary through system2(). Results are aligned back to bins_gr by start
position, so the returned vector always has length length(bins_gr).
Bins with no BigWig coverage receive a score of 0.
Arguments
- file
Path to BigWig file (local or remote URL).
- bins_gr
GRanges of pre-computed bins to query.
- op
Summarization operation: "mean" (default), "sum", "min", "max".
- nans_to_zeros
Replace NA/NaN results with 0 (default TRUE).
- verbose
Logical. If
TRUE, print megadepth progress output. IfFALSE(default), suppress routine megadepth messages.