Skip to content

Parse REMARK 99 lines from PDB-style Astral files - #2081

Merged
peterjc merged 5 commits into
biopython:masterfrom
mikepm35:issue20152_astralpdb
Aug 5, 2019
Merged

peterjc merged 5 commits into
biopython:masterfrom
mikepm35:issue20152_astralpdb

Conversation

@mikepm35

Copy link
Copy Markdown
Contributor

This pull request addresses issue #2052

  • 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, have run flake8 locally, and
    understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
    tests and 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.)

@mikepm35
mikepm35 requested a review from JoaoRodrigues as a code owner May 25, 2019 19:13
@codecov

codecov Bot commented May 25, 2019 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2081      +/-   ##
==========================================
+ Coverage   84.68%   84.68%   +<.01%     
==========================================
  Files         317      317              
  Lines       51441    51448       +7     
==========================================
+ Hits        43563    43570       +7     
  Misses       7878     7878
Impacted Files Coverage Δ
Bio/PDB/parse_pdb_header.py 96.41% <100%> (+0.13%) ⬆️

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 f290ab1...93fd24a. Read the comment docs.

@jgreener64

Copy link
Copy Markdown
Contributor

Looks like a nice addition to me.

I think the test file could just have the header present to reduce the file size?

Also, you could update this sentence in the docs:

The available keys are name, head, deposition_date, release_date, structure_method, resolution, structure_reference (which maps to a list of references), journal_reference, author, and compound (which maps to a dictionary with various information about the crystallized compound).

@peterjc

peterjc commented May 28, 2019

Copy link
Copy Markdown
Member

Thanks Joe, very useful. I agree with your points.

Note also there are now merge conflicts - @mikepm35 if you are not confident to deal with that, just focus on making the improvements Joe suggested, and one of us can handle the merge. Thank you.

@mikepm35

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. I did do another pull/merge as well as stripped the extra lines from the test file and updated the docs. Note that I saw that same line in the FAQ doc files, so I updated them as well.

@peterjc

peterjc commented May 31, 2019

Copy link
Copy Markdown
Member

Looks good - do you want to add yourself to the NEWS.rst and CONTRIB.rst listings?

@mikepm35

Copy link
Copy Markdown
Contributor Author

Thanks, yes, I just updated those as well.

@peterjc

peterjc commented May 31, 2019

Copy link
Copy Markdown
Member

A lot of the changes are removing trailing white space (generally a good thing), especially in the documentation.

All the changes in Doc/biopdb_faq.lyx made me take a closer look, and log issue #2094. Did you use the graphical tool Lyx, or just edit both Doc/biopdb_faq.lyx and Doc/biopdb_faq.tex directly?

@mikepm35

Copy link
Copy Markdown
Contributor Author

I did use Lyx initially, but then made a wording change directly in the file via Atom. When I re-opened it in Lyx I didn't see the white space issue, but I do see it now. I can re-do those changes in the documentation to correct it.

@mikepm35

Copy link
Copy Markdown
Contributor Author

FWIW I found the culprit. Atom has a default package called "whitespace" which removes all trailing characters. Furthermore, the Git diff views don't show the trailing whitespace differences, so the changes look like line moves (although I still should have caught it). I reverted the previous change and made the appropriate updates.

@peterjc peterjc left a comment

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.

From my phone at least it looks ready for a squash-and-merge :)

@mikepm35

Copy link
Copy Markdown
Contributor Author

Awesome, thanks for all the help getting this in!

@peterjc

peterjc commented Aug 2, 2019

Copy link
Copy Markdown
Member

Rebasing for the merge conflict, squashing a few of the commits together, ...

@peterjc
peterjc force-pushed the issue20152_astralpdb branch from 4c2619e to dd231dd Compare August 2, 2019 15:50
@peterjc

peterjc commented Aug 2, 2019

Copy link
Copy Markdown
Member

And another minor conflict to fix...

@peterjc
peterjc force-pushed the issue20152_astralpdb branch from dd231dd to 93fd24a Compare August 5, 2019 09:13
@peterjc
peterjc merged commit 9728626 into biopython:master Aug 5, 2019
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