annotation_range: Create range-based annotations for A3

View source: R/a3.R

annotation_rangeR Documentation

Create range-based annotations for A3

Description

Creates an annotation spec (named list) with an A3Range index and optional type, for use with create_A3().

Usage

annotation_range(x, type = NULL)

Arguments

x

Integer matrix with 2 columns corresponding to start and end positions of the annotation (1-based indexing).

type

Optional character scalar: Annotation type. NULL is treated as the empty string in the canonical A3 representation.

Value

Named list with index (A3Range) and type (character)

Author(s)

EDG

Examples

# Create a region annotation for ranges 3-10 and 15-22, of type "repeat"
annotation_range(rbind(c(3L, 10L), c(15L, 22L)), type = "repeat")

rtemis.a3 documentation built on April 29, 2026, 1:06 a.m.