-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix #1837 #2061
fix #1837 #2061
Conversation
@tanaes, this is the functionality you were requesting, could you take a look? |
I am concerned of the approach taken here. We tried to do this at the beginning, but the problem is that you don't know which one is the barcode files and which one is the forward reads. For example, in the GIF that you have in the comments, it shows the R1 in barcodes and the R2 in forward reads, which I don't think is the correct assignment... |
After offline discussion we agreed that this is the best we can come up with and that for all the real cases we know this will work. However, we should expand the Note to say that the user should verify the file distribution. |
@tanaes can you review this PR when you have a second? |
|
||
for k, v in viewitems(sfiles): | ||
len_files = len(v) | ||
if len_files != 1 and len_files != 2: |
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.
would it be possible to have a comment here about this?
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 catch, added an explanation, improved the code and added a test.
<div class="blinking-message"> | ||
Please make sure that the correct files are in the correct column.<br/> | ||
Note: the system will try to auto select the files based on run_prefix, if that doesn't work, either the type you selected doesn't support | ||
it or the run_prefix is wrong |
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.
what is "it" here?
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.
well, it's it ... fixing.
Changes Unknown when pulling 8bf3d6e on antgonza:fix-1837 into ** on biocore:master**. |
Turns out that qiita_pet/templates/study_ajax/add_prep_artifact.html was left behind by mistake so removing it. Also, during testing I realized that you could send an unrelated study_id/prep_info_id and the system will not complain, added a raise and a test. However, this meant that a few of the tests not didn't make sense and to be honest it seems like they weren't testing anything important/new; let me know if I read this incorrectly. Finally, simplified the code a bit.