parse_iupac_extended() andparse_iupac_short() now support generic monosaccharides,e.g. “Hex”, “HexNAc”, “HexN”.parse_linear_code() to parse Linear Codestrings.auto_parse() now supports Linear Code strings.parse_iupac_extended().parse_wurcs().parse_iupac_short().parse_glycoct().glyreprv0.7.0.parse_iupac_condensed() andparse_iupac_short() now require the reducing-endmonosaccharide to have anomer information. For example, “Neu5Ac(a2-” and“Neu5Aca-” are valid, but “Neu5Ac” is not.parse_pglyco_struc() now support “aH” and “pH”monosaccharides.auto_parse() to automatically detect and parsedifferent glycan structure string formats.Better error messages. Before:
>parse_iupac_condensed("bad_glycan")Error in `purrr::map()` at glyparse/R/struc-parser-wrapper.R:13:3:ℹ In index: 1.Caused by error in `value[[3L]]()`:! Could not parse IUPAC-condensed string: {.val {x}}ℹ Invalid characters or format in IUPAC-condensed stringRun `rlang::last_trace()` to see where the error occurred.Now:
>parse_iupac_condensed("bad_glycan")Error in `parse_iupac_condensed()`:! Can't parse: "bad_glycan"Run `rlang::last_trace()` to see where the error occurred.parse_glycoct() to parse glycans in GlycoCTformat.parse_iupac_short(),parse_iupac_extended(),parse_iupac_condensed(),parse_wurcs() nowsupport multiple substituents on the same monosaccharide, to align withthe updates inglyrepr v0.5.0.