N-glycosylation can occur if the amino acid sequence comprises the consensus sequence NXS/T (where X is any amino acid except for P). O-glycans are preferrably detected on serine or threonine residues, but can also be connected to hydroxylysine or hydroxyproline.