Decoding structure-function relationships of glycans