Repository navigation
Bio.SeqIO support for reading and writing UCSC nib files - #1951
Conversation
|
@mdehoon Ever thought about installing flake8 and integrating it into your local git? ;-) |
|
The remaining error is surprising - this does not seem related to this pull request, unless I broke test_SeqIO_write.py somehow. |
|
Can you add a test |
|
For automating pep8, see #493 for a script which takes into account that we still have per-top-level folder flake8 configurations. |
|
The write test is failing because this format seems not to store any annotation at all, not even a sequence ID or name. You will need to special case the SeqIO write test accordingly. |
Codecov Report
@@ Coverage Diff @@
## master #1951 +/- ##
==========================================
- Coverage 85.03% 82.19% -2.84%
==========================================
Files 310 266 -44
Lines 49960 44914 -5046
==========================================
- Hits 42481 36918 -5563
- Misses 7479 7996 +517
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1951 +/- ##
==========================================
+ Coverage 85.03% 85.04% +0.01%
==========================================
Files 310 311 +1
Lines 49960 50055 +95
==========================================
+ Hits 42481 42568 +87
- Misses 7479 7487 +8
Continue to review full report at Codecov.
|
|
Need to update the legacy style print-and-compare output: |
| "fastq-illumina": QualityIO.FastqIlluminaIterator, | ||
| "qual": QualityIO.QualPhredIterator, | ||
| "sff": SffIO.SffIterator, | ||
| "nib": NibIO.NibIterator, |
There was a problem hiding this comment.
This should be a couple of lines higher up (alphabetical), not in the middle of the two SFF entries.
| "phd": PhdIO.PhdWriter, | ||
| "qual": QualityIO.QualPhredWriter, | ||
| "sff": SffIO.SffWriter, | ||
| "nib": NibIO.NibWriter, |
There was a problem hiding this comment.
This should be a couple of lines higher up (alphabetical), you could fix the pir entry too at the same time?
|
You also need to add And separately, once this is merged, we'll need to add it to the table on https://github.com/biopython/biopython.github.io/blob/master/wiki/SeqIO.md too for the website. |
|
So just the tests under Python 2 to fix, otherwise looks good 👍 |
This pull request adds support in Bio.SeqIO for reading and writing DNA sequence files in UCSC's nib file format. This is a binary file format; probably reading and writing could be much faster if this were implemented in C, but Python is good enough for now.
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.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)