-
Notifications
You must be signed in to change notification settings - Fork 187
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
Error in Import_biom #674
Comments
Hello, biom convert -i otu_table.biom -o otu_table_json.biom --table-type="OTU table" --to-jsonCould you try this command? Did you convert to text and then to json? If so, you might have lost the taxonomic information in your table. Try to convert directly to json. Hopefully that’s helpful |
still having error in importing the biom file |
That error is likely to occur when one of the tables (e.g. taxonomy table or OTU table) does not have IDs, or most often the case, when the IDs between the tables do not match. It might also be that one of the tables is empty. It's hard to know without a reproducible example that generates this error. To avoid surprises later in analysis, phyloseq requires that IDs along the same dimensions match exactly. During import or object construction, only IDs that match across data components are retained. When there are no IDs that match, you can get weird errors about one of the components having length or dim zero. If I can find out where in the data import process this is happening in your case, I can improve the error messages to be more informative about the problem. @Imee929 can you share some more information for diagnosis? What are the dimensions of the data you expect in those files? Is there a publicly available or shareable file you can post that reproduces this same error? I will close for now, but if you can provide this I will re-open and we can try to figure out what is going on. Rest assured that properly formatted BIOM files with properly formatted IDs are successfully imported by phyloseq without an error. |
@joey711 i've got this same problem with an OTU table. I started with a large meta-dataset which I split using phyloseq into several component datasets. I wrote the OTU tables as .txt files with the taxonomy in the rightmost column. These files look fine, there are no special characters or carriage returns hiding in them. The taxonomies are delimited, but that shouldn't affect the output, as they are the same in the large dataset. I use the 'biom convert' function of QIIME to convert these to json formatted .biom files with taxonomy preserved, but when I go to import them with import_biom in phyloseq, I get the same error the OP has above. I've done this 8 ways now, checking for any irregularities, still the same error. I'm attaching the file that will reproduce the error so you can help me debug this. I know I can import plain text with phyloseq but some of our lab aren't as computer savvy and prefer to follow set instructions which involve importing .biom files. This is my import code: I know that the taxonomy vectors aren't actually empty, and the issue is with how they're processed by import_biom, because I can take this file and convert it to .txt with this command, and the taxonomy strings will be right there in the last column: |
Hi Joey,
I have issues with importing biom files into phyloseq. I tried parsing with qiime and greengenes and I got 2 different errors. I have read and followed what the forums suggested but I am still unsuccessful with importing files in to phyloseq. Can you help me figure out the issue.
file: table.from_txt_json.biom
Thanks,
Imee
The text was updated successfully, but these errors were encountered: