| Title: | Glycan Structure Database |
|---|---|
| Description: | Provides a comprehensive database of glycan structures from GlyTouCan, including fully determined glycan structures with complete linkage, substituent, anomer, and monosaccharide information. This database serves as a foundational resource for the glycoverse ecosystem, enabling glycan structure analysis, comparison, and research applications. |
| Authors: | Bin Fu [aut, cre, cph] (ORCID: <https://orcid.org/0000-0001-8567-2997>) |
| Maintainer: | Bin Fu <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.7.2 |
| Built: | 2026-10-22 19:52:58 UTC |
| Source: | https://github.com/glycoverse/glydb |
Get unique glycan compositions from glydb_data as a glyrepr::glycan_composition() vector.
glydb_compositions( mono_type = "concrete", species = NULL, glycan_type = NULL, mono_range = NULL )glydb_compositions( mono_type = "concrete", species = NULL, glycan_type = NULL, mono_range = NULL )
mono_type |
Either "generic" or "concrete". Default is "concrete".
See |
species |
A string of specie names. See |
glycan_type |
A string of glycan types. Can be "HMO", "N", "GSL", "GAG", "O", "O-GalNAc", "O-GlcNAc", "O-Man", "O-Fuc", "O-Glc", or "GPI". When "O", all O-linked glycans are included. Specific O-glycan types only include that subtype. Default is NULL, which means glycans of all types are included. |
mono_range |
A named list for filtering compositions by monosaccharide counts.
Each element should be an integer vector of length 2 specifying the minimum and maximum
count for that monosaccharide. Monosaccharides not specified will be excluded (count = 0).
Use |
A glyrepr::glycan_composition() vector, with a confidence attribute as a
numeric vector with the same length.
The returned value has a confidence attribute:
a numeric vector of the same length as the result containing log-transformed
citation counts for each glycan in glydb_data.
When multiple glycans are aggregated into lower-resolution structures or compositions,
the maximum confidence score is retained.
The confidence attribute is preserved by vector operations that subset,
reorder, repeat, combine, or replace glycans. When vectors containing the
same glycan with different confidence values are combined, the maximum
confidence is used for every occurrence of that glycan.
glydb_compositions() glydb_compositions(mono_type = "generic") glydb_compositions(species = "Homo sapiens") glydb_compositions(glycan_type = "N") glydb_compositions(glycan_type = "N", mono_range = list(Hex = c(5L, 10L))) glydb_compositions(mono_range = list(Hex = c(3L, 9L), HexNAc = c(2L, 6L)))glydb_compositions() glydb_compositions(mono_type = "generic") glydb_compositions(species = "Homo sapiens") glydb_compositions(glycan_type = "N") glydb_compositions(glycan_type = "N", mono_range = list(Hex = c(5L, 10L))) glydb_compositions(mono_range = list(Hex = c(3L, 9L), HexNAc = c(2L, 6L)))
A curated dataset glycan structures from GlyGen Data v2.12.1, with 49,728 glycan structures currently available.
glydb_dataglydb_data
A tibble with 49,728 rows and 6 variables:
glytoucan_ac: GlyTouCan accession.
glycan_structure: Glycan structure (glyrepr::glycan_structure()).
glycan_composition: Glycan composition (glyrepr::glycan_composition()).
species: Specie names, separated by semicolons. Unknown species are NAs.
glycan_type: Glycan type, such as "HMO", "N", "GSL", "GAG", "O",
"O-GalNAc", "O-GlcNAc", "O-Man", "O-Fuc", "O-Glc", or "GPI".
confidence: Confidence score used to rank glycans.
https://data.glygen.org/ln2data/releases/data/v-2.12.1/reviewed/
Get a character vector of supported species from glydb_data.
glydb_species()glydb_species()
A character vector of supported species.
glydb_species()glydb_species()
Get unique glycan structures from glydb_data as a glyrepr::glycan_structure() vector.
glydb_structures( structure_level = "intact", species = NULL, glycan_type = NULL, mono_range = NULL, mono_type = "concrete" )glydb_structures( structure_level = "intact", species = NULL, glycan_type = NULL, mono_range = NULL, mono_type = "concrete" )
structure_level |
Either "intact" or "topological". Default is "intact".
See |
species |
A string of specie names. See |
glycan_type |
A string of glycan types. Can be "HMO", "N", "GSL", "GAG", "O", "O-GalNAc", "O-GlcNAc", "O-Man", "O-Fuc", "O-Glc", or "GPI". When "O", all O-linked glycans are included. Specific O-glycan types only include that subtype. Default is NULL, which means glycans of all types are included. |
mono_range |
A named list for filtering structures by monosaccharide counts.
Each element should be an integer vector of length 2 specifying the minimum and maximum
count for that monosaccharide. Monosaccharides not specified will be excluded (count = 0).
Use |
mono_type |
Either "generic" or "concrete". Default is "concrete".
See |
A glyrepr::glycan_structure() vector, with a confidence attribute as a
numeric vector with the same length.
The returned value has a confidence attribute:
a numeric vector of the same length as the result containing log-transformed
citation counts for each glycan in glydb_data.
When multiple glycans are aggregated into lower-resolution structures or compositions,
the maximum confidence score is retained.
The confidence attribute is preserved by vector operations that subset,
reorder, repeat, combine, or replace glycans. When vectors containing the
same glycan with different confidence values are combined, the maximum
confidence is used for every occurrence of that glycan.
glydb_structures() glydb_structures(structure_level = "topological") glydb_structures(mono_type = "generic") glydb_structures(structure_level = "topological", mono_type = "generic") glydb_structures(species = "Homo sapiens") glydb_structures(glycan_type = "N") glydb_structures(glycan_type = "N", mono_range = list(Hex = c(5L, 10L))) glydb_structures(mono_range = list(Hex = c(3L, 9L), HexNAc = c(2L, 6L)))glydb_structures() glydb_structures(structure_level = "topological") glydb_structures(mono_type = "generic") glydb_structures(structure_level = "topological", mono_type = "generic") glydb_structures(species = "Homo sapiens") glydb_structures(glycan_type = "N") glydb_structures(glycan_type = "N", mono_range = list(Hex = c(5L, 10L))) glydb_structures(mono_range = list(Hex = c(3L, 9L), HexNAc = c(2L, 6L)))
Look up GlyTouCan accessions in the bundled glydb_data.
glytoucan_to_struc(glytoucan_ac)glytoucan_to_struc(glytoucan_ac)
glytoucan_ac |
A character vector of GlyTouCan accessions. |
A glyrepr::glycan_structure() vector. Accessions without a bundled
match are returned as NA values in their original positions, and a
warning is emitted.
glytoucan_to_struc("G17689DH")glytoucan_to_struc("G17689DH")
Match glycan structures to accessions in the bundled glydb_data.
struc_to_glytoucan(strucs)struc_to_glytoucan(strucs)
strucs |
A |
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.
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.
struc_to_glytoucan(glydb_data$glycan_structure[1])struc_to_glytoucan(glydb_data$glycan_structure[1])