Skip to content

Fix error with PDB icodes in Bio.PDB.Dice - #1054

Merged
peterjc merged 2 commits into
biopython:masterfrom
he-leon:master
Feb 3, 2017
Merged

peterjc merged 2 commits into
biopython:masterfrom
he-leon:master

Conversation

@he-leon

@he-leon he-leon commented Feb 3, 2017

Copy link
Copy Markdown
Contributor

Possible Fix for Issue #1053

Prints the following warning when an Icode is detected:
/usr/lib/python2.7/site-packages/Bio/PDB/Dice.py:46: RuntimeWarning: WARNING: Icode A at position 15
Best
Leonhard

Comment thread Bio/PDB/Dice.py Outdated
if icode != " ":
warnings.warn("WARNING: Icode at %s" % residue.get_id(),
RuntimeWarning)
warnings.warn("WARNING: Icode %s at position %s" \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the trailing slash here, the brackets are enough to tell Python it is multi-line.

Comment thread Bio/PDB/Dice.py Outdated
warnings.warn("WARNING: Icode at %s" % residue.get_id(),
RuntimeWarning)
warnings.warn("WARNING: Icode %s at position %s" \
% (icode, resseq), RuntimeWarning)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this should be BiopythonWarning? You'd need to add this at the top of the file:

from Bio import BiopythonWarning

@peterjc

peterjc commented Feb 3, 2017

Copy link
Copy Markdown
Member

I'm made some small comment on the proposed change.

Are you happy to dual licence your contributions under both the Biopython License Agreement AND the BSD 3-Clause License? See #898.

Also, are you happy to be thanked by name in the NEWS and CONTRIB files?

@codecov-io

codecov-io commented Feb 3, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #1054 into master will increase coverage by <.01%.

@@            Coverage Diff             @@
##           master    #1054      +/-   ##
==========================================
+ Coverage   80.53%   80.53%   +<.01%     
==========================================
  Files         320      320              
  Lines       49002    49003       +1     
==========================================
+ Hits        39462    39465       +3     
+ Misses       9540     9538       -2
Impacted Files Coverage Δ
Bio/PDB/Dice.py 29.54% <50%> (+1.63%) ✅
Bio/NeuralNetwork/Gene/Schema.py 71.9% <ø> (+0.82%) ✅

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d6f4e9...3d1243e. Read the comment docs.

@he-leon

he-leon commented Feb 3, 2017

Copy link
Copy Markdown
Contributor Author

Hi!
I added your suggestions to the code! Thanks!
I'm happy with both, the License and being mentioned in NEWS and CONTRIB.
Is there anything I need to do, regarding the licensing?

Best
Leonhard Heizinger

@peterjc
peterjc merged commit 3a365bf into biopython:master Feb 3, 2017
@peterjc

peterjc commented Feb 3, 2017

Copy link
Copy Markdown
Member

That looks good, thank you!

peterjc added a commit that referenced this pull request Feb 3, 2017
See preceeding commits from PR #1054 which closes #1053.
MarkusPiotrowski pushed a commit to MarkusPiotrowski/biopython that referenced this pull request Oct 31, 2017
See preceeding commits from PR biopython#1054 which closes biopython#1053.
peterjc added a commit to peterjc/biopython that referenced this pull request Aug 14, 2019
Original author Thomas Hamelryck and all the contributors since as tracked
with version control have agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Connor McCoy (@cmccoy)
   biopython#898 (comment)
 - Eric Talevich (@etal)
   biopython#898 (comment)
 - João Rodrigues (@JoaoRodrigues)
   biopython#898 (comment)
 - Leonhard Heizinger (@he-leon)
   biopython#1054 (comment)
 - @morrme
   biopython#1172 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - 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 Aug 29, 2019
Original author Thomas Hamelryck and all the contributors since as tracked
with version control have agreed:

 - Adhemar Zerlotini (@azneto)
   #1412 (comment)
 - Brian Osborne (@bosborne)
   #898 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Connor McCoy (@cmccoy)
   #898 (comment)
 - Eric Talevich (@etal)
   #898 (comment)
 - João Rodrigues (@JoaoRodrigues)
   #898 (comment)
 - Leonhard Heizinger (@he-leon)
   #1054 (comment)
 - @morrme
   #1172 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Sergio Valqui (@svalqui)
   #1749
 - 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