Why do Asn-Ser and Gln-Thr have different H bonding patterns?

I noticed that Asn-Ser H-bonding is different from the H-bonding between Gln-Thr. However both have the same functional groups. I wasn't able to find any information about this. Maybe it's due to steric effects, but because these striking similarities between Asn and Gln and on the other side Ser and Thr I don't think that is an explanation (but maybe it is, I'm just guessing).
excuse me for the drawing, but I couldn't find an image showing this clear

I found these H-bonding patterns in Fundamentals of Organic Chemistry, McMurry, seventh edition.
update
Are al these H-bonds possible?

• Your threonine in your picture is missing the extra methyl group. Right now it looks the same as the serine. Oct 26 '16 at 10:30
• You are right! I forgot that one @BenNorris Oct 26 '16 at 10:39
• Can you clarify what do you mean when you say that the bonding is different? Energy-wise, its distance...? Oct 26 '16 at 13:13
• I mean the H-bonding, Asn-Ser the H-bonding exists between a H from the NH2 and the O from the alcohol. But Glu-Thr H-bonding exists between the carbonyl O and the H from the alcohol @Variax Oct 26 '16 at 14:15

I don't have the textbook you've gotten this from, but unless there's a statement to the contrary, I suspect these are intended as examples of hydrogen bonding, rather than an exhaustive list of the only hydrogen bonding pattern which can exist.

If you start to look at real structures, you will see both "directions" of hydrogen bonding (hydroxyl donor/carbonyl acceptor and nitrogen donor/hydroxyl acceptor) in real protein structures.

Take, for example, the structure 1GKT. S297 is very clearly in a hydrogen bonding orientation with N303, with the hydrogen of the hydroxyl pointing toward the carboxylate oxygen of the asparagine. Also, Q22 is very likely in a sidechain-sidechain hydrogen bond with T29, where the hydrogen on the glutamate nitrogen is pointing toward the oxygen of the threonine.

If you spend some time looking at various experimental structures from the PDB website, you should be able to find examples of a wide range of hydrogen bonding patterns - basically, any acceptor and any donor can be paired, depending on the geometry of a particular protein.

One caveat I should mention here is that because of the way X-ray crystallography works, it's often difficult to tell which way the sidechains of the ASN and GLN residues are oriented. With electron density, the NH2 group and the =O group look very similar. Often it's a bit of guesswork on the crystallographer's part to tell which orientation they have, often relying on the layout of neighboring residues to determine the most likely hydrogen bonding network.

However, 1GKT was not determined by X-ray crystallography, but by neutron diffraction. In neutron diffraction it's very clear where the protons are located. (I picked a neutron diffraction structure as the example for this very purpose.) I also double checked that there wasn't any reason for flipping those particular ASN/GLN residues, both by manual visualization and with the MolProbity web server.

You only took two examples into consideration. What about serine and glutamine or threonine and asparagine? Also, serine can hydrogen bond to another serine or a threonine …

What I was trying to point out in this first paragraph is that these examples are really only single examples. Maybe they are trying to show how the same group (hydroxy group and amide group) can be both acceptor and donor depending on the structure. Maybe McMurry just picked four for fun. In any case, you can hydrogen bond from any $\ce{O-H}$ or $\ce{N-H}$ to any lone pair of $\ce{O}$ or $\ce{N}$ in a protein as long as that lone pair is not participating in resonance — this last caveat is really only to capture amides, $\ce{RC(=O)-NH2}$, wherein the nitrogen cannot be a hydrogen bond acceptor due to the resonance structure $\ce{RC(-O^-)=NH2+}$.

And furthermore, unless you have unambiguous side chains — arginine which can only donate or glutamate/aspartate which can only accept at neutral $\mathrm{pH}$ — the orientation of hydrogen bonds is typically left to the guesswork of the crystallograph for X-ray diffraction analysis. But the other answer already goes into detail there.

• Thankyou! I added another picture to my question, so every H-bond shown here is possible? @Jan Oct 27 '16 at 8:30
• @RickBeeloo 1 and 2 are; 3 is not. Read the caveat sentence on amides and maybe read on about amide resonance structures.
– Jan
Oct 27 '16 at 9:44
• Thankyou found the information here: chemistry.stackexchange.com/questions/42085/… Oct 27 '16 at 10:25