{"id":342,"date":"2017-12-10T17:33:59","date_gmt":"2017-12-10T22:33:59","guid":{"rendered":"http:\/\/williamkennerly.com\/blog\/?p=342"},"modified":"2018-05-31T10:56:00","modified_gmt":"2018-05-31T14:56:00","slug":"a-mistake-with-the-hbond-action-command","status":"publish","type":"post","link":"http:\/\/williamkennerly.com\/blog\/a-mistake-with-the-hbond-action-command\/","title":{"rendered":"A Mistake with the hbond Action Command"},"content":{"rendered":"<p>In a previous blog post, I talked about how the <strong>hbond<\/strong> action command in CPPTRAJ is capable of outputting a file that shows whether or not a hydrogen bond formed across a series of time steps as indicated by a 1 or a 0 (for clarification, click on this link: <a href=\"http:\/\/williamkennerly.com\/blog\/helpful-cpptraj-commands-part-2-action-commands\/\">http:\/\/williamkennerly.com\/blog\/helpful-cpptraj-commands-part-2-action-commands\/<\/a>). I recently found out that this is not entirely true. When I first used CPPTRAJ\u2019s <strong>hbond<\/strong> command, the data I obtained only showed 0\u2019s and 1\u2019s in the solute-solvent hydrogen bond column. At the time, I had made the assumption that these 0\u2019s and 1\u2019s simply indicated whether or not hydrogen bonds formed at a certain time step, 0 meaning no hydrogen bonds were formed and 1 meaning one or more hydrogen bonds were formed. The reason my data yielded strange results was because of two things: a default angle cutoff for bond formation set at 135 degrees, and a default distance cutoff set at 3\u00c5. These cutoffs meant that if a bond was to form at an angle smaller than 135 degrees or at a distance greater than 3\u00c5, then CPPTRAJ does not count it and eliminates the data for that bond entirely.<\/p>\n<p>After changing the cutoffs (I eliminated the angle cutoff by specifying the angle to be -1, and changed the distance cutoff to be 3.5\u00c5), I obtained very different data. The following is the exact syntax that I used in my .traj file to get my output:<\/p>\n<p class=\"p1\"><strong><span class=\"s1\">parm mlt_wat.prmtop<\/span><\/strong><\/p>\n<p class=\"p1\"><strong><span class=\"s1\">trajin mdcrd\/prod.mdcrd<\/span><\/strong><\/p>\n<p class=\"p1\"><strong><span class=\"s1\">hbond trpHBond :19 out trp.HBvTime2.dat angle -1 dist 3.5 image solventdonor<\/span><span class=\"s2\"> <span class=\"Apple-converted-space\">\u00a0 \u00a0<\/span><\/span><span class=\"s1\"> :WAT solventacceptor :WAT@O solvout trp.HBAvg2.dat<\/span><\/strong><\/p>\n<p class=\"p2\"><strong><span class=\"s3\">run<\/span><\/strong><\/p>\n<p class=\"p2\"><strong><span class=\"s3\">quit<\/span><\/strong><\/p>\n<p>This .traj file uses a .mdcrd file that contains the final result of a production run of a whole Melittin molecule; however, by specifying the residue number (:19) I only extracted information about the hydrogen bonds formed with the respective tryptophan atoms that form them (the two Nitrogens and the Oxygen), which when plotted results in the graph seen at the bottom of this post. The problem with this obtained data is that it is most likely not reliable. While looking at the average angles of the hydrogen bonds, it was discovered that the angles were very acute ranging from 62<b>\u00b0\u00a0<\/b>to 106<b>\u00b0<\/b>. They also had slightly longer bond lengths then the original cutoff of 3\u00c5, the lengths ranging from 3 to 3.2\u00c5. Therefore, it can be assumed that these bonds are unlikely to happen in nature.<a href=\"http:\/\/williamkennerly.com\/blog\/wp-content\/uploads\/2017\/12\/Screen-Shot-trp.HBonds.Long_.graph_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-339 aligncenter\" src=\"http:\/\/williamkennerly.com\/blog\/wp-content\/uploads\/2017\/12\/Screen-Shot-trp.HBonds.Long_.graph_-300x200.png\" alt=\"\" width=\"300\" height=\"200\" srcset=\"http:\/\/williamkennerly.com\/blog\/wp-content\/uploads\/2017\/12\/Screen-Shot-trp.HBonds.Long_.graph_-300x200.png 300w, http:\/\/williamkennerly.com\/blog\/wp-content\/uploads\/2017\/12\/Screen-Shot-trp.HBonds.Long_.graph_-768x512.png 768w, http:\/\/williamkennerly.com\/blog\/wp-content\/uploads\/2017\/12\/Screen-Shot-trp.HBonds.Long_.graph_-1024x683.png 1024w, http:\/\/williamkennerly.com\/blog\/wp-content\/uploads\/2017\/12\/Screen-Shot-trp.HBonds.Long_.graph_.png 1278w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous blog post, I talked about how the hbond action command in CPPTRAJ is capable of outputting a file that shows whether or not a hydrogen bond formed across a series of time steps as indicated by a &hellip; <a href=\"http:\/\/williamkennerly.com\/blog\/a-mistake-with-the-hbond-action-command\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8],"tags":[17],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-chemistry","category-computing","tag-amber"],"_links":{"self":[{"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":3,"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":347,"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions\/347"}],"wp:attachment":[{"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamkennerly.com\/blog\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}