glyrepr
Representation for Glycan Compositions and Structures
The type system the rest of the glycan stack is built on, being hardened one breaking change at a time.
◆Recent moves
- 26d ago
Name-preserving construction from trusted graphs; partial-failure coercion
The low-level constructor and validation APIs gain name-preserving construction from trusted glycan graphs, which is what a downstream package needs to build structures without going through string parsing. on_failure = 'na' lets a coercion keep its valid elements and report one aggregated warning rather than failing wholesale, continuing this package's pattern of making partial success representable.
View source ↗ - 1mo ago
Structures convert to and from graph tibbles; parallel mapping dropped
structure_nodes(), structure_edges() and structure_from_tibbles() open the type to ordinary tidyverse manipulation, letting a user take a structure apart and rebuild it without touching internals. Removing the .parallel argument along with the furrr and future dependencies is the other half of the release and the more characteristic move: this package sheds surface as readily as it adds it. The renaming of get_anomer_pos() to infer_anomer_pos() is a naming honesty fix, with the old name kept as an alias.
View source ↗ - 1mo ago
Faster structure vector creation
A performance optimisation for creating glycan structure vectors, with no API change. It matters mainly because everything in the cohort constructs these vectors constantly.
View source ↗ - 3mo ago
Anomeric position helpers for structures with missing detail
get_anomer_pos() and fill_anomer_pos() address the routine case where measured structures lack anomeric detail, giving the cohort one place to handle it. glyanno later removes its own copy in favour of these, which is the boundary discipline this ecosystem keeps applying.
View source ↗ - 3mo ago
Structure level becomes a vector-wide scalar; sialic acid shorthand parsed
get_structure_level() returning one scalar for a whole vector, computed from combined residue and linkage detail, is a semantic decision rather than a convenience: a vector now has a resolution, and mixed vectors resolve to their common level. Parsing E and L as NeuAc in composition strings accepts a widespread shorthand while warning that sialic acid linkage information is being dropped, which is the right trade to make loudly.
View source ↗ - 6mo ago
Replaces a deprecated dplyr call to silence warnings
Swaps a deprecated dplyr function for its replacement to stop warnings reaching users. Pure upstream housekeeping.
View source ↗