Skip to content
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

Import phyloseq tax_table deactivating fillNAtax #125

Open
sarpiens opened this issue Nov 7, 2024 · 0 comments
Open

Import phyloseq tax_table deactivating fillNAtax #125

sarpiens opened this issue Nov 7, 2024 · 0 comments

Comments

@sarpiens
Copy link

sarpiens commented Nov 7, 2024

Hi I have a phyloseq object and I would like to keep the labels of my tax_table as they are and disable the fillNAtax function. In my case the taxonomy is ready to use, gaps have already been filled e.g unclassified__f__Bacteroidaceae. When I try to transform the phyloseq tax_table to treedata with the as.treedata function, I get different results:

  1. When all tax labels start with the level prefix ("d__","p__","c__","o__","f__","g__", "s__") and there are no unclassified labels, it works perfectly with out modifications.

  2. When there are tax labels that start with the level prefix ("d__","p__","c__","o__","f__","g__", "s__") and others are indicated as unclassified, unclassified taxa are keep but modified e.g unclassified__g__CAJOIG01 turns into s__un_g__CAJOIG01.

  3. When all taxa have the unclassified label, complete tax levels are removed e.g if all the labels at species level have the unclassified label this level does not appear in the nodeClass of the resulting treedata. I also have tried to add the "s__" prefix, but the result is the same, if "unclassified" is detected in all labels of the tax level it is completely removed.

Is there a way to quickly fix this? Ideally to force the as.treedata function to avoid transformation of the tax labels or at least to operate in the same way in (2) and (3) scenarios.

Thanks in advance.
Best, Sam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant