-
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
Problem importing biom file using import_qiime() #302
Comments
Ara, It's very unclear to me what is going on, because in your example, your import command failed with an error, but then you show commands afterward that include your data as a phyloseq object with 4 components. Somehow you successfully imported your data. Furthermore, files with a library("phyloseq")
?import_qiime
?import_biom
?import While you're at it, you said you have installed "the latest version of phyloseq", but the devel version on GitHub is updated often. Please always report the version number that is returned via the following: library("phyloseq"); packageVersion("phyloseq") Question 1Well, shouldn't be using The Question 2Do you mean the internal nodes, or the tree tips? There is essentially no processing by phyloseq of the internal nodes of the tree. Whatever is in your tree file will be stored in the tree-nodes labels. These might have some formatting constraint set by the ape package in I can't diagnose your problem further without very specific details. I'm not sure what you mean by "assign taxonomy correctly". It appears from your own example that the taxonomy table is present and valid, so I think the taxonomy is fine. If you have a tree-plotting or node-plot formatting issue, please provide more detail. See the following about producing a Minimal Working Example, which explains a nice guideline for posting more easily-diagnosable and reproducible problems in future posts. http://jaredknowles.com/journal/2013/5/27/writing-a-minimal-working-example-mwe-in-r Thanks for giving phyloseq a try! joey |
p.s. Since you don't seem to be stuck (your data is imported), I will close this issue for now. Please respond with a clarified version of your issue that includes each step leading up to the place where you are stuck, and what the output is. Ideally your problem can be reproduced using an included example dataset, like Thanks again, joey |
I almost forgot that you might want to try: tree_file = "rep_set_tree.tre"
read_tree_greengenes(tree_file) especially if you are using/appending a GreenGenes-formatted tree. |
Joey, Thanks for the comments and pointers. All the examples included in phyloseq worked fine for me. Let me dig through your comments and try again. ara |
Hi Ara, I struggled with some of the same issues as you, so maybe I can help.
However, one unresolved issue is that when you import an OTU table which has some OTUs with unassigned taxonomy, phyloseq adds in an extra column called "Rank1" to your tax_table. This column is entirely empty for me at least, so I simply removed it with the line below. #Get rid of weird 8th taxonomic rank that resulted from warnings above
tax_table(biomdata) <- tax_table(biomdata)[, -8] |
I am getting all kinds of other weird issues cropping up now that I changed over from import_qiime. I'll start a new ticket. |
Thanks @michberr for clarifying and giving pointers. I will re-open this issue as a documentation problem. The joey |
I am updating the documentation for |
Hi Joey, I am getting the below warnings when i try the greengenes tree. Can i just ignore and proceed with the analysis or i should consider it as it might affect the results in the analysis???
Phylogenetic tree with 99322 tips and 99321 internal nodes. Tip labels: Rooted; includes branch lengths.
Best Regards, |
Hi Joey, Actually, i thought of trying it out although there is warnings. I got the price with these error: otufile <- system.file("extdata", "otu_table_with_taxa_closed_PASTURE.txt", package="phyloseq")
I am using phyloseq_1.8.1 package and R 3.1.0. Please let me know if you want more details. Do you think that this error is because of those warnings?? It will be nice if you help me to solve this issue. Thanks in advance. Best Regards, |
Bala, Please indicate what version of QIIME you used, and what the file format is. For example, is it the legacy QIIME table format, or BIOM format? If it is the latter, then you should be using Also, 100,000 OTUs sounds a bit high... but that's a different topic... |
Hi Joey i used legacy qiime table format. I used qiime 1.8. I modified the table as per the example data in phyloseq extdata folder. Let me know if you need further details. |
Hi Joey, can i make a seperate issue for this or just leave it here? |
I am getting the same error when the following code is run: (Note I was just following your tutorial found here)
I get the following error after the call to import_qiime
|
Justin, I would separate the steps into 3 separate imports to pinpoint the error. It might be worth trying a small test example and providing us with a Best On Mon, Feb 29, 2016 at 12:32 PM, Justin Silverman <notifications@github.com
Susan Holmes |
Hi, I created biom file using qiime and imported in phyloseq using following command OTU_TAXA<-import_biom("D:/Czech/Triatomine2019/microbiome_data_20182019/data/otutable97_taxa_20182019.biom") The import was successful but i found that there were 20 taxonomy ranks instead of 7 taxonomy ranks in my phyloseq object. Some of my OTUs are having blank taxonomy, could that be a problem. If so please let me know, how to overcome this problem. Thanking you and looking forward to hear from you. |
Hi Joey,
A friend pointed me towards phyloseq as a tool I should be using for our upcoming papers. I had a few questions about the import_qiime function.
I am on an OS X 10.7.5 running R 3.x and RStudio. I installed the newest version of phyloseq from the github repo. I am using QIIME 1.8
Here is how I brought my qiime files in.
I saw this error from a year ago here on the forums but didn't find an answer to that.
I can still proceed downstream:
villaluz
rank_names(villaluz)
The main problem I am running into is when I do anything with the tree all I get for node id's are the denovo numbers and not actual OTUs that were assigned in QIIME.
I will keep my questions to a minimum so I don't clutter up the thread to much.
Error in
colnames<-
(*tmp*
, value = character(0)) :attempt to set 'colnames' on an object with less than two dimensions
but I can see the phyla and running all the box plots of alpha diversity and make bar plots
Thanks for the help and suggestions!
ara
The text was updated successfully, but these errors were encountered: