Open hkr01 opened 6 years ago
I am also having this problem while importing a tax table from QIIME2. Any advice?
Hi, This might be late, but if you try to directly change a data.frame to a phyloseq tax_table it will throw away your column and row names. To avoid this try using: TAX = tax_table(as.matrix(tax))
Hi- I am having this problem as well I used TAX = tax_table(as.matrix(tax))
which fixed the row header- but all my ASVs are still as "sp1" "sp2" etc
I had a similar problem and found such solution:
#ps is your phyloseq object
taxt <- tax_table(ps)@.Data
#the taxt is a matrix you can manipulate freely
tax_table(ps)@.Data <- taxt
fixes both column and row names.
The output from dada2 leaves me with an OTU, taxonomy and sample information file. I'm trying to create a phyloseq object from these 3 files using:
OTU = otu_table(spc, taxa_are_rows = TRUE) TAX = tax_table(tax) ENV = sample_data(env) ps<-phyloseq(OTU,TAX, ENV)
But I'm getting the error "Component taxa/OTU names do not match." I think this is because its changing otu_1 to sp1, and sp1 is not recognised in the OTU object as the OTUs are still in the format "otu_x" - How can I resolve this?