Extract all unique connected subgraphs (motifs) from the input glycans up to a specified size.
This function can be useful combined with count_motifs() or glydet::quantify_motifs().
If so, set alignment to "substructure" for these functions.
Arguments
- glycans
One of:
A
glyrepr::glycan_structure()vector.A glycan structure string vector. All formats supported by
glyparse::auto_parse()are accepted.
- max_size
The maximum number of monosaccharides in the extracted motifs. Default is 3. Note that setting this value very large can be computationally expensive. Try the default value first, and increase it progressively if needed.
Value
A glyrepr::glycan_structure() vector containing the unique extracted motifs.
