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

Problem with phylo tree in microtable creation #436

Open
martina-nasuelli opened this issue Nov 19, 2024 · 6 comments
Open

Problem with phylo tree in microtable creation #436

martina-nasuelli opened this issue Nov 19, 2024 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@martina-nasuelli
Copy link

Hello @ChiLiubio

Thanks for this great package!

I've just started using microeco a few days ago, but I'm encountering a problem with adding the phylo tree file to the microtable of my data.

I can perform all analyses if I exclude the phylo_tree option in the qiime2eco function, but when I try to add the tree file the package returns this error:

Error in self$tidy_dataset() :
No same feature name found among otu_table, tax_table and phylo_tree! Please check feature names in those objects!

The problem is that the tip.label of the tree file are the same in the first column of otu_table, as they are derived from the same analyses and qza files in QIIME2.

Do you have any suggestions on how to overcome this problem?

Thank you very much!

Martina

@ChiLiubio
Copy link
Owner

Hi @martina-nasuelli
Please make sure the row names of otu_table and tax_table are ASV names. Then please ensure that the row names of otu_table are same with the tip labels in the tree file (same format). For such error, a possible reason is the tip labels have some unexpected characters. You may need check it. If there are some characters that you donnot need, please delete them with the functions such as gsub

Best,
Chi

@martina-nasuelli
Copy link
Author

martina-nasuelli commented Nov 22, 2024 via email

@ChiLiubio
Copy link
Owner

Hi.
One way is to create microtable object with minimum data file first and try to add another one. Then we can identify which one caused the error.

library(microeco)
data(sample_info_16S)
data(otu_table_16S)
data(taxonomy_table_16S)
data(phylo_tree_16S)

test <- microtable$new(sample_table = sample_info_16S, otu_table = otu_table_16S)
test <- microtable$new(sample_table = sample_info_16S, otu_table = otu_table_16S, tax_table = taxonomy_table_16S)
test <- microtable$new(sample_table = sample_info_16S, otu_table = otu_table_16S, tax_table = taxonomy_table_16S, phylo_tree = phylo_tree_16S)

The second issue shows the otu_table is not numeric. Please check it again. If it is still there, please attach the data and steps that I can use to reproduce the issue. Thanks.

Best,
Chi

@martina-nasuelli
Copy link
Author

martina-nasuelli commented Nov 23, 2024 via email

@ChiLiubio ChiLiubio added the documentation Improvements or additions to documentation label Nov 24, 2024
@ChiLiubio
Copy link
Owner

Hi. It seems like that data cannot be attached with email. Please check it.

@martina-nasuelli
Copy link
Author

martina-nasuelli commented Nov 24, 2024 via email

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

No branches or pull requests

2 participants