Read chromosome sizes from UCSC and return as a tibble with one row per chromosome. The underlying data is pulled from here: https://hgdownload.soe.ucsc.edu/downloads.html
Usage
read_ucsc_chrom_sizes(
dir,
genome = c("hg38", "mm39", "mm10", "mm9", "hg19"),
keep_chromosomes = "chr[0-9]+|chrX|chrY",
timeout = 300
)