Learn R Programming

NGScopy (version 1.6.0)

read_regions: 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)

Examples

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

Run the code above in your browser using DataLab