This function replaces all vertex substituents in a glycan structure with empty strings and removes unresolved floating substituents.
Value
An object of the same representation as glycan with all
substituents removed. Graph input retains its vertex IDs and order.
Examples
(glycan <- o_glycan_core_1())
#> <glycan_structure[1]>
#> [1] Gal(b1-3)GalNAc(a1-
#> # Unique structures: 1
remove_substituents(glycan)
#> <glycan_structure[1]>
#> [1] Gal(b1-3)GalNAc(a1-
#> # Unique structures: 1
