Skip to content

Added support for deuterium as an element. - #1049

Merged
JoaoRodrigues merged 2 commits into
biopython:masterfrom
mathuin:add-deuterium
Jan 26, 2017
Merged

JoaoRodrigues merged 2 commits into
biopython:masterfrom
mathuin:add-deuterium

Conversation

@mathuin

@mathuin mathuin commented Jan 24, 2017

Copy link
Copy Markdown
Contributor

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.

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.
@mathuin

mathuin commented Jan 24, 2017

Copy link
Copy Markdown
Contributor Author

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 NEWS and CONTRIB files, should this contribution warrant such recognition.

@peterjc

peterjc commented Jan 25, 2017

Copy link
Copy Markdown
Member

This would deserve having your name in the NEWS and CONTRIB files. Note the sort order is now enforces, i.e. Make sure this passes:

$ grep -v "^#" CONTRIB | LC_ALL=C sort -u -c

(It looks like that is broken on the master, which I will fix now...)

@peterjc

peterjc commented Jan 25, 2017

Copy link
Copy Markdown
Member

The TravisCI problem with CONTRIB sorting is fixed on the master now as of 6f7a324 - other than that the test results for this pull request are all fine.

@codecov-io

codecov-io commented Jan 25, 2017 •

Copy link
Copy Markdown

Current coverage is 80.54% (diff: 100%)

Merging #1049 into master will decrease coverage by <.01%

@@             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          

Powered by Codecov. Last update e085c98...7ccbbf4

@mathuin

mathuin commented Jan 25, 2017

Copy link
Copy Markdown
Contributor Author

I updated my branch to include myself in the NEWS and CONTRIB files.

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!

@peterjc

peterjc commented Jan 25, 2017 •

Copy link
Copy Markdown
Member

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 (git rebase origin/master) if you are comfortable with that.

@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.

@JoaoRodrigues

Copy link
Copy Markdown
Member

Only got the notifications from this and the other thread today, sorry..

Thanks @mathuin ! Sounds perfect @peterjc , I'll rebase and merge then.

@JoaoRodrigues
JoaoRodrigues merged commit 04ef8d6 into biopython:master Jan 26, 2017
@peterjc

peterjc commented Jan 27, 2017

Copy link
Copy Markdown
Member

Thank you both 👍

peterjc added a commit to peterjc/biopython that referenced this pull request Aug 30, 2019
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
peterjc added a commit that referenced this pull request Nov 4, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants