Skip to content

Adding missing docstrings to Bio.motifs - issue 1203 - #1915

Merged
mdehoon merged 3 commits into
biopython:masterfrom
svalqui:issue_1203_Bio_Motifs
Feb 2, 2019
Merged

mdehoon merged 3 commits into
biopython:masterfrom
svalqui:issue_1203_Bio_Motifs

Conversation

@svalqui

@svalqui svalqui commented Jan 31, 2019

Copy link
Copy Markdown
Contributor

This pull request addresses issue #1203 ...

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

@svalqui
svalqui requested a review from mdehoon as a code owner January 31, 2019 21:04
@svalqui svalqui changed the title A,dding missing docstrings to Bio.Motifs Issue 1203 Adding missing docstrings to Bio.Motifs Issue 1203 Jan 31, 2019
Comment thread Bio/motifs/jaspar/__init__.py Outdated


def calculate_pseudocounts(motif):
"""Calculate pseudocounts, for compatibility with Perl TFBS modules.

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.

I think we can drop "for compatibility with Perl TFBS modules". This is a commonly used method to calculate pseudocounts; it's not specific to the Perl TFBS modules.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, is removed now, Thank You.

@peterjc peterjc changed the title Adding missing docstrings to Bio.Motifs Issue 1203 Adding missing docstrings to Bio.motifs - issue 1203 Feb 1, 2019
@peterjc

peterjc commented Feb 1, 2019

Copy link
Copy Markdown
Member

Don't worry about theses flake8 failures - there's been an unrelated update:

  • E117 over-indented
  • E117 over-indented (comment)
  • F632 use ==/!= to compare str, bytes, and int literals

@peterjc

peterjc commented Feb 1, 2019

Copy link
Copy Markdown
Member

If you drop the for compatibility with Perl TFBS modules bit as requested by Michael, then next time the TravisCI checks should be fine - see e8b0520 and preceding commits which updated things for the new checks in the latest flake8 release.

@codecov

codecov Bot commented Feb 1, 2019

Copy link
Copy Markdown

Codecov Report

Merging #1915 into master will decrease coverage by 1.33%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1915      +/-   ##
==========================================
- Coverage   85.02%   83.69%   -1.34%     
==========================================
  Files         310      309       -1     
  Lines       49921    49874      -47     
==========================================
- Hits        42447    41742     -705     
- Misses       7474     8132     +658
Impacted Files Coverage Δ
Bio/motifs/jaspar/__init__.py 45.2% <ø> (ø) ⬆️
Bio/motifs/thresholds.py 78.37% <ø> (ø) ⬆️
Bio/motifs/matrix.py 75.96% <ø> (-5.17%) ⬇️
Bio/motifs/__init__.py 80.46% <ø> (ø) ⬆️
Bio/motifs/mast.py 92.98% <100%> (+0.06%) ⬆️
Bio/motifs/meme.py 80.97% <100%> (+0.07%) ⬆️
Bio/motifs/minimal.py 85.45% <100%> (+0.13%) ⬆️
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%) ⬇️
... and 27 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 710fc1b...bf871f7. Read the comment docs.

@codecov

codecov Bot commented Feb 1, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #1915 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1915      +/-   ##
==========================================
- Coverage   85.02%   85.02%   -0.01%     
==========================================
  Files         310      310              
  Lines       49921    49934      +13     
==========================================
+ Hits        42447    42457      +10     
- Misses       7474     7477       +3
Impacted Files Coverage Δ
Bio/motifs/jaspar/__init__.py 45.2% <ø> (ø) ⬆️
Bio/motifs/thresholds.py 78.37% <ø> (ø) ⬆️
Bio/motifs/matrix.py 81.13% <ø> (ø) ⬆️
Bio/motifs/__init__.py 80.46% <ø> (ø) ⬆️
Bio/motifs/mast.py 92.98% <100%> (+0.06%) ⬆️
Bio/motifs/meme.py 80.97% <100%> (+0.07%) ⬆️
Bio/motifs/minimal.py 85.45% <100%> (+0.13%) ⬆️
Bio/Graphics/KGML_vis.py 68.89% <0%> (-1.44%) ⬇️
Bio/SearchIO/BlastIO/blast_text.py 93.33% <0%> (-0.29%) ⬇️
Bio/Phylo/PhyloXML.py 81.39% <0%> (ø) ⬆️
... and 17 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 710fc1b...bf871f7. Read the comment docs.

@svalqui

svalqui commented Feb 1, 2019

Copy link
Copy Markdown
Contributor Author

@peterjc , ok, is amended now; I'll update my pyflakes, my version is behind; Thank You.

@mdehoon

mdehoon commented Feb 2, 2019

Copy link
Copy Markdown
Contributor

Thanks!

@mdehoon
mdehoon merged commit 5d00d2b into biopython:master Feb 2, 2019
@svalqui
svalqui deleted the issue_1203_Bio_Motifs branch April 1, 2019 02:07
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