-
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 #1913 #2056
fix #1913 #2056
Conversation
antgonza
commented
Jan 21, 2017
•
edited
Loading
edited
- Fixed field with new line breaks preprocessing #1913 + added test
- Reduced the loops over the headers and full files
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 one comment/question.
@@ -132,12 +116,30 @@ def load_template_to_dataframe(fn, strip_whitespace=True, index='sample_name'): | |||
holdfile.insert(0, "%s\n" % '\t'.join(headers)) | |||
# The QIIME parser fixes the index and removes the # | |||
index = 'SampleID' | |||
else: |
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.
Any reason why these checks are done only if the file is not a mapping file? Note that users can upload a QIIME mapping file instead of sample + prep information, so I think it is better if these checks are always executed (as they're before).