Repository navigation
Cope with missing training set in MEME - #1958
jclachance wants to merge 8 commits into
Conversation
Update the MEME motifs output parser to make it compatible with MEME version 5.0.4 (Release date: Wed Jan 23 14:05:40 2019 -0800).
|
|
||
|
|
||
| def __read_version(record, handle): | ||
| #This function still works |
There was a problem hiding this comment.
This doesn't seem like a useful comment line to add.
There was a problem hiding this comment.
Also in terms of the automatically enforced coding style (using flake8), this should be hash then space:
Bio/motifs/meme.py:131:5: E265 block comment should start with '# '
But please just remove the comment line completely.
| raise ValueError("Unexpected end of stream: Expected to find line starting with 'DATAFILE'") | ||
| if not line.startswith('DATAFILE'): | ||
| raise ValueError("Line does not start with 'DATAFILE':\n%s" % line) | ||
| if not line.startswith('PRIMARY SEQUENCES'): |
There was a problem hiding this comment.
The automated tests haven't finished yet, but by eye this looks like it will now break on old files which have DATAFILE here?
There was a problem hiding this comment.
It does indeed break on the old MEME files in our tests. This change needs to handle both old and new smoothly.
| record.control_seq = line | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Style issue - you need to remove the trailing white space here. This will fail our automated flake8 checks, have a look at this if you're not familiar with this tool:
|
The automated style test failed: Part of this is you've removed some important blank lines in the docstrings, have a look at PEP257 if the flake8 messages are unclear: I'm expecting the automated code tests to fail too, as you've changed the doctests which refered to a real example file (relative to the There's a chapter on the test framework in our tutorial for more background: |
|
Thank you for the comments. I will read through the links you have sent and
ensure that the next pull request meets the requirements.
…On Thu, Mar 14, 2019 at 3:48 PM Peter Cock ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In Bio/motifs/meme.py
<#1958 (comment)>:
> @@ -144,6 +128,7 @@ def __getitem__(self, key):
def __read_version(record, handle):
+ #This function still works
Also in terms of the automatically enforced coding style (using flake8),
this should be hash then space:
Bio/motifs/meme.py:131:5: E265 block comment should start with '# '
But please just remove the comment line completely.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1958 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXasxiifGu4twl7hMB7NECgYUSTqYlpZks5vWtGygaJpZM4b1WXe>
.
|
|
Great - and if you have suggestions for how we can make explaining this easier for future first time contributors, that' be welcome too. |
|
Minor problem: Bigger problem, you've added an external dependency - which we try hard to avoid: For this all you need to do is an integer comparison of the major version number. However, would it not have been simpler to make the parser cope with either data block dynamically (without the version check)? CC @mdehoon |
I suspect you checked in that file by mistake? If you do want to include it, please rename it to start "test_*.py" otherwise the test suite will not automatically include it. |
|
There is an easily fixed merge conflict in the news file now, which I could deal with - but what did you want to do with |
|
Are the names in the right places in the NEWS file? Seem to be some jumping between releases |
peterjc
left a comment
There was a problem hiding this comment.
Was file Tests/zz_test_motifs_jcl.py meant to be checked in? It is failing the black style test which caught my eye, but it does not follow the naming pattern to be run as a test either.
This pull request addresses issue #1871
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.)