<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pedro J. Torres, Ph.D. on Medium]]></title>
        <description><![CDATA[Stories by Pedro J. Torres, Ph.D. on Medium]]></description>
        <link>https://medium.com/@PedroJTorres_?source=rss-7dbd615183b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3mAxJmfhySGaFTZZLIcqXw.jpeg</url>
            <title>Stories by Pedro J. Torres, Ph.D. on Medium</title>
            <link>https://medium.com/@PedroJTorres_?source=rss-7dbd615183b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:15:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@PedroJTorres_/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Statistical Insights: Understanding Confounding Variables and Their Impact on Data Analysis]]></title>
            <link>https://medium.com/@PedroJTorres_/understanding-confounding-variables-and-their-impact-on-data-analysis-5bf626c43b7d?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bf626c43b7d</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[confounding]]></category>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Fri, 27 Sep 2024 22:21:58 GMT</pubDate>
            <atom:updated>2024-09-27T22:25:51.802Z</atom:updated>
            <content:encoded><![CDATA[<p>When analyzing data we often search for patterns and relationships between variables. However, these relationships are not always straightforward. Confounding variables can obscure or distort these relationships, leading to false conclusions if they are not properly accounted for. Today, we’ll explore what confounding variables are, why they shouldn’t be ignored, and how their presence can impact the interpretation of data.</p><h4>What Are Confounding Variables?</h4><p>A confounding variable is a third variable that influences both the independent variable (the factor being manipulated or studied) and the dependent variable (the outcome of interest). This relationship can create a misleading association between the independent and dependent variables, making it seem like there is a direct cause-and-effect link when, in reality, the confounding variable is playing a significant role.</p><h4>Why Should Confounders Not Be Ignored?</h4><p>Ignoring confounding variables can lead to inaccurate or incomplete conclusions. Here’s why they matter:</p><ol><li><strong>False Causal Relationships</strong>: Without accounting for confounders, we might incorrectly conclude that one variable causes changes in another.</li><li><strong>Over- or Underestimating Effects</strong>: Confounders can amplify or diminish the perceived effect of an independent variable. This could make a weak relationship appear strong, or a significant one seem non-existent.</li><li><strong>Inconsistent Results</strong>: When confounders are not addressed, the results of an analysis may vary significantly depending on the specific data or subset analyzed, reducing the reliability of the conclusions.</li></ol><h4>Real-World Example Overestimating Effects: Height, Reading Ability, and Grade Level</h4><p>Imagine we’re trying to analyze the relationship between height and reading ability among students across different grade levels (e.g., Grades 9, 10, and 11). Initially, the analysis shows a positive correlation between height and reading ability.</p><p>However, when we break the data down by grade level, the positive relationship between height and reading ability disappears. What we find instead is that older students in higher grades (who are also generally taller) have better reading skills due to increased time spent in school, not because they are taller. Here, <strong>grade level</strong> is a confounding variable that explains the observed relationship between height and reading ability.</p><p>By controlling for grade level, we uncover the true driving factor — age — and avoid falsely attributing reading ability improvements to height.</p><pre>import pandas as pd<br>import numpy as np<br>import statsmodels.formula.api as smf<br>from statsmodels.stats.anova import anova_lm<br><br># Set seed for reproducibility<br>np.random.seed(42)<br># Number of students<br>n = 150<br># Generate grade (proxy for age) - Grades 9, 10, 11<br>grade = np.random.choice([9, 10, 11], size=n)<br># Generate height: taller students in higher grades<br>height = (grade * 5) + np.random.normal(5, 1.5, n)  # Taller with grade<br># Generate reading ability: directly influenced by age (grade)<br>reading_ability = (grade * 10) + np.random.normal(2, 1.5, n)<br># Create a DataFrame<br>data = pd.DataFrame({&#39;height&#39;: height, &#39;reading_ability&#39;: reading_ability, &#39;grade&#39;: grade})<br># Fit a model for ANOVA without controlling for grade (only height)<br>model_1 = smf.ols(formula=&#39;reading_ability ~ height&#39;, data=data).fit()<br># Perform ANOVA without controlling for grade<br>anova_results_1 = anova_lm(model_1)<br>print(&quot;ANOVA Results (Without Controlling for Grade):&quot;)<br>print(anova_results_1)<br># Fit a model controlling for grade<br>model_2 = smf.ols(formula=&#39;reading_ability ~ height + C(grade)&#39;, data=data).fit()<br># Perform ANOVA with grade included<br>anova_results_2 = anova_lm(model_2)<br>print(&quot;\nANOVA Results (Controlling for Grade):&quot;)<br>print(anova_results_2)</pre><pre>ANOVA Results (Without Controlling for Grade):<br>             df       sum_sq      mean_sq            F        PR(&gt;F)<br>height      1.0  9601.340496  9601.340496  1185.516789  1.551455e-72<br>Residual  148.0  1198.632028     8.098865          NaN           NaN<br><br>ANOVA Results (Controlling for Grade):<br>             df        sum_sq      mean_sq            F         PR(&gt;F)<br>C(grade)    2.0  10433.361248  5216.680624  2093.905758  3.208094e-108<br>height      1.0      2.872187     2.872187     1.152857   2.847232e-01<br>Residual  146.0    363.739088     2.491364          NaN            NaN</pre><pre>import pandas as pd<br>import numpy as np<br>import matplotlib.pyplot as plt<br>import seaborn as sns<br><br># Create a DataFrame<br>data = pd.DataFrame({&#39;height&#39;: height, &#39;reading_ability&#39;: reading_ability, &#39;grade&#39;: grade})<br># Set up the colors for the grades<br>colors = {9: &#39;blue&#39;, 10: &#39;green&#39;, 11: &#39;red&#39;}<br># Create the first plot (full dataset regression)<br>plt.figure(figsize=(14, 6))<br>plt.subplot(1, 2, 1)  # First plot<br>sns.scatterplot(x=&#39;height&#39;, y=&#39;reading_ability&#39;, hue=&#39;grade&#39;, palette=colors, data=data, s=100, edgecolor=&#39;k&#39;)<br>sns.regplot(x=&#39;height&#39;, y=&#39;reading_ability&#39;, data=data, scatter=False, color=&#39;black&#39;, label=&#39;Full Dataset&#39;)<br>plt.title(&#39;Regression Line for Full Dataset&#39;)<br>plt.xlabel(&#39;Height (cm)&#39;)<br>plt.ylabel(&#39;Reading Ability&#39;)<br># Create the second plot (regression per grade)<br>plt.subplot(1, 2, 2)  # Second plot<br>for grade_level in data[&#39;grade&#39;].unique():<br>    subset = data[data[&#39;grade&#39;] == grade_level]<br>    sns.scatterplot(x=&#39;height&#39;, y=&#39;reading_ability&#39;, data=subset, color=colors[grade_level], s=100, edgecolor=&#39;k&#39;, label=f&#39;Grade {grade_level}&#39;)<br>    sns.regplot(x=&#39;height&#39;, y=&#39;reading_ability&#39;, data=subset, scatter=False, color=colors[grade_level])<br>plt.title(&#39;Separate Regression Lines for Each Grade&#39;)<br>plt.xlabel(&#39;Height (cm)&#39;)<br>plt.ylabel(&#39;Reading Ability&#39;)<br>plt.legend(title=&#39;Grade&#39;)<br># Display the plots<br>plt.tight_layout()<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fShYxVZ8n1FDVSFFftSCzw.png" /></figure><h4>Real-World Example Underestimating Effects: Clusters, Abundance , and Gender</h4><p>In this scenario, we’re analyzing the relationship between DMM cluster (a grouping variable) and a feature called “abundance.” Initially, when we do <strong>not control for gender</strong>, the DMM cluster does not show a significant effect on abundance, leading us to believe that DMM cluster might not be relevant to explaining abundance.</p><p>However, once we <strong>include gender</strong> as a control variable in the analysis, the DMM cluster <strong>becomes significant</strong>. This change occurs because gender is a confounding variable, and by controlling for it, we can better isolate the effect of the DMM cluster. Specifically, gender has a dominant effect on abundance (females show higher abundance than males), and without controlling for gender, this stronger effect hides the influence of the DMM cluster.</p><p>By excluding confounding variables like gender, we risk underestimating the true effect of the DMM cluster, potentially obscuring relationships that do exist. In this case, gender had such a strong influence on abundance that it masked the significance of the DMM cluster. However, when we controlled for gender, the true relationship between DMM cluster and abundance became evident. This underscores the importance of accounting for known confounders in models — without them, crucial associations may remain hidden, leading to incorrect conclusions.</p><pre>import pandas as pd<br>import numpy as np<br>import statsmodels.api as sm<br>import statsmodels.formula.api as smf<br>from statsmodels.stats.anova import anova_lm<br><br># Create a synthetic dataset<br>np.random.seed(42)<br>n = 100  # number of samples<br>dmm_cluster = np.random.choice([&#39;A&#39;, &#39;B&#39;], size=n)  # Two clusters<br>gender = np.random.choice([&#39;Male&#39;, &#39;Female&#39;], size=n)  # Gender variable<br><br># Create an outcome variable with a stronger influence from gender<br># When combined with dmm_cluster, make gender&#39;s effect dominate<br>abundance = (<br>    (dmm_cluster == &#39;A&#39;) * 1 +  # Cluster A has some base abundance<br>    (gender == &#39;Female&#39;) * 6 +  # Females have a stronger influence<br>    np.random.normal(0, 1, n)  # Adding some noise<br>)<br><br># Create a DataFrame<br>data = pd.DataFrame({&#39;abundance&#39;: abundance, &#39;dmm_cluster&#39;: dmm_cluster, &#39;gender&#39;: gender})<br><br># Fit a model for ANOVA without gender<br>model_1 = smf.ols(formula=&#39;abundance ~ C(dmm_cluster)&#39;, data=data).fit()<br><br># Perform ANOVA<br>anova_results_1 = anova_lm(model_1)<br>print(&quot;ANOVA Results without Gender:&quot;)<br>print(anova_results_1)<br><br># Fit a model for ANOVA with gender<br>model_2 = smf.ols(formula=&#39;abundance ~ C(dmm_cluster) + C(gender)&#39;, data=data).fit()<br><br># Perform ANOVA<br>anova_results_2 = anova_lm(model_2)<br>print(&quot;\nANOVA Results with Gender:&quot;)<br>print(anova_results_2)</pre><pre>ANOVA Results without Gender:<br>                  df       sum_sq    mean_sq         F    PR(&gt;F)<br>C(dmm_cluster)   1.0    21.016762  21.016762  1.969597  0.163651<br>Residual        98.0  1045.717714  10.670589       NaN       NaN<br><br>ANOVA Results with Gender:<br>                  df      sum_sq     mean_sq            F        PR(&gt;F)<br>C(dmm_cluster)   1.0   21.016762   21.016762    25.210618  2.335232e-06<br>C(gender)        1.0  964.853931  964.853931  1157.388737  1.020974e-55<br>Residual        97.0   80.863783    0.833647          NaN           NaN</pre><pre>import seaborn as sns<br>import matplotlib.pyplot as plt<br><br># Set up the figure<br>plt.figure(figsize=(14, 6))<br><br># Plot 1: Scatter plot of abundance vs DMM cluster, colored by gender<br>plt.subplot(1, 2, 1)<br>sns.scatterplot(x=&#39;dmm_cluster&#39;, y=&#39;abundance&#39;, hue=&#39;gender&#39;, data=data, s=100, edgecolor=&#39;k&#39;)<br>plt.title(&#39;Abundance vs DMM Cluster (Colored by Gender)&#39;)<br>plt.xlabel(&#39;DMM Cluster&#39;)<br>plt.ylabel(&#39;Abundance&#39;)<br><br># Plot 2: Bar plot of mean abundance by DMM cluster and gender<br>plt.subplot(1, 2, 2)<br>sns.barplot(x=&#39;dmm_cluster&#39;, y=&#39;abundance&#39;, hue=&#39;gender&#39;, data=data, ci=None)<br>plt.title(&#39;Mean Abundance by DMM Cluster and Gender&#39;)<br>plt.xlabel(&#39;DMM Cluster&#39;)<br>plt.ylabel(&#39;Mean Abundance&#39;)<br><br># Display the plots<br>plt.tight_layout()<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKQ3rZcqk4X1C6gAIanr6w.png" /></figure><h3>Confounding Variables vs. Spurious Correlations</h3><p><strong>Confounding Variables</strong>:</p><ul><li><strong>What they are</strong>: Confounders are variables that influence both the independent variable (the cause) and the dependent variable (the effect), distorting the true relationship between them.</li><li><strong>Example</strong>: In a study looking at the relationship between exercise and weight loss, age might be a confounder because it affects both how much someone exercises (older people may exercise less) and how much weight they lose (older people may lose weight differently). Without accounting for age, we might misinterpret the effect of exercise on weight loss.</li><li><strong>The Key</strong>: Confounders are legitimate factors that must be controlled to reveal the true relationship between the variables being studied. Their influence is real and measurable, just not the focus of the analysis.</li></ul><p><strong>Spurious Correlations</strong>:</p><ul><li><strong>What they are</strong>: Spurious correlations happen when two variables seem related, but the relationship is due to coincidence or an unrecognized external factor.</li><li><strong>Example</strong>: Ice cream sales and drowning incidents both increase in the summer. This correlation is spurious because eating more ice cream doesn’t cause more drownings — both are simply tied to warmer weather, which is the real driving factor.</li><li><strong>The Key</strong>: Spurious correlations don’t represent a meaningful or causal relationship. They are statistical coincidences that might trick us into thinking there’s a connection where none exists.</li></ul><h4>The Distinction:</h4><ul><li><strong>Confounding variables</strong> are <strong>real factors</strong> that affect the relationship you’re studying. They are hidden causes that, if left uncontrolled, obscure the actual effect of the independent variable on the dependent variable.</li><li><strong>Spurious correlations</strong> are <strong>false relationships</strong> that arise due to coincidence or unconsidered external factors. There’s no causal link between the variables themselves.</li></ul><h4>How to Address Confounding Variables</h4><p>There are several strategies to handle confounding variables in data analysis:</p><ol><li><strong>Study Design</strong>: When possible, carefully design studies to minimize confounding effects. Randomization, matching, or stratification can help reduce the influence of confounders.</li><li><strong>Statistical Control</strong>: In many cases, confounding variables can be accounted for through statistical techniques. For instance, including confounders as covariates in regression models helps isolate the true relationship between the variables of interest.</li><li><strong>Multivariate Analysis</strong>: Approaches like ANCOVA (analysis of covariance) allow us to control for confounding variables while assessing the main variables of interest.</li></ol><h4>Impact of Confounders on Data Interpretation</h4><p>Using the height-reading ability example, we ran two analyses:</p><ol><li><strong>Without Controlling for Grade Level</strong>: The results initially suggested a strong positive correlation between height and reading ability.</li><li><strong>After Controlling for Grade Level</strong>: Once we accounted for grade level (the confounder), the relationship between height and reading ability diminished, revealing that it was <strong>age</strong> (reflected by grade) that was driving the improvement in reading ability.</li></ol><p>This illustrates how confounders can alter the interpretation of data. In cases where confounding variables are not controlled, the conclusions can be misleading.</p><h4>Conclusion</h4><p>Confounding variables are an inherent part of any data analysis, and they can significantly alter the outcomes if not accounted for. It is critical to identify potential confounders and address them through proper study design and statistical techniques.</p><p>By understanding confounding variables, we can avoid false conclusions and uncover the true relationships between variables, leading to more accurate and reliable findings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bf626c43b7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Statistical Insights: Unraveling Spurious Correlations with the Power of Precision Matrices]]></title>
            <link>https://medium.com/@PedroJTorres_/statistical-insights-unraveling-spurious-correlations-with-the-power-of-precision-matrices-405ad147bc5a?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/405ad147bc5a</guid>
            <category><![CDATA[correlation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Fri, 16 Feb 2024 00:07:07 GMT</pubDate>
            <atom:updated>2024-02-16T05:54:28.064Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of data analysis and statistics, uncovering meaningful relationships between variables is crucial. One such statistical method for describing relationships between variables is via correlation. If two variables are highly correlated, it <strong>might</strong> indicate causality. However, not all correlations are indicative of true causation. As the old axiom goes, “<strong>Correlation does not imply causation.</strong>” Sometimes, correlations emerge as a result of hidden variables influencing multiple factors, leading to what are known as spurious correlations.</p><p>Spurious correlations can mislead us into inferring direct relationships between variables when none exist. Let’s start by generating samples with a conditional dependence of <em>y </em>on <em>x</em> , and <em>z </em>on <em>x </em>. In other words, imagine a simple scenario where <em>x </em>is influencing or causing a change in the values of <em>y </em>and <em>z</em>.</p><pre>import numpy as np<br>import matplotlib.pyplot as plt<br>import seaborn as sns<br>import pandas as pd<br><br># Set random seed for reproducibility<br>np.random.seed(42)<br><br># Number of samples<br>n = 1000<br><br># Generate random values for x<br>x = np.random.normal(0, 1, n)<br><br># Generate y conditional on x<br>y = 2 * x + np.random.normal(0, 1, n)<br><br># Generate z conditional on x<br>z = 3 * x + np.random.normal(0, 1, n)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBqHoGQ_slv0TZHmblxTOQ.png" /><figcaption>Scatter plot showing relationship between the 3 variables generated above and the correlations coefficient.</figcaption></figure><p>In this scenario, where <em>y </em>and <em>z </em>are generated conditionally on <em>x </em>but not directly dependent on each other, any observed correlation between <em>y </em>and <em>z </em>would be purely spurious. Such correlations can mislead us into inferring direct relationships between variables when none exist. The figure above illustrates how <em>x</em> is correlated with both <em>y</em> and <em>z </em>, creating the appearance of correlation between <em>y </em>and <em>z </em>despite no direct relationship between them.</p><p>Thankfully, there’s a powerful tool to disentangle such spurious correlations: the precision matrix, which is the inverse of the covariance matrix. By examining the precision matrix, we can discern whether correlations are genuine or merely artifacts of shared dependencies. Specifically, we can investigate conditional independence among the variables.</p><p>Conditional independence of <em>y</em> and <em>z </em>given <em>x</em> implies that once we control for the influence of <em>x </em>, there is no remaining direct relationship between <em>y </em>and <em>z </em>. Therefore, any correlation between <em>y</em> and <em>z </em>can be attributed solely to their shared dependence on <em>x </em>, given the observed values of <em>x </em>, rather than implying a direct relationship between <em>y </em>and <em>z </em>.</p><p>Calculating the precision matrix allows us to assess these conditional dependencies accurately.</p><pre># Calculate precision matrix (inverse of the covariance matrix)<br>prec_matrix = np.linalg.inv(np.cov(np.array([x, y, z])))</pre><p>The heatmap below illustrates both the correlation and precision (inverse covariance) values among all the variables. Upon inspecting the inverse covariance matrix, we observe that, after controlling for the influence of <em>x </em>, there exists no direct relationship between <em>y </em>and <em>z </em>, as evidenced by a precision value of 0 between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBS5Zs2mxlKPd8AmzdE3Kw.png" /></figure><p>Another effective method for visualizing relationships among multiple variables is through networks. Below, we can observe how the application of inverse covariance effectively eliminates spurious correlations. When applied to biological data, this approach enhances the interpretation of our findings. Notably, the seemingly correlated relationship between <em>y</em> and <em>z </em>is debunked, underscoring the critical importance of scrutinizing correlations using the precision matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-cEqvb0GhqABUlAf9_zpVQ.png" /></figure><p>In conclusion, when navigating the intricate web of correlations, it’s essential to recognize the invaluable role of the inverse covariance matrix. Acting as a beacon, it guides us away from spurious relationships and toward genuine insights into the underlying dynamics of the data.</p><ul><li><a href="https://github.com/pjtorres/statistics_notes/blob/main/Spurious%20Correlations%20and%20Inverse%20Covariance.ipynb">Code used to generate data and figures</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=405ad147bc5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Microbial Universe: Strategies for Gene and Protein Clustering in Metagenomic…]]></title>
            <link>https://medium.com/@PedroJTorres_/unlocking-the-microbial-universe-strategies-for-gene-and-protein-clustering-in-metagenomic-78c4e4d67b72?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/78c4e4d67b72</guid>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 22:42:40 GMT</pubDate>
            <atom:updated>2023-12-09T15:27:32.822Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unlocking the Microbial Universe: Strategies for Gene and Protein Clustering in Metagenomic Analysis</h3><p>When analyzing microbiome metagenomes, a typical process involves obtaining the raw reads, excluding human reads and other artifacts, refining the remaining reads, and aligning the remaining sequences to a database of known taxa and genes (reference database). With taxa, we essentially digitally reconstruct the microbiome environment to gain insight into the composition of the ecosystem in an individual (identifying the types of taxa present). When examining genes, our goal is to understand the functional capabilities of these microbes.</p><p>To create a gene reference database from the ground up, the usual procedure involves collecting a large set of microbial genomes (focusing on just bacteria right now). Bioinformatically, we identify open reading frames or potential gene regions, as these areas are ideally capable of producing proteins. Proteins play a pivotal role in facilitating most biological processes within a cell. As a result, the identification, annotation, and characterization of these proteins are of paramount importance.</p><p>However, it’s crucial to remember that a single microbial genome contains thousands of genes. Treating each gene in every microbial genome as its own functional unit would lead to an overwhelming number of features and insufficient samples, creating a genuine feature space nightmare. To address this issue, we attempt to circumvent it by grouping proteins or genes into families based on similarities. Imagine this process as akin to categorizing strains in bacteria into larger buckets, much like species. There are two primary approaches to grouping: 1. knowledge-based and 2. clustering.</p><p><strong>Knowledge-based</strong></p><p>The knowledge-based approach is quite simple. You take your genes and map them to a known, annotated reference database (examples include KEGG, CAZy, and CARD database). This approach is fast, expert-curated, and highly accurate at capturing meaningful information. However, the annotations in the reference databases heavily rely on model organisms that are easy to grow and manipulate or come from environments of special interest. Consequently, approximately 40–50% of genes are categorized as having an unknown function (when using KEGG annotation). In a typical bioinformatics pipeline, these unknown genes are grouped into a single “unknown” category and removed from downstream analysis. This means that we are missing important protein groups from non-model organisms that could be potential differentiators in health or disease states, also known as novel biomarkers or drug candidates.</p><p><strong>Clustering based</strong></p><p>Here, I am not referring to functionally related genes closely clustered together in a microbial genome (e.g., Human milk oligosaccharides). Instead, we can take all of our genes/proteins and cluster or group them based on mathematical algorithms that assess similarity between individual genes/proteins. This approach is purely data-driven and unbiased, relying on patterns rather than pre-existing biological knowledge. However, this method may lack immediate biological interpretability, and depending on the algorithm, there may be parameters that need optimization, making results sensitive to parameter choices. Nevertheless, it is an effective way to group genes/proteins and can lead to the discovery of novel gene/protein groups/families.</p><p>Protein families are groups of molecules that share significant sequence similarity; members of the same family are likely to possess similar or identical biochemical functions. There are two ways to cluster genes/proteins: 1. K-mer and heuristic approach, and 2. Pairwise-alignment followed by network-based methods.</p><p><strong>K-mer and heuristic approach</strong></p><p>This type of clustering is achieved through direct sequence comparisons, exemplified by algorithms such as CD-HIT. Succinctly, CD-HIT operates as follows:</p><ol><li>Organize all genes/proteins based on size.</li><li>Begin with the largest gene/protein and break it into smaller “words” or K-mers, forming Cluster 1.</li><li>Take the next largest sequence, break it into “words” or K-mers, and match these words against genes in Cluster 1.</li><li>If the number of word matches surpasses a user-determined threshold (e.g., 99%, 95%, 90%), the gene/protein is assigned to Cluster 1; otherwise, it forms its own cluster (e.g., Cluster 2).</li><li>Repeat the process.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wi-x-fruFWRWcbNTPcekeQ.png" /><figcaption>A simplified visualization of the K-mer clustering approach, where Cluster 1 consists of three genes, each sharing K-mer 1, while Cluster 2 comprises three genes, all sharing a distinct K-mer 2.</figcaption></figure><p>This approach is both fast and ingenious, with many achieving success using it. However, there are some caveats, such as determining the correct threshold for word matching. Its speed is attributed to the absence of actual sequence alignment, relying solely on word matching.</p><p>Yet, challenges arise when considering whether the matched words are arranged differently between two genomes or if they belong to a conserved region of a protein, possibly stabilizing the protein but existing in two proteins with completely different functions. This challenge stems from the fact that proteins can possess multi-domain architecture and promiscuous domains. Protein domains act as functional and structural building blocks within proteins, allowing them to fulfill specific roles. As these domains are crucial for self-stabilization and a particular protein function, once nature designs one that works, it is often reused in other proteins with different overall functional roles (avoiding redundancy). Proteins with multiple domains can complicate the K-mer and heuristic approach, potentially leading to incorrect grouping. The presence of shared domains does not necessarily imply that these proteins perform the same function. Ideally, proteins with similar domain architectures should be classified into a single family only if they share highly similar domain arrangements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1r7awhM_cctgDUd-AKbIbQ.png" /><figcaption>Example illustrating how K-mer-based approaches can lead to flawed clustering.</figcaption></figure><p><strong>Pairwise-alignment followed by network based methods for clustering</strong></p><p>Several programs have attempted to address the specific challenges associated with protein domains mentioned earlier. One of the most effective ones I have worked with so far is sequence clustering based on pairwise alignment and graph clustering. Although this approach is more time-consuming and resource-intensive, the results have been amazing. It involves a two-step process.</p><p>Firstly, you create a pairwise similarity matrix (this can be done with DIAMOND or BLAST). This step is computationally expensive due to its dynamic programming approach. Once the similarity matrix is obtained, graphical clustering programs like Markov Clustering (MCL) are used to cluster proteins into families based on a global treatment of all relationships in the similarity space simultaneously. This part is both fast and accurate.</p><p>Here’s how it works: each sequence is treated as a node in a network, and sequences are connected based on their similarity (referred to as an edge). Higher similarity results in shorter edges, while lower similarity produces longer edges. Clusters are characterized by many short edges between members of that cluster and longer paths (edges) between two arbitrary nodes in a cluster. MCL performs random walks on the graph and infrequently transitions from one natural cluster to another. The less frequent the transitions, the more likely those clusters are different. Random walks within the graph are simulated by alternating between two operators known as expansion and inflation.</p><p>The MCL algorithm itself is user-friendly, primarily requiring one option (although additional settings may be necessary for networks with numerous nodes and edges): the inflation parameter, which determines the level of cluster granularity. Lower inflation values can yield fewer, larger clusters, while higher values result in more, smaller clusters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*pjNs2NqqzClnCBnugrT05Q.png" /><figcaption>Example network: Each node (shape) represents a sequence, and the lines or edges depict sequence similarity, color-coded to indicate whether they belong to the same protein family or not. This particular network was taken from here: <a href="http://www.jakehofman.com/publication/bayesian-network-modularity/">http://www.jakehofman.com/publication/bayesian-network-modularity/</a></figcaption></figure><p><strong>Quick guide on generating gene/protein clusters using MCL</strong></p><p>We will assume that the genes/proteins you want to cluster are in the file genes.faa.</p><ol><li>Create DIAMOND database</li></ol><pre>diamond makedb --in genes.faa -d genes_dbs</pre><p>2. Perform self-BLAST</p><p>Optimize and filter the results based on your criteria (e.g., e-value thresholds, max target seqs, percent identity, etc.).</p><pre>diamond blastp –masking 0 –sensitive -d genes_dbs -q genes -o genes_diamond_out.txt –outfmt 6</pre><p>3. Prepare data for MCL input</p><p>In this instance, we will use the e-value as our similarity measure, but you also have the option to utilize percent identity, bitscore, or any other metric you have developed.</p><pre>cut -f1,2,11 genes_diamond_out.txt &gt; genes_diamond_out_eval</pre><p>4. Run MCL</p><pre>mcl genes_diamond_out_eval --abc -I 2 -te 8 -o mcl_evalue --abc-neg-log10</pre><p><strong>Resources</strong></p><ul><li><a href="https://micans.org/mcl/">https://micans.org/mcl/</a></li><li><a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC101833/#:~:text=The%20MCL%20algorithm%20finds%20cluster,set%20of%20probabilities%20into%20another">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC101833/#:~:text=The%20MCL%20algorithm%20finds%20cluster,set%20of%20probabilities%20into%20another</a></li><li><a href="https://www.nature.com/articles/s41586-023-06583-7">https://www.nature.com/articles/s41586-023-06583-7</a></li><li><a href="https://link.springer.com/protocol/10.1007/978-1-61779-361-5_15">https://link.springer.com/protocol/10.1007/978-1-61779-361-5_15</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78c4e4d67b72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Statistical Insights: Addressing Challenges in Repeated Measures Data with Linear Mixed Models]]></title>
            <link>https://medium.com/@PedroJTorres_/statistical-insights-addressing-challenges-in-repeated-measures-data-with-linear-mixed-models-41fe4575331c?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/41fe4575331c</guid>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 17:58:57 GMT</pubDate>
            <atom:updated>2023-11-30T17:58:57.212Z</atom:updated>
            <content:encoded><![CDATA[<p>In research, especially within fields like psychology, medicine, biology, and social sciences, measurements are often taken repeatedly on the same subjects over time, across different conditions, or in various situations. This data structure is characterized by interdependencies, where measurements from the same subject are not independent and may exhibit correlations. This type of data, known as repeated measures, poses a unique challenge for traditional statistical analysis methods like ANOVA (Analysis of Variance) due to certain limitations.</p><h4><strong>Limitations of traditional Methods (e.g., ANOVA)</strong></h4><p>Traditional methods like ANOVA are limited in their ability to effectively handle data with repeated measures due to the following reasons:</p><ul><li><em>Assumption of Independence</em>: ANOVA assumed independence of observations, which is often violated in repeated measures leading to inaccurate results.</li><li><em>Inability to address correlation</em>: It does not account for within-subject correlation, overlooking the inherent dependencies among those observations</li><li><em>Equal variance assumption</em>: It assumes equal variance across groups and time points which might now hold in repeated measures.</li></ul><p><strong>Challenges of Dealing with Correlated Data and Within-Subject Variability</strong></p><p>Correlated data poses a significant challenge in statistical analysis, especially when measurements collected within the same subject are inherently connected. For instance, monitoring a participant’s responses over time unveils correlations between measurements. This correlation may stem from consistent individual characteristics influencing responses over time or dependencies on the participant’s previous states or conditions. It is crucial to recognize these interconnections, as overlooking such correlations can lead to flawed inferences, an underestimation of variability, or false significance in statistical tests.</p><p>Furthermore, the concept of within-subject variability adds another layer of complexity. Individuals within the same group may respond differently to various treatments or conditions due to inherent differences. Traditional statistical methods, which assume constant variability across all subjects, may oversimplify the intricacies of within-subject variability. This oversimplification can lead to results that fail to capture the nuanced and individualized nature of responses within a group. Acknowledging and addressing these complexities become crucial for a more accurate and meaningful statistical analysis.</p><p><strong>Real-world Example</strong></p><p>Let’s consider a dataset where we observed the <strong>metabolome of the same individual under various conditions</strong>. Your initial inclination should be towards recognizing the presence of “repeated measures.” However, let’s conduct some initial data exploration and delve into the PCA plot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/0*_CNi34a_qeuUPTf1" /></figure><p>Each color in the plot represents one sample’s metabolome in a two-dimensional space. Notably, each sample exhibits a stronger resemblance to itself than to other samples. Samples from the same participant tend to cluster together, indicating a robust correlation among these samples. It’s important to also recognize that these samples are not independent from one another, challenging the assumption of independence in ANOVA.</p><p>Let’s look at another interesting phenomenon. The box plot below focuses on a specific metabolite, the name of which isn’t crucial for our discussion. A quick glance at the box plot reveals that there isn’t a substantial difference in the abundance of this metabolite across various conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/0*FeSlcc3DrnEMp0-6" /></figure><p>However, upon closer inspection of each individual sample, we observe variability in the metabolite across different conditions. Notably, different samples appear to react in opposite ways under the same condition. Additionally, it is observed that each sample has a different starting position when considering Combo_1 as our control or reference point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*nZDD-y1_LTHg0dXo" /></figure><p>What we require is a model that accommodates variations in the intercept (or starting point) for each sample. Additionally, we need a model that permits differences in slopes among various samples. It’s important to note that this clustering might not only be attributed to individual samples; it could also stem from distinct samples originating from five different doctors across five different studies. We aim to account for these groupings of factors, often referred to as random effects, to enhance the precision of our analysis.</p><p><strong>Linear Mixed Models (LMMs)</strong></p><p>Linear Mixed Models (LMMs) represent an advanced and versatile tool in modern statistical analysis, particularly adept at handling repeated measure data. Their adaptability in managing unstructured data, incorporation of random effects, and precise modeling of repeated measures make them an essential choice for researchers across various fields seeking accurate analysis of complex and correlated data structures. The significance of LMMs lies in their ability to provide more accurate and reliable inferences in scenarios where traditional methods, such as ANOVA, fall short in handling the complexities of repeated measures.</p><p><strong>Fixed and Random Effects</strong></p><p>Fixed effects encompass variables or factors of primary interest in the study — those expected to influence the response variables. For example, these could be variables exploring how BMI responds to specific drug treatment (fixed effect), how the microbiome reacts to a predefined set of antibiotics (fixed effect), or how an individual’s metabolome is impacted by a set of probiotics (fixed effect).</p><p>On the other hand, random effects capture grouping-specific variability that, while not directly of interest, influences observation outcomes. Therefore, it is crucial to control for these grouping factors or random effects. This involves accounting for within-group correlations or variations, recognizing individual differences such as individual intercepts or slopes. It’s worth noting a golden rule: it is generally advisable for your random effect to have at least five levels. For example, if we wanted to control for the effects of a participant’s sex on drug response, we would treat sex (a two-level factor: male or female) as a fixed, not a random effect.</p><p><strong>Final Example</strong></p><p>In the metabolite example, let’s consider a scenario where we have 20 individuals, and each had their gut metabolome measured at baseline. Subsequently, each of these individuals received five different treatments. Our goal is to understand which metabolites were most affected by the various probiotic combinations. Our model would take the following form</p><p>Metabolite ~ Treatment + (1|Subject)</p><p>Metabolite serves as our response variable, Treatment is designated as the fixed variable, and (1|Subject) is identified as the random variable.</p><p>In R this is a very easy code to run</p><pre># taking into account radnom intercept, accounting for variations in the <br># baseline among different subjects<br>mixed.lmer &lt;- lmer(Metabolite ~ Treatment + (1|Subject), data = metabolites)<br>summary(mixed.lmer)<br><br># taking into account both random intercept and a random slope. Allows the <br># possibility that each subject may have a different baseline and may respond <br># differently to the treatment.<br>mixed.lmer &lt;- lmer(Metabolite ~ Treatment + (1 + Treatment|Subject), data = metabolites)<br>summary(mixed.lmer)</pre><p>In Python it can be a bit more complicated</p><pre># taking into account radnom intercept, accounting for variations in the <br># baseline among different subjects. ~1 takes into account the random intercept<br>formula = f&#39;{metabolite} ~ C(Treatment)&#39;<br>mixed_model = mixedlm(formula , data=data, groups=data[&#39;sample_name&#39;],<br>                               re_formula=&quot;~1&quot;)<br>mixed_model_fit = mixed_model.fit(maxiter=1000)<br>print(mixed_model_fit.summary())<br><br># taking into account both random intercept and a random slope. Allows the <br># possibility that each subject may have a different baseline and may respond <br># differently to the treatment. C(Treatment) specifies the random slope <br># associated with the Treatment variable.<br>formula = f&#39;{metabolite} ~ C(Treatment)&#39;<br>mixed_model = mixedlm(formula, data=data, groups=data[&#39;sample_name&#39;],<br>                       re_formula=&quot;~1 + C(Treatment)&quot;)<br>mixed_model_fit = mixed_model.fit(maxiter=1000)<br>print(mixed_model_fit.summary())</pre><p>More in depth example can be found <a href="https://github.com/pjtorres/statistic_tools/blob/main/LMM.md">here</a></p><p><strong>Resources</strong></p><p>This was intended to be notes for myself and a quick guide to linear mixed effects modeling with an example. I found the following resources helpful:</p><ul><li><a href="https://www.youtube.com/@QuantPsych/videos">https://www.youtube.com/@QuantPsych/videos</a></li><li><a href="http://mfviz.com/hierarchical-models/">http://mfviz.com/hierarchical-models/</a></li><li><a href="https://ourcodingclub.github.io/tutorials/mixed-models/">https://ourcodingclub.github.io/tutorials/mixed-models/</a></li><li><a href="https://www.statsmodels.org/dev/examples/notebooks/generated/mixed_lm_example.html">https://www.statsmodels.org/dev/examples/notebooks/generated/mixed_lm_example.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41fe4575331c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network analysis on microbiome and multi-omics datasets]]></title>
            <link>https://medium.com/@PedroJTorres_/network-analysis-on-microbiome-and-multi-omics-datasets-dfd436dfbccc?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfd436dfbccc</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[microbiome]]></category>
            <category><![CDATA[network-analysis]]></category>
            <category><![CDATA[insights]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Thu, 15 Jun 2023 17:19:19 GMT</pubDate>
            <atom:updated>2023-06-16T15:21:28.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iz3qZUQj4sTcCmHs6e2KIg.png" /></figure><h4><a href="https://github.com/pjtorres/micronetworks">GitHub</a></h4><p>In the field of biological research, networks have emerged as a powerful and effective way to visualize and analyze complex data, including microbiome and multi-omics datasets. Networks provide a valuable framework for understanding the intricate relationships and interactions between different biological elements, offering insights into the functioning of diverse biological systems.</p><p>Microbiome research focuses on studying the complex communities of microorganisms inhabiting various environments, such as the human gut. Networks provide a means to represent the interactions between different microbial taxa or functional gene groups within the microbiome. By constructing a network based on microbial co-occurrence or co-abundance patterns, researchers can uncover the ecological associations and potential functional relationships between microorganisms. These networks allow the identification of key microbial players, the detection of community modules with shared functions, and the exploration of microbial interactions with the host.</p><p>Similarly, in the context of multi-omics analysis, networks can integrate data from multiple layers of biological information, such as genomics, transcriptomics, proteomics, and metabolomics. By constructing multi-layered networks, researchers can capture the complex interplay between different molecular components and understand how changes in one omics layer influence others. These networks enable the identification of regulatory relationships, signaling pathways, and functional modules that are not apparent when considering each omics layer in isolation. They provide a holistic view of the biological system, revealing the cross-talk and coordinated behavior between different molecular entities.</p><p>Moreover, networks can incorporate dynamic information to study temporal changes in microbiome and multi-omics data. By analyzing time-series data, researchers can track the evolution of microbial communities or the dynamic behavior of molecular interactions over time. Dynamic networks facilitate the identification of key temporal patterns, transitions between different states, and the response of the system to external perturbations or interventions.</p><p>Network analysis methods tailored to microbiome and multi-omics data have been developed, including co-occurrence and correlation analysis, network-based clustering, module detection algorithms, and dynamical modeling techniques. These approaches enable researchers to extract meaningful biological insights from large and complex datasets, unraveling the underlying structure, function, and dynamics of microbiome and multi-omics systems.</p><p>Networks and modules are two related concepts that are commonly used in the study of biological systems, such as the human microbiome or the nervous system. Networks are used to represent the relationships between different components of a biological system, such as the interactions between different microorganisms in the microbiome or the connections between different neurons in the brain. Modules, on the other hand, are groups of components within a network that are highly interconnected and have a coherent function or behavior. Think of networks as a forest and the modules as sub ecosystems within that forest. The specific tree that provides a home to a specific species of bird, which in turn keeps certain insects in check and pollinates a set of wildflowers only found in this specific region.</p><p>Both networks and modules are useful tools for understanding the structure and function of biological systems because they allow researchers to identify patterns and relationships in the data that would be difficult to detect using other methods. By representing the data as a network, researchers can use mathematical algorithms to identify important connections and interactions between the components of the system. This can provide valuable insights into the function and behavior of the system and can help researchers to understand the role of the system in health and disease. Additionally, by identifying modules within the network, researchers can gain a better understanding of the organization and function of the system at a more detailed level.</p><p>Below is an example of how we can use networks to glean info. You can use the code an do the tutorial found here to run your own analysis.</p><p><a href="https://github.com/pjtorres/micronetworks"><strong>https://github.com/pjtorres/micronetworks.git</strong></a></p><p>I used a dataset that contained microbiome and metabolomics data. During my initial analysis, I discovered a significant increase in the abundance of a specific metabolite within my “healthy” group. Existing literature suggests the importance of this metabolite, and there is a group of taxa that are believed to be associated with it. To further investigate this relationship, I conducted a multiple regression analysis involving the metabolite and the identified taxa. The results of the analysis indicated a significant relationship between 3 of the taxa and the metabolite.</p><pre>regression_model = visualize_multiple_regression([&#39;Bact1&#39;,&#39;Bact2&#39;,&#39;Bact3&#39;,&#39;Bact4&#39;],&#39;metabolite1&#39;, tax_metabolomics)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*YWyp-IAWUhM6XCLrzrR2HQ.png" /></figure><p>Great! Next, I aimed to determine whether the identified bugs interact exclusively with that particular metabolite or if there are other metabolites we should prioritize. Network analysis can be instrumental in exploring such relationships. Firstly, I performed correlation analysis and standard linear regression on my complete dataset. This step allowed me to organize the data and filter out non-significant findings, which will aid in generating the network visualization later on.</p><pre># corr matrix <br>corr_matrix_tax_metabolomics = tax_metabolomics.corr()<br><br># Get pearsons<br>tax_metabolomicso_pearson = calculate_corrcoef_pvalues(tax_metabolomics,pearsonr)<br><br># helps organize<br>tax_metabolomics_coeff_pval_corr = merge_corr_coef_pvalue_corr(tax_metabolomics,<br>                                                                         tax_metabolomicso_pearson,<br>                                                                         corr_coef=0, pval=1)  </pre><p>This step allowed us to achieve two important objectives: reducing the feature space by retaining only the features that exhibited significant associations and providing us with confidence measures such as coefficient correlation and p-values. Pearson correlation coefficients are commonly used to quantify the linear relationship between two variables. They are computationally straightforward, easy to interpret, and can provide valuable insights into the associations between variables. However, it is crucial to acknowledge that this approach can lead to spurious correlations, where variables appear to be correlated even when they are not truly related.</p><p>To address this concern, it is advisable to complement the analysis with an approach that mitigates the impact of spurious correlations and identifies genuine relationships. Some examples of such approaches include inverse covariance analysis, partial correlation, regularization techniques, and more. In this case, I have chosen to utilize inverse covariance analysis because I have found it to be a more robust method for my specific analysis. It helps identify genuine relationships while eliminating spurious correlations, resulting in a more accurate understanding of the underlying behavior.</p><pre># inverse covariance glasso<br>full_inverse_cov_df, full_inverse_cov_netset = inverse_cov_glasso(tax_metabolomics,0.0,ncv=7,max_iterr=8880)</pre><p>Once covariance measures have bene computed, they can be graphically represented using network graphs. In network graphs, the variables are represented as nodes, and the covariance between the variables are represented as as edges (or lines) between the nodes. This allows us to visually explore the relationship between the variables and identify patterns and clusters in the data. They provide a powerful tool for understanding the underlying structure of complex datasets and aids in identifying key relationships and patterns in the data. A network was built using NetworkX in python. In the figure below the microbiome features are represented by the color purple, while the metabolites are depicted in orange. The edges, or lines connecting them, are based on the precision matrix derived from the inverse covariance analysis. The color of the lines reflects their correlation type: positive correlations are represented in orange, while negative correlations are displayed in blue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*2P_xr9S3ms9Ag7YfN9KXmw.png" /></figure><p>Networks can be decomposed into smaller sub-structures called modules, which represent groups of nodes that are densely connected to each other but less connected to others outside the group. Modules are an important concept in network analysis, as they can provide insight into the underlying structure of the network and the relationship between different groups of nodes. In biology, modules can be used to identify clusters of genes or proteins that are functionally related, or to understand the organization of metabolic signaling pathways.</p><p>The Louvain method is a widely used algorithm for detecting modular structures in Networks. It is based on a heuristic approach the iteratively optimizes a quality function to identify communities of nodes that are more dense connected to each other than nodes outside the community. The Louvain method is fast and scalable, and has been applied to many different types of networks and biology and other fields. The community module from python-louvain was used to generate modules</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*EIYoHpxG8dtcP0XixShDpA.png" /></figure><p>Next, we can explore which features coexist and form cohesive modules within the dataset. We aim to determine whether these modules collectively explain the variance in the data better than individual features alone. In a community module, also known as a biome, the nodes are often related by a common theme or topic, which is why they are located in close proximity to one another. It is important to note that although the nodes in a module may be close, indicating similarity or association, not all nodes within the module may be directly linked or associated with each other. Analyzing the data meticulously is crucial for understanding the intricate relationships within these communities. However, it is clear that there is some underlying relationship within each module, which justifies considering them as cohesive entities.</p><p>Now, let’s consider a scenario where we have identified specific features of interest, such as the four taxa mentioned earlier in the multiple regression analysis. In such cases, we can focus our attention on a particular area and examine the interactions among these specific individuals. By narrowing down our analysis, we can gain a more detailed understanding of how these selected features interact with each other, allowing for a deeper exploration of their relationships and potential implications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iz3qZUQj4sTcCmHs6e2KIg.png" /></figure><p>This visual representation above allows for a clearer understanding of how the four taxa interact, or fail to interact, with our metabolite of interest. Additionally, we can observe how it interacts with other bacteria and metabolites in our multiomics analysis, providing a comprehensive view of the relationships within our dataset.</p><p>In conclusion, networks offer a powerful framework for analyzing microbiome and multi-omics data. They provide a visual and mathematical representation of complex biological interactions, enabling the identification of key players, functional modules, and temporal dynamics within the system. By leveraging network analysis techniques, researchers can uncover hidden patterns, understand the organization and behavior of microbiome communities, and gain deeper insights into the complex interactions between molecular components in multi-omics datasets. Networks serve as a valuable tool in navigating and comprehending the vast amount of data generated in the study of diverse biological systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfd436dfbccc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Building Blocks of Health: Exploring the Infant Gut Microbiome and the Power of Human Milk…]]></title>
            <link>https://medium.com/@PedroJTorres_/the-building-blocks-of-health-exploring-the-infant-gut-microbiome-and-the-power-of-human-milk-368e83e37804?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/368e83e37804</guid>
            <category><![CDATA[infant-health]]></category>
            <category><![CDATA[immune-system]]></category>
            <category><![CDATA[microbiome]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[breast-milk-or-formula]]></category>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 18:39:41 GMT</pubDate>
            <atom:updated>2023-02-16T18:39:41.857Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Building Blocks of Health: Exploring the Infant Gut Microbiome and the Power of Human Milk Oligosaccharides</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEBlmmVORIfqKCZvvz0aag.png" /></figure><p>The gut microbiome plays an essential role in human health, and it begins to develop soon after birth. In the first few years of life, the composition of the gut microbiome can have long-lasting effects on an individual’s health. In this blog, we’ll explore the importance of the infant gut microbiome, the impact it can have on health, and the role that human milk oligosaccharides (HMOs) play in shaping the gut microbiome.</p><p><strong>What is the gut microbiome?</strong></p><p>The gut microbiome is the collection of microorganisms, including bacteria, viruses, and fungi, that live in our gastrointestinal tract. These microorganisms play a crucial role in digestion, metabolism, and immunity, and they help protect against harmful pathogens.</p><p><strong>The importance of the infant gut microbiome</strong></p><p>The development of the infant gut microbiome begins at birth and is influenced by a variety of factors, including genetics, mode of delivery, diet, and environmental exposures. In the first few years of life, the gut microbiome and immune system is still developing, and this is a critical period for establishing both a diverse and healthy microbiome as well as a balanced immune system. An imbalance in the gut microbiome during this period has been linked to a variety of health problems, including asthma, allergies, obesity, and autoimmune diseases.</p><p><strong>Where do infants get their microbiome?</strong></p><p>When babies are born vaginally, they receive a significant portion of their gut microbiome from their mother during delivery and through breastfeeding, a process called “vertical transmission.” These microbes, such as Bifidobacterium species, are important for supporting the infant’s immune system, preventing harmful pathogens from taking hold in the gut, and helping other beneficial bacteria thrive.</p><p>Babies who are born via C-section don’t pass through the birth canal, which means they are more likely to miss out on important bacteria that would normally help keep their bodies healthy. Instead, they can end up with an overgrowth of harmful bacteria, which can lead to chronic inflammation and health issues like asthma, allergies, obesity, and immune disorders like type 1 diabetes. So while C-sections are sometimes necessary, it’s important to be aware of these potential risks and take steps to support a baby’s microbiome, like through breastfeeding and probiotics.</p><p><strong>The role of human milk oligosaccharides (HMOs)</strong></p><p>Breast milk contains a variety of nutrients and bioactive compounds that can help support the development of a healthy gut microbiome. One of the most important components of breast milk in this regard are HMOs, which are complex carbohydrates that are not digestible by infants.</p><p>HMOs are known to selectively nourish specific types of beneficial bacteria, such as <em>Bifidobacterium longum subspecies infantis</em> <em>(B. infantis</em>), which is associated with a healthy gut microbiome. This is because <em>B. infantis</em> has a wide range of proteins that allow it to use HMOs effectively. These bacteria can help protect against harmful pathogens, promote the development of the immune system, and aid in the digestion and absorption of nutrients.</p><p>Studies have shown that infants who are fed breast milk, which contains HMOs, have a more diverse and stable gut microbiome compared to infants who are fed formula. Additionally, HMOs have been shown to have a range of other health benefits, including reducing the risk of infections, allergies, inflammation and direct modulation of the immune system.</p><p><strong>Conclusion</strong></p><p>The gut microbiome plays a crucial role in human health, and the development of a healthy gut microbiome begins in infancy. Breast milk, which contains HMOs, plays an important role in shaping the infant gut microbiome and promoting long-term health. While breastfeeding may not be possible or desirable for all families, understanding the role of the gut microbiome and the benefits of HMOs can help guide decisions about infant nutrition and support efforts to promote a healthy gut microbiome from an early age.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=368e83e37804" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microbial Dark and Gray Matter — Exploring the Unknown]]></title>
            <link>https://medium.com/@PedroJTorres_/microbial-dark-and-gray-matter-exploring-the-unknown-67fc9ac0c712?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/67fc9ac0c712</guid>
            <category><![CDATA[unknown-knowns]]></category>
            <category><![CDATA[microbiome]]></category>
            <category><![CDATA[microbial-dark-matter]]></category>
            <category><![CDATA[unknown-unknowns]]></category>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Fri, 24 Jun 2022 20:52:39 GMT</pubDate>
            <atom:updated>2022-06-29T15:00:01.207Z</atom:updated>
            <content:encoded><![CDATA[<h3>Microbial Dark and Gray Matter — Exploring the Unknown</h3><p>When I first heard the term microbial dark matter, I understood that these were microorganisms that we knew nothing about. Our lack of understanding stemmed from the fact that microbiologists were unable to culture these microorganisms in a typical lab setting. No culturing of an organism meant no sequenced genome for that organism. Therefore if you were to sequence a microbiome sample that contained this particular organism, the reads belonging to that organism would not align to anything in your “known” reference genome database and thus would go unclassified. These reads would likely be thrown away by the bioinformatician. However, as I dug deeper I realized that sometimes people would also refer to genes of unknown function as microbial dark matter. In this case, your microbiome sequence read would align to something in your reference genome but would have no known function aka unknown gene function. These two types of microbial dark matter are said to be “unknown unknowns” (for the first scenario) and “known unknowns” for the second scenario (unknown gene function). I like to call the first scenario dark matter and the second scenario gray matter since it is only a shade of dark/unknown.</p><p>It has been really exciting to see the microbiome field tackle dark matter and expand our view of the microbial universe through culturomics and metagenomically assembled genomes (MAGs). Culturomics is a novel laboratory technique that allows one to culture previously uncultured members of the microbiome. This has allowed the identification of new bacterial species in the microbiome. The MAG approach is a computational one that uses metagenomic sequencing as a culture-independent (so no growth needed) avenue to investigate the microbiome by reconstructing genomes from smaller metagenomic DNA sequences forming metagenome-assembled genomes- like a genomic jigsaw puzzle. Using these approaches I have seen a significant decrease in microbial dark matter in our microbiome samples; however, this has led to a significant increase in gray matter.</p><p>How can we identify a gene when it has no known function? There are computational approaches we can use to predict open reading frames (ORFs) or potential gene regions within microbial genomes that are independent of gene function annotation. So the first step is where are the genes, followed by what is the function of these genes or do they resemble any other genes whose function we know. Many of these ORFs lack detectable homology to known genes. So we know these genes are there, but have no idea what they functionally do (gray matter).</p><p>Genes whose function we do know tend to belong to highly conserved pathways and housekeeping functions. Functional gene diversity determines the metabolic potential of a community. Similar to other studies (figure below), I have noted in a subset of Viome customer samples (~10K metatranscriptome samples) about 50% of the ORFs/genes we identify are gray matter. The limiting factor in profiling the metabolic potential of a community is the lack of annotations for these gray matter genes. This means that highly conserved pathways and housekeeping functions are more consistently detected and quantified in metagenomes, which might explain why functional traits are often surprisingly consistent across different samples and environments even when taxonomic composition is highly variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qBRCiK07W2YTBjRW" /><figcaption>Figure taken from Lobb et al. 2020. Shows gene annotation coverage based on different annotation tools. On average you can see close 50% of the genes/ORFS go unannotated using Prokka or KEGG database.</figcaption></figure><p>For a long time we have relied heavily on standard homology to characterize a given ORF/gene. What we do is take our ORF and search for high sequence similarity using BLAST or related tools against reference protein databases such as the Prokka, KEGG and PFAM. The idea is if an unknown gene has high sequence similarity (&gt;90%) to a known gene function then it is very likely that that unknown gene does something similar to the known gene. Here is some food for thought. Because of the wobble region allowed in DNA -&gt; mRNA -&gt; amino acid the actual DNA sequence can be quite different between two proteins. You can have 2 genomes that are ⅓ different (aka 66% similar) actually make the same types and number of proteins. Furthermore, protein sequences rely not only on sequence but also amino acid 3D structure which allows for two different proteins to be as little as 35% identical but can actually produce a protein that does the same thing! Why? To give evolution room to play. You can’t be too rigid, yet you can’t be too loose. But sometimes being looser is greater than not being able to adapt to the good times. This may be why many predicted genes within metagenomes and genomes cannot be readily annotated using standard homology based models. Most challenging are the genes that lack detectable homology in the database. How can we identify these?</p><p>This is not meant to be a review of all the approaches out there but more of a note to myself and anyone else out there that may be interested as to what are a couple of the approaches out there used to identify the gray matter. You can characterize them based on functions of neighboring genes, since gene neighborhoods in prokaryotes tend to possess a significant degree of functional consistency. You can use remote homology detection such as HMM profile-profile comparison is also used. This method is based on the principle that distant homologies may be apparent by comparison of conservation profiles between families, even if not apparent between single sequences.</p><p>Gray matter annotation is both an important and exciting problem in the microbiome field. It is important because I believe that many of the specific genes needed for niche differentiation within a given environment (such as a healthy vs diseased gut microbiome) are likely due to these gray matter genes. We might be able to improve our models by characterizing and using this gray matter. Note that in 99% of the microbiome analysis you see, these genes with unknown function tend to be thrown away (similar to dark matter). Exploring this gray matter will be fruitful not just for diagnostics but for novel drug or enzyme discovery.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67fc9ac0c712" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[To probiotic or not to probiotic… That is the question]]></title>
            <link>https://medium.com/@PedroJTorres_/to-probiotic-or-not-to-probiotic-that-is-the-question-9224cd7e2932?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9224cd7e2932</guid>
            <category><![CDATA[gut-health]]></category>
            <category><![CDATA[supplements]]></category>
            <category><![CDATA[probiotics]]></category>
            <category><![CDATA[microbiome]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Fri, 09 Aug 2019 17:37:56 GMT</pubDate>
            <atom:updated>2019-08-09T17:37:56.987Z</atom:updated>
            <content:encoded><![CDATA[<p>Probiotics have become widely available in the market ranging from capsules to numerous food and beverage supplements. Social media has helped to amplify its popularity. Their appeal lies in their availability and ease of intake, as well as their low cost and low incidence of associated adverse effects <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4780970/">[1]</a>. The graph below highlights the resurgence of public interest in probiotics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/0*OmwrYuYlIb3ReLpu" /></figure><p>The global probiotics market size is projected to reach $74.69 Billion by the end of 2025. All this public interest and money being generated would make you think that the scientific community unanimously agrees that probiotics are the answer for many intestinal, metabolic <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5655955/">[2]</a> and skin <a href="https://www.wageningenacademic.com/doi/abs/10.3920/BM2013.0040">[3]</a> disorders . However, depending on who you talk to you will either hear about the power of probiotics in dealing with various illnesses, while others will say it is a bunch of baloney. Who is right?</p><p><strong>What are probiotics?</strong></p><p>Probiotics are live microorganisms which when administered in adequate amounts, confer health benefits to the host. Common probiotic microorganisms include the<em> Lactobacillus</em>,<em> Bifidobacterium</em>,<em> Lactococcus</em>,<em> Streptococcus</em>,<em> </em>and <em>Saccharomyces </em>genera. Probiotics can be added to foods, cosmetics and taken as dietary supplements. There is clearly a great public interest in probiotics; however, to date, probiotics are not approved as medical interventions by regulatory authorities such as the Food and Drug Administration (FDA) or European Food Safety Authority (EFSA).</p><p><strong>Probiotic mechanism of action</strong></p><p>There are two main ways that probiotics could be exerting their influence in the host:</p><p>1. Direct interaction with the host</p><p>There are different systems that recognize and monitor the presence of microorganisms in the body. Gut epithelial cells (cells that line your intestine) play key roles in translating information to immune cells, therefore the adherence of probiotics to those cells or just merely their presence, could trigger a host response.</p><p>2. Metabolite mediated effects</p><p>In addition to receptors recognizing specific parts of microbial cell surface proteins, metabolic byproducts produced by probiotics could also influence the host by binding to specific host cell receptors and initiating a host response.</p><p>Mechanisms by which probiotics may improve the host’s health:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bMDTky422M8TCzL2" /></figure><p><a href="https://www.mdpi.com/2072-6643/11/3/635/htm">Courtesy of Cerdo et al 2019</a></p><ol><li>Enhancement of intestinal barrier function</li></ol><p>Mechanisms that prevent gut microbes from entering our circulatory system include the inner gut mucus layer (slimy material that coats the gut epithelial cells) and the strong connections between gut epithelial cells called tight junctions. The breakdown of any of these can lead to a condition called leaky gut. A leaky gut means you have increased intestinal permeability which allows microbes and toxins to “leak” through the intestinal wall. An imbalance of good:bad microbes (termed dysbiosis) may lead to leaky gut syndrome. The use of probiotics may help to prevent dysbiosis, modulate mucus production and help to restore the gut tight junctions <a href="https://www.ncbi.nlm.nih.gov/pubmed/28230606">[4]</a>.</p><p>2. Antimicrobial activity/Competitive exclusion of pathogens</p><p>The densely colonized gut environment is filled with niche competition and nutrient limitation. There are a lot of dudes fighting for limited space and food, like dinner with your brothers. A potential beneficial effect of probiotics could be that their mere presence can prevent incoming pathogens from finding a good spot to land and multiply. If a pathogen does find an open spot to land, the probiotic organism may outcompete the pathogenic bacteria for nutrients thereby starving the pathogen to death. Furthermore, probiotics may fight pathogenic bacteria by creating a hostile environment through decreasing luminal pH or secreting antibacterial substances and defensins <a href="https://www.ncbi.nlm.nih.gov/pubmed/18626975">[5]</a>.</p><p>3. Immunomodulation</p><p>The intestine contains the greatest number and diversity of immune cells in the body <a href="https://www.cell.com/immunity/pdf/S1074-7613(17)30137-1.pdf">[6]</a>. Studies have shown that there are effects of probiotics on expression of immune-related genes, inflammatory pathway activity and immune marker levels <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2909492/">[7]</a>.</p><p><strong>Can probiotics be bad for you?</strong></p><p>Probiotics have enjoyed an impeccable reputation regarding safety. In general, little research attention has focused on adverse events in relation to their use in clinical practice. Possible side effects of probiotics may include:</p><p>1. Digestive symptoms</p><p>When first using probiotics, some people experience gas, bloating or diarrhea which usually clear up within a few days <a href="https://www.medicalnewstoday.com/articles/322712.php">[8]</a>.</p><p>2. Increased risk of infection</p><p>A 2017 review suggested that children and adults with severe illnesses or compromised immune systems should avoid using probiotics <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5730384/">[9]</a>. Some people with these conditions have experienced bacterial or fungal infections as a result of probiotic use. Physicians should be careful in their use of probiotics, especially to severely immunocompromised patients.</p><p><strong>Efficacy of Probiotics?</strong></p><p>There are unfortunately many conflicting reports about the efficacy of probiotic treatment in many diseases including gastroenteritis, antibiotic associated diarrhea, <em>Clostridium difficile </em>infection, irritable bowel syndrome and inflammatory bowel disease. Depending on who you ask you will hear testimonials touting the amazing benefits of probiotic use and how it cured everything from depression to acne to stomach problems. Others will just lament on the fact that people and companies are getting rich off selling false hope. These strong opinions are not isolated to social media, but even within the medical and scientific community you will hear clear opposing views. This confusing reality highlights the need for high-quality, sufficiently powered trials to resolve the confusion of the use of probiotics.</p><p><strong>Why so many discrepancies?</strong></p><p>1. Response may be context and individual dependent.</p><p>Every BODY is different and I believe that the clinical value of probiotics is going to be context and individual dependent. For instance, if you want to prevent the overgrowth or invasion of opportunistic pathogenic bacteria after antibiotics then perhaps probiotics temporarily inhabiting the gut will be a good choice. However, if you want to rebound back to your normal/healthy gut microbiome as quickly as possible after antibiotic treatment then probiotics are not the best choice <a href="https://www.sciencedaily.com/releases/2018/09/180906141640.htm">[10]</a>.</p><p>2. Probiotic efficacy could be strain specific</p><p>There is strong evidence supporting the hypothesis that the efficacy of probiotics is strain-specific. <em>Lactobacillus</em> strains differ in their ability to resist bile and stomach acidity <a href="https://www.ncbi.nlm.nih.gov/pubmed/24675230">[11]</a>. Different probiotic strains have different mechanisms-of-action to improve the host’s health including: bacteriocins that directly kill or inhibit specific pathogens, the destruction of pathogenic toxins, interference with pathogen attachment to host cells (competitive exclusion mentioned earlier), enhancement of intestinal barrier function, restoration of dysbiosis of the normal microflora, and the ability to upregulate or downregulate the immune response <a href="https://www.ncbi.nlm.nih.gov/pubmed/25157183">[12]</a>.</p><p>3. Batch-to-Batch variation</p><p>As probiotics are a preparation of living organisms (or at least they should be!), batches of organisms grow better at some times more than others. Preparation of the probiotic can vary from one batch to another and while species could be the same, the strains could vary from batch to batch and ultimately lead to the inconsistent performance of finished products.</p><p><strong>How do we keep and maintain a healthy gut?</strong></p><p>The role of the gut microbiome in health and disease is becoming clearer. The concept of promoting human health through consumption of beneficial microbes has evolved over the past century. However, I think that the general claim that a probiotic a day results in a healthy gut encapsulates the american ‘quick fix’ mentality and is a gross oversimplification of what is needed to keep or maintain a healthy gut microbiome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*te-bx7arcTW4lV6R" /></figure><p>Based on current research, the best way to keep and maintain a healthy gut is to cut down on red meat <a href="https://www.medicalnewstoday.com/articles/323974.php">[13]</a> and reduce highly processed foods <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5872783/pdf/nutrients-10-00365.pdf">[14]</a>. Increase your insoluble fiber intake and eat a diverse variety of foods, especially and specifically those healthy greens (just like grandma said!) [<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6478664/">15]</a>. Take the time to listen to what your body doesn’t want. If you feel bloated or get an upset stomach after eating broccoli then cut that out and replace it with another healthy green! If healthy eating and exercising was a pill, every doctor would be prescribing it.</p><p><strong>What is the future for probiotic supplements?</strong></p><p>Thousands of studies attempting to demonstrate the beneficial effects of probiotics for a long list of clinical conditions have been published, with highly mixed results <a href="https://www.nature.com/articles/s41591-019-0439-x">[16]</a>.</p><p>The unfortunate reality is that on one hand people are interested in the concept of probiotics and companies have been quick to capitalize, on the other hand probiotics have not been approved by regulatory authorities such as the FDA. Stating that probiotics are useless and not beneficial, or that they are the cure to many of our modern day ailments and that everyone should be taking them, are both factually inaccurate.</p><p>When making conclusions on probiotics it is important to understand that, <strong>every BODY is different and the clinical value of probiotics is likely going to be context and individual dependent.</strong> If you want to prevent overgrowth or invasion of pathogenic bacteria after antibiotics then perhaps probiotics temporarily inhabiting the gut will be a better choice. If you want to rebound your healthy gut as quickly as possible then perhaps that is not the best choice. People are about 99% genetically the same but our microbiome can differ as much as 100% <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4430908/">[17]</a>. What this means is that our gut microbiome shows inter-individual differences which actually appear very soon after birth <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4384745/">[18]</a>. Your mom was right! You are special and unique, well at least your microbiome is. Because of everyone’s inter-individuality, probiotic interventions will require personalized treatment and I think that one microbe (or combination of microbes) might be beneficial in one case but not the other and this is because bacteria are living organisms responding to their environment. Application of probiotics and/or microbial metabolites essential for host response will be environment (aka are individuals obese, type 2 diabetic, cancer patients, immune compromised, are they taking other drugs) and outcome dependent (such as the antibiotic example above) and thus, I believe in the future, a more tailored personalized approach will yield beneficial results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9224cd7e2932" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[High alpha diversity and health]]></title>
            <link>https://medium.com/pjtorres-high-gut-alpha-diversity-and-health/high-alpha-diversity-and-health-65e5eca7fa36?source=rss-7dbd615183b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/65e5eca7fa36</guid>
            <category><![CDATA[microbiome]]></category>
            <category><![CDATA[polycystic-ovary-syndrome]]></category>
            <category><![CDATA[species-richness]]></category>
            <category><![CDATA[gut-health]]></category>
            <category><![CDATA[gut-bacteria]]></category>
            <dc:creator><![CDATA[Pedro J. Torres, Ph.D.]]></dc:creator>
            <pubDate>Fri, 28 Jun 2019 07:08:50 GMT</pubDate>
            <atom:updated>2019-06-28T07:08:50.975Z</atom:updated>
            <content:encoded><![CDATA[<p>On and within you lies a vast and complex community of microorganisms known collectively as the microbiome. These microbes play essential roles in our health and impact how our bodies respond to disease in ways we are still uncovering. Depending on where you look on the body you will find a specialized community of microorganisms adapted for a given niche. The microbial community on your skin is distinct from what you find in your mouth and gut. The vast majority of your microbiome resides in your gut. High gut alpha diversity has been linked to a healthy state in so many studies that it has become common knowledge in microbiome circles. So often is the term thrown around that it is easy to just accept it and move on. But why is this the case, why do so many studies ranging from obesity to diabetes to IBD see the same pattern? Let’s take a step back and really think about this and start with the basics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t5kdfwhco6WhHU-vNTr_yg.png" /><figcaption>Community can represent a single individual.</figcaption></figure><p>In its simplest terms, alpha diversity is a mathematical measurement of microbial richness in a given community (talking about the gut here). The more types of microbes you have in your gut the richer it is. This term is borrowed from the field of ecology where species richness has been proposed to correlate with the health of an ecosystem, as diverse communities may increase the stability and productivity of an ecosystem.</p><p>Now if you go to a microbiome conference, most gut microbiome talks will follow a similar initial format: alpha diversity was higher in healthy vs disease, beta diversity was different, these bugs changed ect. So it came as a surprise during my Ph.D. that the results I was seeing in my research really deviated from the norm.</p><p>At the time I was studying polycystic ovary syndrome (PCOS) a common cause of female infertility in which about 80% of PCOS women also have metabolic abnormalities. Dysregulation of the gut microbiome in PCOS is associated with the development of the PCOS metabolic phenotype. I was trying to understand the role that the gut microbiome plays in the development of PCOS. <a href="https://academic.oup.com/endo/article/160/5/1193/5420998">Using a PCOS mouse model, we found that exposure to a healthy gut microbiome improved the PCOS metabolic and reproductive phenotype.</a> As expected, placebo mice had a higher alpha diversity than our PCOS mouse model. However, what intrigued me was that when we looked at the gut microbiome of PCOS mice exposed to a healthy gut microbiome their alpha diversity was not similar to the healthy mice, it was similar to the PCOS mice which displayed the reproductive and metabolic phenotype. Furthermore, healthy mice exposed to the PCOS gut microbiome never showed any PCOS reproductive or metabolic phenotype, but they did have an alpha diversity similar to PCOS mice.</p><p>So hold up, we have PCOS mice who metabolically and reproductively looked like healthy when exposed to a healthy gut microbiome but their gut microbial alpha diversity was similar to a PCOS mouse displaying the PCOS like metabolic and reproductive phenotype aka low alpha diversity!? What gives!? This turned out to not be a random event as we were able to repeat this observation in a separate study.</p><p>What is the deal with high alpha diversity and a healthy state? The gut microbiome is suggested to play many roles in human health and development, whether it is through direct microbial interaction with the host or through microbial metabolites. The gut microbiome has been suggested to be involved in the synthesis of vitamins, fine tuning of host immunity, fermentation of insoluble fibers, integrity of intestinal barrier, modification of bile acids, neurotransmitters and hormones. Those are a lot of roles and the players involved vary. This suggests that increased diversity is associated with increased health because with increased numbers of microbes you get an increased chance of all the right players being present to properly turn the wheels in this human machine. However, it could be that you do not need the increased diversity per se, but just the presence of the right players to allow you to properly turn the wheels as our PCOS mouse study suggested.</p><p>So maybe that old quote is right and we just haven’t been listening.</p><p>It’s not the quantity of friends you have it’s the quality of friends you have</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65e5eca7fa36" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pjtorres-high-gut-alpha-diversity-and-health/high-alpha-diversity-and-health-65e5eca7fa36">High alpha diversity and health</a> was originally published in <a href="https://medium.com/pjtorres-high-gut-alpha-diversity-and-health">Pedro J. Torres,PhD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>