Learn R Programming

glyparse (version 0.5.5)

auto_parse: Automatic Structure Parsing

Description

Detect the structure string type and use the appropriate parser to parse automatically. Mixed types are supported.

Supported types:

  1. GlycoCT

  2. IUPAC-condensed

  3. IUPAC-extended

  4. IUPAC-short

  5. WURCS

  6. Linear Code

  7. pGlyco

  8. StrucGP

Usage

auto_parse(x)

Value

A glyrepr::glycan_structure() object.

Arguments

x

A character vector of structure strings. NA values are allowed and will be returned as NA structures.

Examples

Run this code
# Single structure
x <- "Gal(b1-3)GlcNAc(b1-4)Glc(a1-"  # IUPAC-condensed
auto_parse(x)

# Mixed types
x <- c(
  "Gal(b1-3)GlcNAc(b1-4)Glc(a1-",  # IUPAC-condensed
  "Neu5Aca3Gala3(Fuca6)GlcNAcb-"  # IUPAC-short
)
auto_parse(x)

Run the code above in your browser using DataLab