Hi!
After running convertToPhyloseq, I noticed that the original row order is not preserved after conversion.
library(mia)
data("Tengeler2020", package = "mia")
tse <- Tengeler2020
pseq <- convertToPhyloseq(tse)
sum(rownames(tse) != taxa_names(pseq))
[1] 150
head(match(taxa_names(pseq), rownames(tse)))
[1] 135 19 27 84 123 105
I tried reordering the rows of the phyloseq object using otu_table and tax_table, but they seem immutable. Maybe original order can be imposed within convertToPhyloseq function? I am not sure why the order is changing in the first place.
Hi!
After running
convertToPhyloseq, I noticed that the original row order is not preserved after conversion.I tried reordering the rows of the phyloseq object using
otu_tableandtax_table, but they seem immutable. Maybe original order can be imposed withinconvertToPhyloseqfunction? I am not sure why the order is changing in the first place.