Skip to content

convertToPhyloseq: row order is different between input TreeSE and output phyloseq #821

Description

@RiboRings

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions