read_overlap_file {segmenter} | R Documentation

## Read `segments` files

### Description

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

### Usage

    read_overlap_file(file, states, regions)

### Arguments

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

### Value

A `matrix`

### Examples

    # locate the file
    fl <- file.path(tempdir(), 'GM12878_3_overlap.txt')

    # read the file
    read_overlap_file(fl)

[Package segmenter version 1.0.0 Index]