read_segements_file {segmenter} | R Documentation

## Read `segments` files

### Description

The segments files are the output of running `learn_model` and named `<cell>_3_segment.bed`

### Usage

    read_segements_file(file, states)

### Arguments

`file` | A string. The path to the file.
`states` | A `character` vector. The names of the states.

### Value

A `data.frame`

### Examples

    # locate the file
    segmentfile <- file.path(tempdir(), 'GM12878_3_segments.bed')

    # read the file
    segs <- read_segements_file(segmentfile)
    head(segs)

[Package segmenter version 1.0.0 Index]