read_regions {NGScopy} | R Documentation

## Read regions from a data.frame, a file or a connection.

### Description

Read regions from a data.frame, a file or a connection.

### Usage

    read_regions(x)

### Arguments

`x` | data.frame or character, the regions in study. A data.frame with three columns (chr/start/end), a file path or a connection with three columns (chr/start/end) without column names. Return an empty data.frame if "", "NULL" or NULL.

### Value

data.frame of three columns (chr/start/end)

### Author(s)

Xiaobei Zhao

### Examples

    read_regions("
    chr1 0 249250621
    chr2 0 243199373
    chr3 0 198022430
    chr4 0 191154276
    chr5 0 180915260
    chr6 0 171115067
    ")

[Package NGScopy version 1.14.0 Index]