-
Notifications
You must be signed in to change notification settings - Fork 95
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
metadata_to_dataframe order matters #855
Comments
Hi @guillaume-gricourt, that parser was designed to support classic OTU tables from QIIME1 where the lineages were assured to be balanced with placeholders for unidentified names. TSVs are not BIOM-Format, and are unstructured which, which creates a wide range of edge cases. As a work around, you could parse counts without metadata, parse the taxonomy separately and add it in with |
Yeah it's a good workaround. |
I'd greatly welcome a pull request to resolve this feature request, otherwise I'm not sure when I'll be able to get to it. A possible work around is below.
|
Hi,
When you have this:
good.txt
it'ok
When the order of metadata is different :
bad.txt
You have :
ValueError: 2 columns passed, passed data had 6 columns
Maybe, taking account the maximum of value before parsing them ?
biom-format v2.1.10
The text was updated successfully, but these errors were encountered: