Skip to contents

Returns a vector containing the middle point of each feature in a dna_seg object. Useful to prepare annotations, for example.

Usage

middle(dna_seg)

Arguments

dna_seg

A dna_seg object.

Value

A numeric vector.

See also

Author

Lionel Guy

Examples

## Load data
data(barto)

## Get middles of the first dna_seg
mid <- middle(barto$dna_segs[[1]])