Repository navigation
Conversation
Current coverage is 80.31% (diff: 100%)@@ master #987 diff @@
==========================================
Files 319 319
Lines 48754 48754
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 39157 39157
Misses 9597 9597
Partials 0 0
|
Contributor
|
Sounds like a reasonable thing to do. I've no complaints. |
Part of this behaviour will happen by default as of Python 3.6 where the Python dict preserves order, but goal here is to help round-trip EMBL/GenBank files by preserving the feature qualifier ordering. This means we can stop explicitly sorting the qualifiers on output (which produced stable but arbitrary ordering, rather than attempting to match the original order).
peterjc
force-pushed
the
qualifier_order
branch
from
November 10, 2016 11:04
fe81a48 to
b66b546
Compare
Contributor
|
Awesome! 👍 |
Member
Author
|
Not sure why GitHub didn't pick this up, but I applied this last week as c1f93f3 Thanks for the positive feedback, closing this PR. |
peterjc
added a commit
that referenced
this pull request
Apr 6, 2017
Works with 'pip install -r requirements.txt' under both CPython and PyPy 5.7, using pip 9.0.1 Testing any (non-empty) requirements.txt file under Jython 2.7 fails for me with a recursion error with current version of pip 9.0.1, see http://bugs.jython.org/issue2576 Closes #987
MarkusPiotrowski
pushed a commit
to MarkusPiotrowski/biopython
that referenced
this pull request
Oct 31, 2017
Works with 'pip install -r requirements.txt' under both CPython and PyPy 5.7, using pip 9.0.1 Testing any (non-empty) requirements.txt file under Jython 2.7 fails for me with a recursion error with current version of pip 9.0.1, see http://bugs.jython.org/issue2576 Closes biopython#987
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My goal is to help round-trip EMBL/GenBank files by preserving the feature qualifier ordering explicitly using an
OrderedDict.This means we can stop explicitly sorting the qualifiers on output (which produced stable but arbitrary ordering, rather than attempting to match the original order).
Some of this behaviour will happen by default as of Python 3.6 because the default
dictwill preserve order (see https://mail.python.org/pipermail/python-dev/2016-September/146327.html and https://stackoverflow.com/questions/39980323/dictionaries-are-ordered-in-python-3-6 etc).Comments welcome, e.g. @kblin @chapmanb @idoerg @widdowquinn as I know you all use the GenBank parser