read_chrom_size: Read genome chromosome sizes file

Description Usage Arguments Value Author(s) See Also Examples

View source: R/process_data.R

Description

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

Usage

1
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

1
2
3
4
5
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]

andreaskapou/BPRMeth documentation built on June 11, 2020, 10:49 p.m.