
Convert Glycan Structures to GlyTouCan Accessions
struc_to_glytoucan.RdMatch glycan structures to accessions in the bundled glydb_data.
Arguments
- strucs
A
glyrepr::glycan_structure()vector or a character vector of IUPAC-condensed glycan structures.
Value
A character vector of GlyTouCan accessions. Structures without a
bundled match are returned as NA values in their original positions, and
a warning is emitted.
Details
Missing anomeric positions are filled with
glyrepr::fill_anomer_pos() in both the input and bundled structures before
matching. When multiple bundled rows normalize to the same structure, the
accession from the first row is returned.