read_chrom_size {BPRMeth} | R Documentation

## Read genome chromosome sizes file

### Description

`read_chrom_size` reads a file containing genome chromosome sizes using the `fread` function.

### Usage

    read_chrom_size(file, delimiter = "\t")

### Arguments

`file` | File name
`delimiter` | Delimiter format the columns are splitted. Default is tab.

### Value

A `data.table` object.

### Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

### See Also

`read_met`, `read_anno`

### Examples

    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]

[Package BPRMeth version 1.14.1 Index]