Skip to content

Changed multi-align assert statements to exceptions in Bio/AlignIO - #1613

Merged
peterjc merged 6 commits into
biopython:masterfrom
bvaisvil:master
Apr 17, 2018
Merged

peterjc merged 6 commits into
biopython:masterfrom
bvaisvil:master

Conversation

@bvaisvil

Copy link
Copy Markdown
Contributor

This pull request addresses issue #1515.

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

@bvaisvil
bvaisvil requested a review from peterjc as a code owner April 13, 2018 21:57
Comment thread Bio/AlignIO/FastaIO.py Outdated
print("%s %i" % (m, len(m)))
print(handle.name)
raise err
raise ValueError("Darn... amino acids vs nucleotide coordinates?")

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.

Since you are working on this bit of code, could you move the information in the above debugging print statements into the exception message?

@bvaisvil bvaisvil Apr 16, 2018 •

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.

Yes, definitely. I was going to ask about this. I'll add a commit that changes this.

@peterjc

peterjc commented Apr 16, 2018 •

Copy link
Copy Markdown
Member

Other than one exception which could include the debug print statements above it, this looks good. Thank you.

Would you also like to add yourself to the NEWS.rst file entry for the next release?

TravisCI is failing in the style checks for Bio/SearchIO/InterproscanIO/__init__.py which is my fault.

Update: That should be fixed with bcca127

@codecov

codecov Bot commented Apr 16, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #1613 into master will increase coverage by 1.63%.
The diff coverage is 64.28%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1613      +/-   ##
=========================================
+ Coverage   83.77%   85.4%   +1.63%     
=========================================
  Files         326     327       +1     
  Lines       49466   49673     +207     
=========================================
+ Hits        41439   42425     +986     
+ Misses       8027    7248     -779
Impacted Files Coverage Δ
Bio/AlignIO/EmbossIO.py 73.68% <50%> (-1.71%) ⬇️
Bio/AlignIO/ClustalIO.py 88.88% <50%> (-1.59%) ⬇️
Bio/AlignIO/__init__.py 82.64% <66.66%> (-2.11%) ⬇️
Bio/AlignIO/FastaIO.py 94.39% <80%> (+3.36%) ⬆️
Bio/Align/Applications/__init__.py 100% <0%> (ø) ⬆️
Bio/Align/Applications/_TCoffee.py 100% <0%> (ø) ⬆️
Bio/SeqIO/SeqXmlIO.py 86.46% <0%> (ø) ⬆️
Bio/Align/__init__.py 83.03% <0%> (ø) ⬆️
Bio/Align/Applications/_Probcons.py 100% <0%> (ø) ⬆️
Bio/Align/Applications/_ClustalOmega.py 100% <0%> (ø) ⬆️
... and 34 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 0978f34...4e77b94. Read the comment docs.

@bvaisvil

Copy link
Copy Markdown
Contributor Author

Okay, added the debug print statements to the exception message. I plan on working more on issue #1515, so I'll add myself to NEWS.rst at that point.

@peterjc
peterjc merged commit 6416528 into biopython:master Apr 17, 2018
@peterjc

peterjc commented Apr 17, 2018

Copy link
Copy Markdown
Member

Thank you!

peterjc added a commit to peterjc/biopython that referenced this pull request Jun 5, 2019
Closes issue biopython#1879, part of biopython#898. The original author Jeff Chang
and contributors since as recorded in version control have agreed:

 - Fábio Madeira (@biomadeira)
   biopython#898 (comment)
 - Benjamin Vaisvil (@bvaisvil)
   biopython#1613
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chang Soon Ong (@chengsoonong)
   biopython#1879 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Brad Chapman (@chapmanb)
   http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html
 - Christiam Camacho (@christiam)
   biopython#898 (comment)
 - Christopher Jenness (@christopherjenness)
   biopython#1535
 - Iddo Friedberg (@idoerg)
   biopython#898 (comment)
 - Jeff Chang (@jefftc)
   biopython#898 (comment)
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - Jay Bird (@mxposed)
   biopython#1470 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Nick Semenkovich (@semenko)
   biopython#898 (comment)
 - Sjoerd de Vries
   biopython#1879 (comment)
 - Soroush Saffari (@sorsaffari)
   biopython#1819
 - Suresh Panneerselvam (@Amrithasuresh)
   biopython#1575
 - Vincent Davis (@vincentdavis)
   biopython#898 (comment)

The one exception is Chris Wroe, who we have not been able to contact,
but their small contribution from Feb 2004 was later deprecated and
removed in 2007.
@peterjc peterjc mentioned this pull request Jun 5, 2019
3 tasks done
peterjc added a commit that referenced this pull request Jun 5, 2019
Closes issue #1879, part of #898. The original author Jeff Chang
and contributors since as recorded in version control have agreed:

 - Fábio Madeira (@biomadeira)
   #898 (comment)
 - Benjamin Vaisvil (@bvaisvil)
   #1613
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chang Soon Ong (@chengsoonong)
   #1879 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Brad Chapman (@chapmanb)
   http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html
 - Christiam Camacho (@christiam)
   #898 (comment)
 - Christopher Jenness (@christopherjenness)
   #1535
 - Iddo Friedberg (@idoerg)
   #898 (comment)
 - Jeff Chang (@jefftc)
   #898 (comment)
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - Jay Bird (@mxposed)
   #1470 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Nick Semenkovich (@semenko)
   #898 (comment)
 - Sjoerd de Vries
   #1879 (comment)
 - Soroush Saffari (@sorsaffari)
   #1819
 - Suresh Panneerselvam (@Amrithasuresh)
   #1575
 - Vincent Davis (@vincentdavis)
   #898 (comment)

The one exception is Chris Wroe, who we have not been able to contact,
but their small contribution from Feb 2004 was later deprecated and
removed in 2007.
peterjc added a commit to peterjc/biopython that referenced this pull request Feb 5, 2024
Original author Zheng Ruan and contributors tracked by
version control have agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Benjamin Vaisvil (@bvaisvil)
   biopython#1613
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chris Rands (@chris-rands)
   biopython#1301
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Juse (@JuseTiZ)
   biopython#4556
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - Micky Yun Chan (@michiboo)
   biopython#1983
 - @morrme
   biopython#1172 (comment)
 - Neil P. (@npars)
   biopython#3937
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Sujan Dulal (@Dsujan)
   biopython#2430
 - Travis Wrightsman (@twrightsman)
   biopython#898 (comment)
 - Zheng Ruan (@zruan)
   biopython#898 (comment)
peterjc added a commit to peterjc/biopython that referenced this pull request Feb 5, 2024
Original author Zheng Ruan and contributors since tracked by
version control have agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Alex Jironkin (@alexjironkin)
   PENDING VIA biopython#765
 - Benjamin Vaisvil (@bvaisvil)
   biopython#1613
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chris Rands (@chris-rands)
   biopython#1301
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Eric Talevich (@etal)
   biopython#898 (comment)
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - Micky Yun Chan (@michiboo)
   biopython#1983
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sujan Dulal (@Dsujan)
   biopython#2430
 - Travis Wrightsman (@twrightsman)
   biopython#898 (comment)
 - Zheng Ruan (@zruan)
   biopython#898 (comment)
peterjc added a commit that referenced this pull request Feb 5, 2024
Original author Zheng Ruan and contributors tracked by
version control have agreed:

 - Adhemar Zerlotini (@azneto)
   #1412 (comment)
 - Benjamin Vaisvil (@bvaisvil)
   #1613
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chris Rands (@chris-rands)
   #1301
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Juse (@JuseTiZ)
   #4556
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - Micky Yun Chan (@michiboo)
   #1983
 - @morrme
   #1172 (comment)
 - Neil P. (@npars)
   #3937
 - Peter Cock (@peterjc)
   #898 (comment)
 - Sergio Valqui (@svalqui)
   #1749
 - Sujan Dulal (@Dsujan)
   #2430
 - Travis Wrightsman (@twrightsman)
   #898 (comment)
 - Zheng Ruan (@zruan)
   #898 (comment)
peterjc added a commit that referenced this pull request Feb 5, 2024
Original author Zheng Ruan and contributors since tracked by
version control have agreed:

 - Adhemar Zerlotini (@azneto)
   #1412 (comment)
 - Alex Jironkin (@alexjironkin)
   PENDING VIA #765
 - Benjamin Vaisvil (@bvaisvil)
   #1613
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chris Rands (@chris-rands)
   #1301
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Eric Talevich (@etal)
   #898 (comment)
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - Micky Yun Chan (@michiboo)
   #1983
 - @morrme
   #1172 (comment)
 - Nick Negretti (@nimne)
   #1768 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Sujan Dulal (@Dsujan)
   #2430
 - Travis Wrightsman (@twrightsman)
   #898 (comment)
 - Zheng Ruan (@zruan)
   #898 (comment)
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.

2 participants