Skip to content

Fixes motifs.jaspar.calculate_pseudocounts - #2384

Merged
peterjc merged 3 commits into
biopython:masterfrom
jakublipinski:fix_motifs_jaspar_calculate_pseudocounts
Dec 6, 2019
Merged

peterjc merged 3 commits into
biopython:masterfrom
jakublipinski:fix_motifs_jaspar_calculate_pseudocounts

Conversation

@jakublipinski

Copy link
Copy Markdown
Contributor

This pull request addresses the issue in motifs.jaspar.calculate_pseudocounts. The motif.alphabet is a str object therefore it does not contain letters field and should be enumerated directly. I added a test_calculate_pseudocounts test which fails without the changes introduced by this PR.

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

Comment thread NEWS.rst Outdated
- Michiel de Hoon
- Peter Cock
- Sergio Valqui
- Jakub Lipinski (first contribution)

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.

Can you move your name up (alphabetic by first name) please?

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.

Done

@codecov

codecov Bot commented Dec 6, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #2384 into master will increase coverage by 0.02%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2384      +/-   ##
==========================================
+ Coverage   84.93%   84.96%   +0.02%     
==========================================
  Files         323      323              
  Lines       52884    53059     +175     
==========================================
+ Hits        44918    45080     +162     
- Misses       7966     7979      +13
Impacted Files Coverage Δ
Bio/motifs/jaspar/__init__.py 52.05% <50%> (+6.84%) ⬆️
BioSQL/Loader.py 80.16% <0%> (+1.5%) ⬆️

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 ddf2961...a1c4566. Read the comment docs.

@peterjc

peterjc commented Dec 6, 2019

Copy link
Copy Markdown
Member

This looks like a duplicate of #2341 but with a test added. Did you base it on @Zulko 's work or is this an unfortunately coincidence in timing?

@Zulko

Zulko commented Dec 6, 2019

Copy link
Copy Markdown

I'm totally fine with merging this PR instead of mine if it makes your life easier @peterjc

@jakublipinski

Copy link
Copy Markdown
Contributor Author

@peterjc It's coincidence. Didn't see #2341 before submitting the PR. It's an obvious fix anyway.

@jakublipinski

Copy link
Copy Markdown
Contributor Author

I'm sorry @Zulko for not checking the other PRs first.

@peterjc

peterjc commented Dec 6, 2019

Copy link
Copy Markdown
Member

Thanks @Zulko - hopefully you will be able to find other ways to contribute to Biopython in future.

@peterjc
peterjc merged commit 7da1c64 into biopython:master Dec 6, 2019
@peterjc

peterjc commented Dec 6, 2019

Copy link
Copy Markdown
Member

Thank you @jakublipinski - we should have filed and issue on the underlying problem which would have made it more obvious.

@jakublipinski
jakublipinski deleted the fix_motifs_jaspar_calculate_pseudocounts branch December 6, 2019 16:31
peterjc added a commit to peterjc/biopython that referenced this pull request Feb 5, 2024
Original authors David Arenillas and Anthony Mathelier have
agreed - see biopython#2473, as have the other contributors as tracked
by git version control:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Andrey Raspopov (@Andrey-Raspopov)
   biopython#2444
 - Bertrand Néron (@bneron)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Francesco Gastaldello (@Gasta88)
   biopython#1063
 - Gert Hulselmans (@ghuls)
   biopython#898 (comment)
 - Jakub Lipinski (@jakublipinski)
   biopython#2384
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
peterjc added a commit to peterjc/biopython that referenced this pull request Feb 5, 2024
Original authors David Arenillas and Anthony Mathelier have
agreed - see biopython#2473, as have the other contributors as tracked
by git version control:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Andrey Raspopov (@Andrey-Raspopov)
   biopython#2444
 - Bertrand Néron (@bneron)
   biopython#898 (comment)
 - Brian Osborne (@bosborne)
   biopython#898 (comment)
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Francesco Gastaldello (@Gasta88)
   biopython#1063
 - Gert Hulselmans (@ghuls)
   biopython#898 (comment)
 - Jakub Lipinski (@jakublipinski)
   biopython#2384
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - @morrme
   biopython#1172 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
peterjc added a commit that referenced this pull request Feb 5, 2024
Original authors David Arenillas and Anthony Mathelier have
agreed - see #2473, as have the other contributors as tracked
by git version control:

 - Adhemar Zerlotini (@azneto)
   #1412 (comment)
 - Andrey Raspopov (@Andrey-Raspopov)
   #2444
 - Bertrand Néron (@bneron)
   #898 (comment)
 - Brian Osborne (@bosborne)
   #898 (comment)
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Francesco Gastaldello (@Gasta88)
   #1063
 - Gert Hulselmans (@ghuls)
   #898 (comment)
 - Jakub Lipinski (@jakublipinski)
   #2384
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - @morrme
   #1172 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Sergio Valqui (@svalqui)
   #1749
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.

4 participants