read_chrom_size {BPRMeth} | R Documentation |
read_chrom_size
reads a file containing genome chromosome
sizes using the fread
function.
read_chrom_size(file, delimiter = "\t")
file |
File name |
delimiter |
Delimiter format the columns are splitted. Default is tab. |
A data.table
object.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
chr_file <- system.file("extdata", "hg19.chr.sizes", package = "BPRMeth") chr_data <- read_chrom_size(chr_file) # Extract the size of chr1 chr_data[1]