Skip to content

Update paml run docstrings - #1793

Merged
peterjc merged 9 commits into
biopython:masterfrom
RonaCostello:update_PAML_run_docstrings
Sep 20, 2018
Merged

peterjc merged 9 commits into
biopython:masterfrom
RonaCostello:update_PAML_run_docstrings

Conversation

@RonaCostello

Copy link
Copy Markdown
Contributor

This pull request addresses issue #1708

Hey, this is my first contribution to BioPython (and my first open source contribution ever!!), thanks for labelling this as a good first issue. I've updated and added various paml docstrings.

  • 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.)

This commit has updated the docstrings for the Paml.run function to
better reflect the behaviour of the function. Namely that it does not
have a return value, rather checks the success of a process.
Updated the Codeml.run docstrings to better reflect the behaviour of the
function.
Update the docstring for Baseml.run to better reflect the behaviour of
the function.
@peterjc

peterjc commented Sep 18, 2018

Copy link
Copy Markdown
Member

@brandoninvergo does this look good to you too?

AppVeyor seems to have got stuck uploading the coverage, but after running the tests. I'll re-run that now...

@brandoninvergo

Copy link
Copy Markdown
Contributor

Generally looks good, and thanks to @RonaCostello for taking on the task!

A couple of minor comments:

  • For baseml.run, there is a typo: "Checks tree attribute is specified..." should be "Checks that the tree attribute is specified..."

  • There is a mix of tenses: there are some cases of present declarative ("Checks that the tree attribute") and some imperative ("If parse is True then read and return the result."). I think it should be one or the other and I think the usual recommendation for docstrings of functions is the imperative. So, "Check that the tree attribute is specified and exists, and then run baseml.", etc. This affects _paml.run and baseml.run. @peterjc, do you agree?

@RonaCostello

Copy link
Copy Markdown
Contributor Author

I have corrected the spelling mistake and updated the docstrings to imperative tense. I can push them if that is what is wanted 👍

@peterjc

peterjc commented Sep 19, 2018

Copy link
Copy Markdown
Member

Yes, try to use imperative tense - especially for the one line summary. We try to enforce this via the flake8 pydocstyle plugin check D401: First line should be imperative but its heuristics do not catch everything.

@codecov

codecov Bot commented Sep 19, 2018

Copy link
Copy Markdown

Codecov Report

Merging #1793 into master will increase coverage by <.01%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1793      +/-   ##
==========================================
+ Coverage   85.44%   85.44%   +<.01%     
==========================================
  Files         331      331              
  Lines       50253    50250       -3     
==========================================
- Hits        42937    42935       -2     
+ Misses       7316     7315       -1
Impacted Files Coverage Δ
Bio/Phylo/PAML/_paml.py 83.58% <ø> (ø) ⬆️
Bio/Phylo/PAML/baseml.py 86.13% <50%> (-0.14%) ⬇️
Bio/Phylo/PAML/codeml.py 89.62% <50%> (-0.1%) ⬇️
Bio/Phylo/PAML/yn00.py 87.17% <50%> (-0.17%) ⬇️
Bio/Graphics/BasicChromosome.py 94.02% <0%> (+0.31%) ⬆️

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 6b20485...71a80c1. Read the comment docs.

@peterjc

peterjc commented Sep 20, 2018

Copy link
Copy Markdown
Member

AppVeyor got stuck in the 4th build target, but it looks unrelated - so merging anyway.

Thank you Rona 👍

@peterjc
peterjc merged commit b5aeae1 into biopython:master Sep 20, 2018
peterjc added a commit to peterjc/biopython that referenced this pull request Nov 1, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Brandon Invergo (@brandoninvergo)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chris Warth (@cswarth)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rona Costello (@RonaCostello)
   biopython#1793
 - Sergei Lebedev (@superbobry)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Suresh Panneerselvam (@Amrithasuresh)
   biopython#1575
peterjc added a commit to peterjc/biopython that referenced this pull request Nov 1, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Lenna Peterson (@lennax)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rona Costello (@RonaCostello)
   biopython#1793
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Wayne Decatur (@fomightez)
   biopython#898 (comment)
peterjc added a commit to peterjc/biopython that referenced this pull request Nov 1, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chris Warth (@cswarth)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Lenna Peterson (@lennax)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rona Costello (@RonaCostello)
   biopython#1793
 - Sergei Lebedev (@superbobry)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Wayne Decatur (@fomightez)
   biopython#898 (comment)
peterjc added a commit to peterjc/biopython that referenced this pull request Nov 1, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Lenna Peterson (@lennax)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rona Costello (@RonaCostello)
   biopython#1793
 - Sergio Valqui (@svalqui)
   biopython#1749
peterjc added a commit to peterjc/biopython that referenced this pull request Nov 29, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Brandon Invergo (@brandoninvergo)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chris Warth (@cswarth)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rona Costello (@RonaCostello)
   biopython#1793
 - Sergei Lebedev (@superbobry)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Suresh Panneerselvam (@Amrithasuresh)
   biopython#1575
peterjc added a commit to peterjc/biopython that referenced this pull request Nov 29, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Lenna Peterson (@lennax)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rona Costello (@RonaCostello)
   biopython#1793
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Wayne Decatur (@fomightez)
   biopython#898 (comment)
peterjc added a commit to peterjc/biopython that referenced this pull request Nov 29, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chris Warth (@cswarth)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Lenna Peterson (@lennax)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rona Costello (@RonaCostello)
   biopython#1793
 - Sergei Lebedev (@superbobry)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Wayne Decatur (@fomightez)
   biopython#898 (comment)
peterjc added a commit to peterjc/biopython that referenced this pull request Nov 29, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Lenna Peterson (@lennax)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Rona Costello (@RonaCostello)
   biopython#1793
 - Sergio Valqui (@svalqui)
   biopython#1749
peterjc added a commit that referenced this pull request Nov 29, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Adhemar Zerlotini (@azneto)
   #1412 (comment)
 - Brandon Invergo (@brandoninvergo)
   #898 (comment)
 - Brian Osborne (@bosborne)
   #898 (comment)
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chris Warth (@cswarth)
   #898 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - @morrme
   #1172 (comment)
 - Nick Negretti (@nimne)
   #1768 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Rona Costello (@RonaCostello)
   #1793
 - Sergei Lebedev (@superbobry)
   #898 (comment)
 - Sergio Valqui (@svalqui)
   #1749
 - Suresh Panneerselvam (@Amrithasuresh)
   #1575
peterjc added a commit that referenced this pull request Nov 29, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   #898 (comment)
 - Brian Osborne (@bosborne)
   #898 (comment)
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Lenna Peterson (@lennax)
   #898 (comment)
 - @morrme
   #1172 (comment)
 - Nick Negretti (@nimne)
   #1768 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Rona Costello (@RonaCostello)
   #1793
 - Sergio Valqui (@svalqui)
   #1749
 - Wayne Decatur (@fomightez)
   #898 (comment)
peterjc added a commit that referenced this pull request Nov 29, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   #898 (comment)
 - Brian Osborne (@bosborne)
   #898 (comment)
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chris Warth (@cswarth)
   #898 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Lenna Peterson (@lennax)
   #898 (comment)
 - @morrme
   #1172 (comment)
 - Nick Negretti (@nimne)
   #1768 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Rona Costello (@RonaCostello)
   #1793
 - Sergei Lebedev (@superbobry)
   #898 (comment)
 - Sergio Valqui (@svalqui)
   #1749
 - Wayne Decatur (@fomightez)
   #898 (comment)
peterjc added a commit that referenced this pull request Nov 29, 2019
Original author Brandon Invergo and contributors since as
tracked with version control have all agreed:

 - Brandon Invergo (@brandoninvergo)
   #898 (comment)
 - Brian Osborne (@bosborne)
   #898 (comment)
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Lenna Peterson (@lennax)
   #898 (comment)
 - @morrme
   #1172 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Rona Costello (@RonaCostello)
   #1793
 - Sergio Valqui (@svalqui)
   #1749
@twalsh-ebi twalsh-ebi mentioned this pull request Jul 24, 2025
3 tasks done
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