Skip to content

Commit

Permalink
added Leaving atoms flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra Peisach committed Mar 20, 2024
1 parent 514c9c6 commit b766e3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wwpdb/apps/ann_tasks_v2/utils/GetCovalentBond.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def __processCloseContactContent(self, jsonObj):
<tr>
<th colspan="5">Atom1</th>
<th colspan="5">Atom2</th>
<th rowspan="2">Leaving<br/>atoms</th>
<th rowspan="2">Distance</th>
</tr>
<tr>
Expand Down Expand Up @@ -129,13 +130,13 @@ def __processCloseContactContent(self, jsonObj):
if tupL[12]:
atom += "(" + tupL[12] + ")"
#
tablerow += "<td>" + tupL[7] + "</td>" + "<td>" + tupL[8] + "</td>" + "<td>" + tupL[9] + tupL[10] + "</td>" + "<td>" + atom + "</td>" + "<td>" + tupL[13] + "</td>"
tablerow += "<td>" + tupL[7] + "</td>" + "<td>" + tupL[8] + "</td>" + "<td>" + tupL[9] + tupL[10] + "</td>" + "<td>" + atom + "</td>" + "<td>" + tupL[13] + "</td>" + "<td>" + tupL[14] + "</td>"
#
tupL[6] = tupL[6].replace("_", "-")
tupL[13] = tupL[13].replace("_", "-")
bond_id = "covalent_bond_" + str(count)
#
tablerow += "<td>" + tupL[14] + '&nbsp; &nbsp; &nbsp; &nbsp; <input type="checkbox" id="' + bond_id + '" name="' + bond_id + '" value="' + "_".join(tupL) + '"/></td>'
tablerow += "<td>" + tupL[15] + '&nbsp; &nbsp; &nbsp; &nbsp; <input type="checkbox" id="' + bond_id + '" name="' + bond_id + '" value="' + "_".join(tupL) + '"/></td>'
#
tablerow += "</tr>\n"
count += 1
Expand Down

0 comments on commit b766e3d

Please sign in to comment.