glyparse
Parsing Glycan Structure Text Representations
glyparse is quietly becoming the universal reader for glycan text notation.
◆Recent moves
- 1mo ago
Parser output uses glyrepr's public constructor
Switching to glyrepr's public structure constructor fixes tidyverse joins failing on parsed structures under glyrepr 0.13.0. A one-line compatibility fix, but it unblocked a common downstream pattern.
View source ↗ - 1mo ago
Four new notations parsed and auto-detected
GlyCAM IUPAC, IUPAC-compact, KCF, and LINUCS each get a parser, and auto_parse() detects and routes them, so callers no longer need to identify their encoding. The same release absorbs a batch of GlycoCT and WURCS edge cases and adds opt-in progress bars for large inputs.
View source ↗ - 1mo ago
WURCS and GlycoCT edge cases handled
Ambiguous residues, unknown ring closures, N-sulfate substituent codes, and unknown reducing-end ring positions are handled correctly. Narrow fixes that only surface on real database exports.
View source ↗ - 3mo ago
on_failure lets parsers return NA instead of erroring
An on_failure parameter on every parser chooses between erroring and returning NA for unparsable strings, defaulting to the old behavior. Small in surface, but it is what makes parsing a large vector of mixed-quality strings practical.
View source ↗ - 5mo ago
IUPAC parser accepts plain-text equivalents
parse_iupac_extended() accepts alpha, beta, and -> spellings in place of their symbols. Input tolerance for structures that passed through systems that mangled Unicode.
View source ↗ - 5mo ago
Parsers get 10-30x faster on large inputs
A 10-30x speedup across the parser functions for large inputs, plus removal of a deprecated dplyr call. Parsing is the first step of every glycoverse pipeline, so this is felt on every run.
View source ↗