Open caroo-13 opened 4 years ago
First step is to look at the tutorials (on the phyloseq website) and vignettes (run browseVignettes("phyloseq")
from within R) regarding importing data.
The error is indicating that the phyloseq object project2
does not have a taxonomy table. Does your biom file "D://otu_table_json.biom" include the taxonomy information, or is that in the file "D:/table_w_tax.txt"? If it is in the file "D:/table_w_tax.txt", then you'll need to import that file into R and get it as a tax_table()
object, and then merge it with the phyloseq object. Right now you aren't importing that file, you're just saving the name of it to the variable taxa
. See the tutorials for more info.
Hi @mikemc
Thanks for your answer and recommendations.
I've tried converting the biom file to .tsv file, add the taxa from the table_w_taxa.txt document, and then run the code again. the result is now a matrix with only 1 Rank, rather than 7. Any idea of how to indicate the 7 Ranks?
Thanks again
Hi everyone
I have an R code to load files from QIIME2 onto R using the phyloseq package. the code goes this way:
When I run
colnames(tax_table(project2)
I get the error:and I can't continue running the rest of the code, because the taxonomic levels are not being assigned. Any idea why this would be?
I know that the code works, because I've used this exact same code for another project, and the input files (biom, fasta, tree, table_w_taxa) were obtained from QIIME2 in the exact same manner.
I've also noticed that in the other project that I've used this code "project1" and "project2" are described by R as "Large Phyloseq 1.8 MB" and in this code "project1" are described as "Formal classotu_table" and "project2" as "List of 5"
Sorry if this kinda of an obvious error, but I've Google it and I just can't make sense of it. any help would be greatly appreciated
Thanks, Carolina