Closed mattias-erhardsson closed 3 months ago
Thanks! On the dev branch, we have recently changed the nomenclature of dynamically generated terminal motifs, to have a "Terminal_" prefix (to really make it clear that this is a terminal motif, rather than the implicit dangling linkage we had before). But you're right in that GlycoDraw was not yet synced with this. Now GlycoDraw correctly handles terminal structures again
The same with annotatefigure; it basically looks for text on the figure that could be a glycan; was confused with the "Terminal" but now can handle it
This issue is fixed with 21049e1
anootate_figure() does not draw terminal glycan structures generated by for example get_differential_expression(). Example code:
For an example that works, just replace the feature_set with 'exhaustive' or 'known'.
GlycoDraw can draw terminal glycans, even though it looks a bit weird. It seems to be interpreted as a modification called "Terminal_" on the left-most glycan. Example:
GlycoDraw('Terminal_Gal(b1-?)[Fuc(a1-?)]GalNAc')
A more logical representation might perhaps be to draw a linkage at the reducing end? If so it seems to me that this would require changes in how terminal structures are determined.