Skip to content

Extract PDB ID in Bio/PDB/parse_pdb_header.py - #1933

Merged
peterjc merged 8 commits into
biopython:masterfrom
rob-miller:rtm-pic
Feb 21, 2019
Merged

peterjc merged 8 commits into
biopython:masterfrom
rob-miller:rtm-pic

Conversation

@rob-miller

@rob-miller rob-miller commented Feb 17, 2019 •

Copy link
Copy Markdown
Contributor

This pull request addresses issue #1921

Add the idCode (a.k.a. PDBid) to the header dictionary when loaded by PDBParser()

  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file and understand that AppVeyor and
    TravisCI will be used to confirm the Biopython unit tests and flake8 style
    checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

@codecov

codecov Bot commented Feb 18, 2019

Copy link
Copy Markdown

Codecov Report

Merging #1933 into master will decrease coverage by 1.32%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1933      +/-   ##
==========================================
- Coverage   85.02%   83.69%   -1.33%     
==========================================
  Files         310      309       -1     
  Lines       49957    49910      -47     
==========================================
- Hits        42476    41774     -702     
- Misses       7481     8136     +655
Impacted Files Coverage Δ
Bio/PDB/parse_pdb_header.py 96.27% <100%> (+0.06%) ⬆️
Bio/Phylo/CDAOIO.py 5.42% <0%> (-80.1%) ⬇️
Bio/Phylo/CDAO.py 42.85% <0%> (-57.15%) ⬇️
Bio/PDB/mmtf/__init__.py 33.33% <0%> (-55.56%) ⬇️
Bio/PopGen/GenePop/EasyController.py 22.68% <0%> (-54.64%) ⬇️
Bio/PopGen/GenePop/Controller.py 10.42% <0%> (-54.25%) ⬇️
Bio/Wise/__init__.py 50.87% <0%> (-29.83%) ⬇️
Bio/Phylo/Applications/_Phyml.py 71.42% <0%> (-28.58%) ⬇️
Bio/Wise/psw.py 48.05% <0%> (-22.08%) ⬇️
Bio/Graphics/__init__.py 70.83% <0%> (-12.5%) ⬇️
... and 20 more

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 d3e7b6f...4c4615c. Read the comment docs.

@codecov

codecov Bot commented Feb 18, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #1933 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1933      +/-   ##
==========================================
+ Coverage   85.02%   85.02%   +<.01%     
==========================================
  Files         310      310              
  Lines       49957    49960       +3     
==========================================
+ Hits        42476    42479       +3     
  Misses       7481     7481
Impacted Files Coverage Δ
Bio/PDB/parse_pdb_header.py 96.27% <100%> (+0.06%) ⬆️

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 d3e7b6f...8f3a801. Read the comment docs.

@peterjc

peterjc commented Feb 18, 2019

Copy link
Copy Markdown
Member

The code seems clear, although I've not looked at the PDB header line format to see if a regular expression is the best approach here or not. @lennax @etal @jgreener64 etc any comment? If not, I'll merge this at the end of the week.

Rob: Do you want to add yourself to the CONTRIB and NEWS files?

Note we'd want to do a squash-and-merge to clean up the git history.

@peterjc peterjc changed the title Rtm pic Extract PDB ID in Bio/PDB/parse_pdb_header.py Feb 18, 2019

@lennax lennax left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a unittest for parse_pdb_header that can be updated to confirm that the expected, 4-character PDB ID is extracted from the header?

Comment thread Bio/PDB/parse_pdb_header.py Resolved
@peterjc
peterjc merged commit 815b5ae into biopython:master Feb 21, 2019
@peterjc

peterjc commented Feb 21, 2019

Copy link
Copy Markdown
Member

Thank you all.

@rob-miller
rob-miller deleted the rtm-pic branch March 16, 2019 10:53
peterjc added a commit to peterjc/biopython that referenced this pull request Aug 14, 2019
Original author Kristian Rother and contributors since as recorded in
version control have agreed:

 - Bernhard C. Thiel (@Bernhard10)
   biopython#968
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Carlos Rios Vera (@crosvera)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Connor McCoy (@cmccoy)
   biopython#898 (comment)
 - Eric Talevich (@etal)
   biopython#898 (comment)
 - Francesco Gastaldello (@Gasta88)
   biopython#1063
 - Jeremy LaBarge (@biojerm)
   biopython#1847 (comment)
 - Joe Greener (@jgreener64)
   biopython#1393
 - Kristian Rother (@krother)
   biopython#898 (comment)
 - Lenna Peterson (@lennax)
   biopython#898 (comment)
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - Michael Moritz (@mikepm35)
   biopython#2081
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rob Miller (@rob-miller)
   biopython#1933
 - Sergei Lebedev (@superbobry)
   biopython#898 (comment)
 - Suresh Panneerselvam (@Amrithasuresh)
   biopython#1575
 - Thomas Hamelryck (CVS username nisse)
   https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
 - Wayne Decatur (@fomightez)
   biopython#898 (comment)
peterjc added a commit that referenced this pull request Aug 29, 2019
Original author Kristian Rother and contributors since as recorded in
version control have agreed:

 - Bernhard C. Thiel (@Bernhard10)
   #968
 - Brian Osborne (@bosborne)
   #898 (comment)
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Carlos Rios Vera (@crosvera)
   #898 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Connor McCoy (@cmccoy)
   #898 (comment)
 - Eric Talevich (@etal)
   #898 (comment)
 - Francesco Gastaldello (@Gasta88)
   #1063
 - Jeremy LaBarge (@biojerm)
   #1847 (comment)
 - Joe Greener (@jgreener64)
   #1393
 - Kristian Rother (@krother)
   #898 (comment)
 - Lenna Peterson (@lennax)
   #898 (comment)
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - Michael Moritz (@mikepm35)
   #2081
 - @morrme
   #1172 (comment)
 - Nick Negretti (@nimne)
   #1768 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Rob Miller (@rob-miller)
   #1933
 - Sergei Lebedev (@superbobry)
   #898 (comment)
 - Suresh Panneerselvam (@Amrithasuresh)
   #1575
 - Thomas Hamelryck (CVS username nisse)
   https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
 - Wayne Decatur (@fomightez)
   #898 (comment)
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.

3 participants