-
Couldn't load subscription status.
- Fork 79
EBI step 2 #1450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EBI step 2 #1450
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this even work? I though that the insdc_status was a controlled vocab, except for the failed: ... status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, but at this point I'm just setting this section as it should work and then cleaning as needed. Note that the issue is that there is no tests for this file ... I'm gonna need to add it in a future iteration. Already added it to the joy list: #1451
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'm unsure if this function even needs to exist... We probably only want to use the parallel wrapper directly and this function should disappear. However, we will see as the code evolves...
|
@antgonza I'm a bit confused about this. IIRC, we agreed on using the ParallelWrapper right? Are you just cleaning up the |
|
5 steps: Yup, same page. |
|
Thanks @antgonza |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure that I understand what is going on here. Is this else covering the case in which the per sample FASTQ's have been already generated? If so, can you add a comment to make it clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done as a Note.
|
Few comments. |
qiita_ware/test/test_ebi.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed.
Actually, I just noticed that this test file is unsafe!!! Can you put the class decorator @qiita_test_checker() to the test class, so we avoid to run the test if this a production environment? That decorator will automatically drop the schema after each test, so you don't need to delete the processed data, only the files that it generates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, made the change but note that I divided the test in readonly and write/read cause without that decorator the test took 0.246s vs. with all the tests with the decorator it took 31.447s so with that split it takes 1.194s.
|
Can this get another review? @ElDeveloper @squirrelo @adamrp |
qiita_ware/ebi.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preferably, this should be using path.join instead of string formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
A few comments, but I think the code looks good. We should think carefully about what we want to do for
|
|
Ping?? |
qiita_ware/commands.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of just saving the exception message, I would save the whole traceback (for debugging purposes), seems to be something like this:
>>> from traceback import format_exc
>>> try:
... 1/0
... except:
... x = format_exc()
...
>>> print x
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
ZeroDivisionError: integer division or modulo by zero
|
The whole thing looks good to me, just one more comment and this should be ready for merge. |
|
👍 |
In this PR I'm removing all kwargs from methods, generating step 2 of the pipeline (generate per sample files) and adding tests for it.