read_regions: Read a GRanges from a variety of possible file types.

View source: R/file_format_io.R

read_regionsR Documentation

Read a GRanges from a variety of possible file types.

Description

This function attempts to read in a set of genomic regions as a GRanges object. It does its best to auto-detect the input file type. If it cannot do so, it throws an error.

Usage

read_regions(filename)

Arguments

filename

The file to read regions from.

Value

a GRanges object.

Possible input file types include: RDA or RDS file (containing a GRanges or data frame), narrowPeak, BED, GFF, and SAF.


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.