annotation_position: Create position-based annotations for A3

View source: R/a3.R

annotation_positionR Documentation

Create position-based annotations for A3

Description

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

Usage

annotation_position(x, type = NULL)

Arguments

x

Integer vector: 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 (A3Position) and type (character)

Author(s)

EDG

Examples

# Create a site annotation for positions 5 and 17, of type "active site"
annotation_position(c(5L, 17L), type = "active site")

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