Repository navigation
Added support for deuterium as an element. - #1049
Conversation
For some proteins in the PDB, it is important for researchers to distinguish between hydrogen isotopes. Those researchers will often populate the element field with 'D' for deuterium. This usage is in accordance with IUPAC provisional recommendation IR-3.3.2, but there is no reference to deuterium in the atom_weights table in the IUPACData.py file so these values are not recognized. The value used for the atomic weight of deuterium was taken from http://www.ciaaw.org/hydrogen.htm. For the purposes of testing this change, one of the HETATM lines in the a_structure.pdb file was modified to reference a deuterium atom instead of the carbon atom it originally represented. This required minor changes to the ParseTest class. A specific test for this change was added to the Atom_Element class.
|
This pull request is intended to close issue #980. I am happy to dual license my contributions under both the Biopython License Agreement and the BSD 3-Clause License in accordance with #898. I am also happy to be thanked by name (Jack Twilley) in the |
|
This would deserve having your name in the (It looks like that is broken on the master, which I will fix now...) |
|
The TravisCI problem with |
Current coverage is 80.54% (diff: 100%)@@ master #1049 diff @@
==========================================
Files 320 320
Lines 48990 48990
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 39465 39461 -4
- Misses 9525 9529 +4
Partials 0 0
|
|
I updated my branch to include myself in the If you'd like me to merge the current master into the branch, let me know -- I suspect that it may result in a merge conflict or at the least a merge commit, but if you're okay with that I'm okay with that. Alternatively, I can generate a patch and apply it to current master in a new PR or in a force-push to this one if you'd prefer a cleaner history. Just let me know! |
|
It is not your fault that TravisCI is failing on pypy3, which on the master branch is currently allowed fail (there is a tox dependency problem which I hope will be sorted out before too long). There isn't any need to update the branch at this point. For future reference when there are conflict due to changes on the master branch, rather than a merge, I would suggest a rebase ( @JoaoRodrigues are you happy for this to be committed? Either say yes (and I'd handle it), or go ahead and merge via Github (using the "rebase and merge" action would be fine) please. |
|
Thank you both 👍 |
Original authors Thomas Hamelryck and Eric Talevich (for the unittest conversion), and the contributors as tracked with version control have agreed: - Andrew Guy (@andrewguy) biopython#2212 (comment) - Ben Reynwar (@benreynwar) biopython#898 (comment) - Bernhard C. Thiel (@Bernhard10) biopython#968 - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Gokcen Eraslan (@gokceneraslan) biopython#898 (comment) - Jack Twilley (@mathuin) biopython#1049 (comment) - Jeroen Van Goey (@BioGeek) biopython#898 (comment) - Joe Greener (@jgreener64) biopython#1393 - Joerg Schaarschmidt (@schaarj) biopython#1567 - João Rodrigues (@JoaoRodrigues) biopython#898 (comment) - Kian Ho (@kianho) biopython#898 (comment) - Kristian Davidsen (@krdav) biopython#898 (comment) - Kristian Rother (@krother) biopython#898 (comment) - Lenna Peterson (@lennax) biopython#898 (comment) - Markus Piotrowski (@MarkusPiotrowski) biopython#898 (comment) - Milind Luthra (@milindl) biopython#1020 - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Rasmus Fonseca (@RasmusFonseca) biopython#1171 (comment) - Siong Kong (@siongkong) biopython#1516 - Stefans Mezulis (@StefansM) biopython#1445 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original authors Thomas Hamelryck and Eric Talevich (for the unittest conversion), and the contributors as tracked with version control have agreed: - Andrew Guy (@andrewguy) #2212 (comment) - Ben Reynwar (@benreynwar) #898 (comment) - Bernhard C. Thiel (@Bernhard10) #968 - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Gokcen Eraslan (@gokceneraslan) #898 (comment) - Jack Twilley (@mathuin) #1049 (comment) - Jeroen Van Goey (@BioGeek) #898 (comment) - Joe Greener (@jgreener64) #1393 - Joerg Schaarschmidt (@schaarj) #1567 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Kian Ho (@kianho) #898 (comment) - Kristian Davidsen (@krdav) #898 (comment) - Kristian Rother (@krother) #898 (comment) - Lenna Peterson (@lennax) #898 (comment) - Markus Piotrowski (@MarkusPiotrowski) #898 (comment) - Milind Luthra (@milindl) #1020 - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Rasmus Fonseca (@RasmusFonseca) #1171 (comment) - Siong Kong (@siongkong) #1516 - Stefans Mezulis (@StefansM) #1445 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
For some proteins in the PDB, it is important for researchers to
distinguish between hydrogen isotopes. Those researchers will often
populate the element field with 'D' for deuterium. This usage is
in accordance with IUPAC provisional recommendation IR-3.3.2, but
there is no reference to deuterium in the atom_weights table in the
IUPACData.py file so these values are not recognized.
The value used for the atomic weight of deuterium was taken from
http://www.ciaaw.org/hydrogen.htm.
For the purposes of testing this change, one of the HETATM lines in the
a_structure.pdb file was modified to reference a deuterium atom instead
of the carbon atom it originally represented. This required minor
changes to the ParseTest class. A specific test for this change was
added to the Atom_Element class.