Computes per-chromosome and genome-wide summary statistics for a block table
returned by run_Big_LD_all_chr.
Value
A data.frame with one row per chromosome (plus one row for
the genome-wide summary) and columns:
CHRChromosome (or
"GENOME").n_blocksNumber of blocks.
min_bp,median_bp,mean_bp,max_bpBlock size distribution in base pairs.
total_bp_coveredSum of block sizes (bp).
Examples
# \donttest{
blocks <- data.frame(
CHR = c("1", "1", "2"),
start.bp = c(1000L, 500000L, 2000L),
end.bp = c(80000L, 650000L, 200000L)
)
summarise_blocks(blocks)
#> CHR n_blocks min_bp median_bp mean_bp max_bp total_bp_covered
#> 1 1 2 79001 114501 114501.0 150001 229002
#> 2 2 1 198001 198001 198001.0 198001 198001
#> 3 GENOME 3 79001 150001 142334.3 198001 427003
# }