Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce charge_at_pH functionality in ProteinAnalysis (and IsoelectricPoint) #2096

Merged
merged 4 commits into from Oct 3, 2019

Conversation

MarkusPiotrowski
Copy link
Contributor

@MarkusPiotrowski MarkusPiotrowski commented Jun 1, 2019

This pull request addresses issue #2002. Code in IsoelectricPoint was re-organized and a new public method charge_at_pH(pH) was added (making use of the private method _chargeR(pH)). This method calculates the charge of a protein at a given pH. Access to this method was also added to Bio.SeqUtils.ProtParam.ProteinAnalysis.

This PR will close #2002.

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

PS: Sorry, didn't want to upvote my own PR, strange that this is working...

@codecov
Copy link

codecov bot commented Sep 5, 2019

Codecov Report

Merging #2096 into master will increase coverage by 0.1%.
The diff coverage is 98.07%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #2096     +/-   ##
=========================================
+ Coverage   84.84%   84.95%   +0.1%     
=========================================
  Files         321      318      -3     
  Lines       51765    51061    -704     
=========================================
- Hits        43922    43377    -545     
+ Misses       7843     7684    -159
Impacted Files Coverage Δ
Bio/SeqUtils/ProtParam.py 96.42% <100%> (+0.13%) ⬆️
Bio/SeqUtils/IsoelectricPoint.py 98.73% <97.91%> (+18.17%) ⬆️
Bio/NMR/NOEtools.py 15.15% <0%> (-84.85%) ⬇️
Bio/NMR/xpktools.py 40.49% <0%> (-25.62%) ⬇️
Bio/UniProt/GOA.py 26.77% <0%> (-19.68%) ⬇️
Bio/PDB/mmcifio.py 88.03% <0%> (-4.32%) ⬇️
Bio/UniGene/__init__.py 91.6% <0%> (-4.2%) ⬇️
Bio/motifs/mast.py 91.45% <0%> (-4.14%) ⬇️
Bio/Blast/Record.py 92.02% <0%> (-3.84%) ⬇️
Bio/Index.py 31.64% <0%> (-2.51%) ⬇️
... and 100 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 edae575...6566967. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 5, 2019

Codecov Report

Merging #2096 into master will decrease coverage by <.01%.
The diff coverage is 98.07%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2096      +/-   ##
==========================================
- Coverage   84.92%   84.92%   -0.01%     
==========================================
  Files         321      321              
  Lines       52002    51957      -45     
==========================================
- Hits        44162    44123      -39     
+ Misses       7840     7834       -6
Impacted Files Coverage Δ
Bio/SeqUtils/ProtParam.py 96.42% <100%> (+0.13%) ⬆️
Bio/SeqUtils/IsoelectricPoint.py 98.73% <97.91%> (+18.17%) ⬆️
Bio/_utils.py 56.25% <0%> (-5.57%) ⬇️
Bio/SeqIO/PdbIO.py 94.44% <0%> (-1.61%) ⬇️
Bio/File.py 87.27% <0%> (-1.56%) ⬇️
Bio/SeqIO/AbiIO.py 94.96% <0%> (-0.63%) ⬇️
Bio/SeqIO/SnapGeneIO.py 83.21% <0%> (-0.48%) ⬇️
Bio/SeqIO/UniprotIO.py 91.96% <0%> (-0.3%) ⬇️
Bio/SeqIO/NibIO.py 89.13% <0%> (-0.24%) ⬇️
Bio/SeqIO/SeqXmlIO.py 86.89% <0%> (-0.23%) ⬇️
... and 68 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 4c7a031...b776662. Read the comment docs.

@peterjc
Copy link
Member

peterjc commented Sep 27, 2019

I don't know enough about the application area to really judge, but it looks like @dcroote liked it.

You'll have to solve the conflict, but I guess go ahead with the merge 👍

@MarkusPiotrowski MarkusPiotrowski merged commit 849dc45 into biopython:master Oct 3, 2019
@MarkusPiotrowski MarkusPiotrowski deleted the charge_at_pH branch October 3, 2019 16:45
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.

function request: IsoelectricPoint class private function _chargeR
2 participants