-
Notifications
You must be signed in to change notification settings - Fork 897
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
Creation of Diversity tutorial #4282
Creation of Diversity tutorial #4282
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small text adjustments and some suggestions for better explanation of krakentools alpha diversity
|
||
S is number of taxa, n is number of individuals and a is the Fisher's alpha. | ||
|
||
**KrakenTools** is a suite of scripts designed to help Kraken users with downstream analysis of Kraken results. The Krakentool **Calculate alpha diversity** offers the possibility to calculate five different alpha diversity indexes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output of bracken consists of all taxonomic levels: K_kingdom, P_phylum, C_class, O_order, F_family, G_genus, and S_species ; hence the alpha diversity is also calculated using all that levels. In think in most cases, alpha diversity is defined as "generally based on the number and relative abundance of taxa at some rank" ...maybe that could be explained as well.
Technically, one could add a filter step before krakentools to achieve that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be added as a detail box for people that uses Kraken output directly and not Braken one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes a detail box sounds good, still what I said applies for Kraken and Braken
4. Inverse Simpson's diversity | ||
5. Fisher's index | ||
|
||
> <hands-on-title>Calculate α diversity with Krakentools</hands-on-title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One could actually use Calculate α diversity with Krakentools
for any tool that outputs taxonomy abundances, provided one converts it into the correct table format i.e. assigning column 5 as the abundance, in fact that would for any population data, maybe that could be addressed, since it would allow the usage in a more generic setting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @Sophia120199. I made some suggestions of changes and also added some comments. We can talk about them tomorrow in our meeting
> Instead of selecting a few measures to describe an assemblage, it is preferable to **present a continuous profile** that depicts diversity or entropy as a function of q (where q ≥ 0). This approach enables a visual comparison of the compositional complexities among multiple assemblages and facilitates the assessment of the evenness in the relative abundance distributions of the assemblages. In practice, the profile is typically plotted for values of q ranging from 0 to q = 3 or 4, beyond which there is usually little change. | ||
> | ||
> ![Parameter q](./images/hill_numbers.png) | ||
> https://www.redalyc.org/journal/5117/511766773011/html/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this link? What does it refer to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats the source of the image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe good to put as a caption then (in parenthesis after the path to the image)
{: .details} | ||
|
||
|
||
> <details-title>More details on the Hill numbers</details-title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should that go with the Multidimensional metrics?
{: .details} | ||
|
||
|
||
> <details-title>More details on the Rényi entropy</details-title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should that go with the Multidimensional metrics?
@@ -0,0 +1 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the workflow there? And tests? Thanks
Co-authored-by: Bérénice Batut <[email protected]> Co-authored-by: paulzierep <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment for Calculate beta diversity
> Some of the key features and functionalities of QIIME 2 include: | ||
> 1. Data Import and Preprocessing: QIIME 2 supports the import of raw sequencing data and performs quality control and data preprocessing steps, such as demultiplexing, quality filtering, and primer removal. | ||
> 2. Taxonomic Assignments: The software enables taxonomic classification of microbial sequences using various algorithms and reference databases. | ||
> 3. Diversity Analysis: QIIME 2 allows users to explore and quantify microbial diversity within and between samples. It provides metrics for alpha diversity (within-sample diversity) and beta diversity (between-sample diversity). | ||
> 4. Community Analysis: Users can investigate the composition and structure of microbial communities, including taxonomic summaries, abundance profiles, and statistical comparisons between groups. | ||
> 5. Phylogenetic Analysis: QIIME 2 supports the construction of phylogenetic trees to infer evolutionary relationships among microbial taxa and perform phylogenetic diversity analysis. | ||
> 6. Statistical Analysis: The software offers a wide range of statistical methods for differential abundance analysis, correlation analysis, multivariate analysis, and other types of statistical tests. | ||
> 7. Visualization: QIIME 2 provides interactive and customizable visualizations to aid in the exploration and interpretation of microbiome data, including heatmaps, bar plots, PCoA plots, and taxonomic trees. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I think the most important information would be to state, that Calculate beta diversity with quiime has much more metric, but requires a different input format.
Hi @Sophia120199! Thanks a lot for your tutorial! Just wanted to let you know that we renamed the metagenomics topic to "microbiome", so I have also changed this in your PR. So please update your local branch to pull in these changes before adding more edits :) |
@Sophia120199 is not working with us anymore |
sorry I missed that completely, will try to review in the next days ... |
Still need to review this, will try my best ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we know where the test files are ?
--- | ||
layout: tutorial_hands_on | ||
title: Calculating α and β diversity from microbiome taxonomic data | ||
zenodo_link: xxx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need some test data and a workflow for this.
@@ -0,0 +1,437 @@ | |||
--- | |||
layout: tutorial_hands_on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
layout: tutorial_hands_on | |
layout: tutorial_hands_on | |
draft: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to have it as a draft tutorial?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
until I fix it yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never mind, I merged too early, lets fix it now
@paulzierep looks like you merged this while the build test was failing, so this (and any future updates to GTN) will not go live until that is addressed, do you have time to have a look at the faillure or should I? |
(I'm on it) |
Yes, sorry,, will fix it here: #5191 |
all good, I pushed a fix directly to main, just waiting to see if it builds now |
thanks @shiltemann ; I am fixing the rest here atm |
Hi, so this is the draft of a tutorial on how to calculate alpha and beta diversity, I'm looking forward to the review feedback :)
There are still some unsolved issues: