Skip to contents

Fetch GlyTouCan accessions from the GlyGen API and parse the returned IUPAC strings as glyrepr::glycan_structure() values.

Usage

glytoucan_to_struc(glytoucan_ac)

Arguments

glytoucan_ac

A character vector of GlyTouCan accessions.

Value

A glyrepr::glycan_structure() vector. Accessions that cannot be fetched or parsed are returned as NA values in their original positions, and a warning is emitted.

Examples

if (FALSE) { # interactive()
glytoucan_to_struc("G17689DH")
}