glydraw
Draw Beautiful Symbol Nomenclature for Glycans
SNFG glycan cartoons stopped being pictures and became ggplot2 geoms, guides and axis labels.
◆Recent moves
- 14d ago
Rendering options consolidated into a single style object
Appearance arguments scattered across eight functions move into style_glydraw(), which is breaking for anyone passing fuc_orient, node sizes, fonts or colours directly. Requiring a complete SNFG palette instead of sparse overrides is the stricter half: it trades convenience for the guarantee that a plot's colours are a known standard rather than a partial edit of one.
View source ↗ - 22d ago
Glycan cartoons become ggplot2 geoms, legends and axis labels
⚡ SPARKThe release that changes what the package is for: cartoons stop being a standalone output and become components of a plot someone else is building. The style object introduced here is what makes that practical, and 0.8.0 then makes it mandatory.
View source ↗ - 1mo ago
Nested side-chain layout preserves residue order and linkage labels
A layout fix for xyloglucan-like nested branches, where residue order and linkage annotations were being lost. One of the geometry corrections that had to land before the drawing could be trusted inside other people's plots.
View source ↗ - 1mo ago
Fucose triangle geometry aligned to rectangle node bounds
Triangle bases and apexes now line up with the bounds used for rectangular nodes, removing a visual inconsistency in mixed-shape cartoons. Small, and exactly the kind of thing SNFG conformance requires.
View source ↗ - 1mo ago
Custom colours, fucose orientation and export scaling; glyexp dependency dropped
The customisation groundwork the later style object generalises: colour overrides, a choice of whether fucose triangles always point up or flex toward their linkage, and output scaling that preserves appearance. Dropping glyexp input from export_cartoons() and removing positional arguments are both the maintainer narrowing the package to drawing, which the ggplot2 work then builds on.
View source ↗ - 1mo ago
Switches to SNFG standard colours
The palette moves to the SNFG standard, with minor line width and node size adjustments. A conformance change users will notice immediately but which adds no capability.
View source ↗