parse_pglyco_struc: Parse pGlyco Structures

View source: R/parse-pglyco.R

parse_pglyco_strucR Documentation

Parse pGlyco Structures

Description

Parse pGlyco-style structure characters into a glyrepr::glycan_structure(). See example below for the structure format.

Usage

parse_pglyco_struc(
  x,
  on_failure = "error",
  progress = FALSE,
  validate = lifecycle::deprecated()
)

Arguments

x

A character vector of pGlyco-style structure strings. NA values are allowed and will be returned as NA structures.

on_failure

How to handle parsing failures. "error" aborts when a structure cannot be parsed. "na" returns NA at invalid positions.

progress

Whether to show a progress bar while parsing.

validate

Deprecated and ignored. Array records are always validated by glyrepr::structure_from_arrays().

Value

A glyrepr::glycan_structure() object.

Examples

glycan <- parse_pglyco_struc("(N(F)(N(H(H(N))(H(N(H))))))")
print(glycan, verbose = TRUE)


glyparse documentation built on Oct. 31, 2026, 9:06 a.m.