-
Notifications
You must be signed in to change notification settings - Fork 91
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
Construct a phylogenetic tree from Kraken2 in order to use in phyloseq object #46
Comments
I was trying to do this recently too but as I understand it, you can't make it directly from a Kraken output as that only have taxonomic information. For phylogenetic information, you need to carry out a multiple sequence alignment and then carry out bootstrap calculation. Its somewhat computationally difficult to do and I honestly gave up on doing that for my samples. In terms of software that could make one, you could try MEGA although in my experience, that works for small-ish datasets. For phyloseq, you can make a taxonomic tree that could help in visualisation however, it doesn't really do much in providing phylogenetic information that you can analyse. If you do manage to find something that works for metagenomic data, let me know! |
Hey guys! Regards. |
Hi! |
I need to look into this, but should it not be possible to create a tree from the tax ids using e.g. ete3: http://etetoolkit.org/docs/latest/tutorial/tutorial_ncbitaxonomy.html |
Have you implemented getting phylogenetic trees from Kraken? |
Since we cannot use sequences to create the tree, it can only work using the taxi id information from ncbi.
Since for phyloseq one needs matching ids in the OTU table and the tree you would need to use ncbi id / abundance for the OTU table input and the newick tree from the script. Let me know if that works. |
Thank you so much for your help. I'll try it. Best wishes to you! |
You are welcome, let me know if it works, I will probably make a Galaxy tool out of the script at one point and make this a easy to use workflow ... should also work with other read-based classifiers |
Perhaps you could give Bracken, Phanta, and metaphlan a try based on reads. Additionally, metaphlan includes way for drawing phylogenetic trees, so you could make comparisons. For now, due to data processing issues, I'm unable to test your code at once. |
Wow! Thank you guys! Cheers. |
Hi,
It's my first time analysing metagenomics from a shotgun experiment but before to post this issue I tried some strategies to overcome the topic described below.
I would like to construct a phyloseq object from Kraken2 + Bracken output but containing a phylogenetic tree in the phyloseq object in order to be able to calculate Unifrac distances in downstream analysis.
Could you recommend me some software to create a phylogenetic tree from Kraken2 output?
Thanks on advance for your help/hints,
Magí.
The text was updated successfully, but these errors were encountered: