Skip to content

Update docstrings in PAML modules - #5034

Merged
peterjc merged 8 commits into
biopython:masterfrom
twalsh-ebi:update/paml_docs
Jul 30, 2025
Merged

peterjc merged 8 commits into
biopython:masterfrom
twalsh-ebi:update/paml_docs

Conversation

@twalsh-ebi

Copy link
Copy Markdown
Contributor
  • 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 pre-commit
    locally, and understand that continuous integration checks 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.)

This PR aims to address the issues with PAML docstrings highlighted in issue 1708.

It builds on the changes in #1793, and incorporates the work of @funcylambda in #1824 and @farAtGitHub in #2489 in a way that strives to address the feedback to their respective pull requests.

Changes include:

  • elaboration of docstrings in PAML modules, to include descriptions (as appropriate) of what is done, what is returned, and what triggers an exception;
  • case and formatting updates, with PAML classes in camel case (e.g. Codeml), PAML software in all caps (e.g. CODEML), and PAML commands in reStructuredText inline code formatting (e.g. codeml);
  • an update to the CONTRIB.rst file.

I've used all caps for PAML software names, partly because this would result in fewer changes to the code than using an all-lowercase convention, and partly because this is the convention used in recent PAML-related papers (e.g. Yang 2007 ; Xu & Yang 2013 ; Álvarez-Carretero, Kapli & Yang 2023). That said, I'm happy to adjust this if necessary.

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

Looks good to me - waiting for the full test suite to finish.

@codecov

codecov Bot commented Jul 30, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.31%. Comparing base (66ad0a0) to head (c8c28fe).
⚠️ Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5034      +/-   ##
==========================================
+ Coverage   85.45%   86.31%   +0.86%     
==========================================
  Files         286      286              
  Lines       59851    59853       +2     
==========================================
+ Hits        51144    51665     +521     
+ Misses       8707     8188     -519     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@peterjc

peterjc commented Jul 30, 2025

Copy link
Copy Markdown
Member

Thank you all - a team effort!

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