R/extract_variant_set.R
count_index_records.RdCounts, for each span, the GDS records whose position lies in
[start, end] on chr, from a build_variant_index
index. This is the record count before any filter, the quantity the
large-gene segmentation of GLOWpipeline::build_scan_regions thresholds
on, because it depends only on the file and costs two binary searches per
span.
count_index_records(variant_index, chr, start, end)An integer vector of counts, one per span. A chromosome absent from the index gives 0.
if (FALSE) { # \dontrun{
idx <- build_variant_index("chr22.gds")
genes <- define_regions_gene(chr = 22)
n_rec <- count_index_records(idx, genes$chr, genes$start, genes$end)
} # }