Skip to content

Adding new entries for the Biopython 1.73 release news - #1832

Merged
peterjc merged 2 commits into
biopython:masterfrom
chris-rands:add1.73News
Oct 25, 2018
Merged

peterjc merged 2 commits into
biopython:masterfrom
chris-rands:add1.73News

Conversation

@chris-rands

Copy link
Copy Markdown
Contributor

I didn't want to clog up the mailing list with this suggestion, but I propose adding a couple of lines to the Biopython 1.73 release news. Note that I just added additional timings to #1808 that show the new FASTA parser is slightly faster with SeqIO.parse(), at least with Python 3.6 on my system.

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

Comment thread NEWS.rst Outdated
There is a new command line wrapper for the BWA-MEM sequence mapper.

FASTA files are now parsed slightly faster with ``SeqIO.parse()`` due to
internal changes in ``SimpleFastaParser``.

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.

How about making this a little stronger?

The string-based FASTA parsers Bio.SeqIO.FastaIO and have been optimised
which also speeds up parsing FASTA files using Bio.SeqIO.parse().

@codecov

codecov Bot commented Oct 25, 2018

Copy link
Copy Markdown

Codecov Report

Merging #1832 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1832   +/-   ##
=======================================
  Coverage   82.43%   82.43%           
=======================================
  Files         300      300           
  Lines       49254    49254           
=======================================
  Hits        40602    40602           
  Misses       8652     8652

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 45cad0c...72d008d. Read the comment docs.

@chris-rands

Copy link
Copy Markdown
Contributor Author

The travis failure seems unrelated:

Log:

style installed: docutils==0.14,flake8==3.6.0,flake8-blind-except==0.1.1,flake8-docstrings==1.3.0,flake8-polyfill==1.0.2,flake8-rst-docstrings==0.0.8,mccabe==0.6.1,pycodestyle==2.4.0,pydocstyle==3.0.0,pyflakes==2.0.0,restructuredtext-lint==1.1.3,six==1.11.0,snowballstemmer==1.2.1
style run-test-pre: PYTHONHASHSEED='3205344527'
style runtests: commands[0] | flake8 --max-line-length 82 setup.py
style runtests: commands[1] | flake8 BioSQL/
BioSQL/BioSeqDatabase.py:97:28: W504 line break after binary operator
ERROR: InvocationError for command '/home/travis/build/biopython/biopython/.tox/style/bin/flake8 BioSQL/' (exited with code 1)
___________________________________ summary ____________________________________
ERROR:   style: commands failed
/home/travis/.travis/job_stages: line 415:  2841 Terminated              travis_jigger "${!}" "${timeout}" "${cmd[@]}"

@peterjc

peterjc commented Oct 25, 2018 •

Copy link
Copy Markdown
Member

Yes, unrelated. Recent builds on Travis were using:

style installed: docutils==0.14,flake8==3.5.0,flake8-blind-except==0.1.1,flake8-docstrings==1.3.0,flake8-polyfill==1.0.2,flake8-rst-docstrings==0.0.8,mccabe==0.6.1,pycodestyle==2.3.1,pydocstyle==3.0.0,pyflakes==1.6.0,restructuredtext-lint==1.1.3,six==1.11.0,snowballstemmer==1.2.1

It looks like the main change is flake8 3.6.0 (and that includes pycodestyle 2.4.0, pyflakes 2.0.0), and in this case W504 comes from pycodestyle and this is the first release to include it:

PyCQA/pycodestyle#502
PyCQA/pycodestyle#724

I helped document this, W504 is disabled by default and mutually exclusive with W503.

Update: Style checks passing again as of 84aaa25 - see https://travis-ci.org/biopython/biopython/builds/446245051 - we now ignore W504 too (which is the default behaviour).

@peterjc
peterjc merged commit d28ba4d into biopython:master Oct 25, 2018
@chris-rands

Copy link
Copy Markdown
Contributor Author

Thanks, the AppVeyor failure was also unrelated, but a Python 3.7 issue related to PEP 479 I guess?

ERROR: test_SeqIO
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\biopython\build\lib.win32-3.7\Bio\SeqIO\PdbIO.py", line 338, in CifSeqresIterator
    records = MMCIF2Dict(handle)
  File "C:\projects\biopython\build\lib.win32-3.7\Bio\PDB\MMCIF2Dict.py", line 29, in __init__
    token = next(tokens)
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "run_tests.py", line 459, in runTest
    suite = loader.loadTestsFromName(name)
  File "C:\Py\lib\unittest\loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "C:\projects\biopython\Tests\test_SeqIO.py", line 499, in <module>
    records = list(SeqIO.parse(handle, t_format))
  File "C:\projects\biopython\build\lib.win32-3.7\Bio\SeqIO\__init__.py", line 647, in parse
    for r in i:
RuntimeError: generator raised StopIteration
----------------------------------------------------------------------
Ran 272 tests in 974.142 seconds
FAILED (failures = 1)
Skipping any tests requiring internet access
Python version: 3.7.0 (default, Aug 14 2018, 19:12:50) [MSC v.1900 32 bit (Intel)]
Operating system: nt win32

@peterjc

peterjc commented Oct 25, 2018

Copy link
Copy Markdown
Member

Could you open a new issue for that (or perhaps reopen #1693)? That would hold up the next release as we want it to work on Python 3.7

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