<?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 learning thoughts on Medium]]></title>
        <description><![CDATA[Stories by learning thoughts on Medium]]></description>
        <link>https://medium.com/@learningthoughts?source=rss-8772e5aaf79------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ROTawubFhMtKblafseXGQQ.jpeg</url>
            <title>Stories by learning thoughts on Medium</title>
            <link>https://medium.com/@learningthoughts?source=rss-8772e5aaf79------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:06:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@learningthoughts/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[Hour 1 .5— Linear Algebra 1: Tensors, Classification, and Regression]]></title>
            <link>https://medium.com/@learningthoughts/hour-1-5-linear-algebra-1-tensors-classification-and-regression-d52758a75a75?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/d52758a75a75</guid>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Tue, 12 Sep 2023 11:59:36 GMT</pubDate>
            <atom:updated>2025-03-05T21:07:13.816Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tensors, Classification, and Regression</h3><h4>How does linear regression work? — Use the Iris and MINST dataset to get an intuition of linear regression</h4><p>Goal: to get 1% clearer on classification, regression and tensors</p><p>Discrete data points— either numerical or categorical</p><p>Continuous data points — only numerical</p><h4>What is Linear Regression?</h4><p>Linear Regression is a <strong>linear approach </strong>to modelling the <strong>relationship</strong> between a <strong>scalar response (y — dependent variables)</strong> and one or more <strong>explanatory variables (X — independent variables)</strong>.</p><blockquote>In other words, you use explanatory variables to predict a y variable, using a <strong>model</strong>.</blockquote><h4>Following the tutorial</h4><p><a href="https://medium.com/analytics-vidhya/linear-regression-using-iris-dataset-hello-world-of-machine-learning-b0feecac9cc1">Linear Regression using Iris Dataset — ‘Hello, World!’ of Machine Learning</a></p><h3>Problems that arose:</h3><p>A long list of “Future Warnings” were printed before I could see the data visualisations.</p><h4>Why did the warning emerge?</h4><ol><li>This warning is related to the seaborn library using a deprecated function from pandas. The is_categorical_dtype function from pandas is being flagged as deprecated, which means it will be removed in a future version of the pandas library. Instead of is_categorical_dtype, it&#39;s recommended to use isinstance(dtype, CategoricalDtype).</li><li>The warning arises from seaborn&#39;s internal use, and as an end user, there isn&#39;t much you can do to fix the root cause. However, you can handle the warning in a few ways:</li></ol><h4>How to Suppress the warning?</h4><pre>import warnings<br>warnings.filterwarnings(&quot;ignore&quot;, category=FutureWarning)</pre><p>This will suppress all FutureWarning messages. If you want to be more specific and only suppress the warning related to is_categorical_dtype, you can do:</p><pre>warnings.filterwarnings(&quot;ignore&quot;, message=&quot;is_categorical_dtype is deprecated&quot;)</pre><p>This way, the pairplot will be printed without any excessive error messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w_atroLRUncc6SYjw8yoEg.png" /></figure><p>Continuing with the tutorial:</p><h4>Wh<strong>at is pd.concat and what are the purposes? How does it link to other functions in pandas?</strong></h4><ul><li>pd.concat() is a function in the pandas library that provides the ability to concatenate pandas objects along a particular axis (either rows or columns). This is useful in various scenarios, such as combining multiple datasets or appending rows/columns to an existing dataset.</li></ul><h4>Problem Statement: Predict the sepal length (cm) of the iris flowers</h4><p>In the tutorial, it does not ask you to import several functions from multiple libraries that are needed to complete this section. Insert the following code to import the needed libraries</p><pre># Import Dataset from sklearn<br>from sklearn.datasets import load_iris<br><br>import pandas as pd<br>import seaborn as sns<br>import numpy as np<br>import sklearn<br>from sklearn.model_selection import train_test_split<br>from sklearn.linear_model import LinearRegression<br>from sklearn.metrics import mean_absolute_error, mean_squared_error</pre><p>In the end, we conclude that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*On_hlXOxqXRaIo7zNAIcMg.png" /></figure><h4>Analysis</h4><p>What does Mean Absolute Error (MAE) mean in this context?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YM1LPSGB6dLc2eQuwwuKig.png" /></figure><ul><li><em>n</em> is the total number of observations.</li><li><em>yi</em>​ is the actual value for the ith observation.</li><li><em>yî</em>​ is the predicted value for the ith observation.</li></ul><p>Mean absolute error represents the discrepancy (absolute error) between the predicted and actual value for each observation, on average. Here are the steps to find MAE:</p><ol><li>Find the discrepancy (absolute error) between the predicted and actual value for each observation.</li><li>Sum up all these discrepancies.</li><li>Divide by the number of observations.</li></ol><p>In the given context, if the discrepancy for this observation is a bit higher than the MAE, it means this prediction is somewhat worse than the model’s average level of accuracy.</p><h3>Part 2: Linear Regression</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fnk2CQITm_eo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dnk2CQITm_eo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fnk2CQITm_eo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6967a9cfd4f9b62df4371b1fb3d94043/href">https://medium.com/media/6967a9cfd4f9b62df4371b1fb3d94043/href</a></iframe><p>Linear regression is basically:</p><ol><li>to use least squares to fit a line to the data</li><li>calculate R²</li><li>calculate a p-value for R²</li></ol><p>Distance from a line to the data point = “residual”</p><p>Measure the residuals, square each of the residuals, sum up the squares.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5viildg9mLMrl9NC9GAZw.png" /></figure><p>Calculating R-square allows you to evaluate how good the fit of the line is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*nGHprwMrlOQ9UQYjjRRBzw.png" /></figure><p>SS mean = sum of squares around the mean</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_Dwv9px5-qwtZ69Y-APkg.png" /></figure><blockquote>another way to think about variance is the av. sum of squares per mouse.</blockquote><p>Most important diagram!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EIT7DB3kSy3hh5ISoPdwcA.png" /></figure><blockquote>Since there is <strong>less variation around the line</strong> that we fit by the <strong>least-squares line compared to just taking the av. size, </strong>we can conclude that some of the variation in mouse size is explained by taking mouse weight into account.</blockquote><h3>So what does R² explain?</h3><p>R² tells us <strong>how much of the variation</strong> in mouse size can be explained by taking mouse weight into account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gfM3lPNUTIcmdHOuZC91Aw.png" /></figure><blockquote>CONCLUSION — 60% of the variation in mouse size, can be explained by mouse weight.</blockquote><h4>What is the rationale behind using sum of squares instead of variation to give us the same R²?</h4><p>We can also use the sums of squares to make the same calculation, because <strong>when we talk about variation, everything is divided by the sample size <em>n. Since everything is divided by n, we can pull the term out, and just use the raw sum of squares.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PC9Eb7Vxyd4-zIk5U9dsYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fSRaT01BeMftMNvUvEK9xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TcmkWN91YubjtodVtSNWKA.png" /><figcaption>mouse weight doesn’t explain the variation, ex. if you have a heavy mouse, (ex. points clustered on the right), the mouse can either be small or large with equal probability.</figcaption></figure><h3>R-squared for a Multivariable Model (3D graph)</h3><p>since we have an extra dimension, we fit a plane instead of a line.</p><h4>What is the extra parameters does not make the fit smaller?</h4><p>We can ignore the parameter, by making the coefficient in the model = 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sGkTqa5Mn4FqWSKO4O45KA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CXmZdPJXQ7i969gqlFlCSg.png" /></figure><h4>What are the limitations of adding additional parameters to the regression model?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p1-AbIxcYdP8cJNUYuq01A.png" /></figure><p>As we add more parameters (or predictors) to a regression model, the R² value (coefficient of determination) will never decrease and will usually increase. This is because with each additional parameter, the model gets an extra opportunity to explain some variation in the dependent variable, even if it’s just by chance. <strong>Hence, the model might end up “overfitting” to the data, capturing noise rather than underlying patterns.</strong> <strong>This overfitting can indeed make the model less accurate in predicting new, unseen data.</strong></p><p>To account for the inclusion of additional parameters and to penalize models that might be overfitting, the Adjusted R² value was introduced.</p><h4>What is the Adjusted R² value?</h4><p>Adjusted R² provides a more honest measure to evaluate model fit when multiple predictors are in play. It’s always a good idea to consult Adjusted R² (and other model evaluation metrics) alongside R² especially when comparing models with a different number of predictors.</p><h4>Formula for Adjusted R² and how does it work?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*XCMLgA4S4gmf33dqSzohzg.png" /></figure><ul><li><em>n</em> is the number of observations.</li><li><em>k</em> is the number of predictors.</li></ul><p><strong>How does it work?</strong></p><ol><li>Adjusted R² takes into account the number of predictors in the model, adjusting R² based on the “true” degree of freedom.</li><li>Adjusted R² will increase only if the new variable improves the model more than would be expected by chance. If a variable doesn’t improve the model substantially, the adjusted R² might actually decrease.</li><li>Main difference between R² and Adjusted R²: Unlike R², <strong>the Adjusted R² can decrease as predictors are added if they don’t enhance the model’s predictive capability</strong></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d52758a75a75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #27 — Targeted sequence-capture approach and HYDE]]></title>
            <link>https://medium.com/@learningthoughts/day-27-targeted-sequence-capture-approach-and-hyde-aec0ddee4714?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/aec0ddee4714</guid>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Sat, 12 Aug 2023 06:54:50 GMT</pubDate>
            <atom:updated>2023-08-12T06:54:50.501Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #27 — Targeted sequence-capture approach and HYDE</h3><p>Friday, 11 August</p><p>My goal for today is to understand targeted sequence-capture approach and HYDE!</p><p>Jiayi Ji and others, Power of Bayesian and Heuristic Tests to Detect Cross-Species Introgression with Reference to Gene Flow in the <em>Tamias quadrivittatus</em> Group of North American Chipmunks, <em>Systematic Biology</em>, Volume 72, Issue 2, March 2023, Pages 446–465, <a href="https://doi.org/10.1093/sysbio/syac077">https://doi.org/10.1093/sysbio/syac077</a></p><h4>What are the main claims from this paper?</h4><p>They examine the assumptions and performance of HYDE and demonstrate that it <strong>lacks power if gene flow occurs between sister lineages or if the mode of gene flow does not match the assumed hybrid-speciation model with symmetrical population sizes. </strong>Their analyses highlight the power of<strong> likelihood-based inference </strong>of cross-species gene flow using genomic sequence data.</p><p>I saw this super cute diagram in this paper that explores chipmunks!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*DHZdtcBQwOqDca57" /><figcaption>Geographic distributions of the six chipmunk species in the <em>Tamias quadrivittatus</em> group, based on data downloaded from the IUCN (<a href="https://www.iucnredlist.org/">https://www.iucnredlist.org/</a>).</figcaption></figure><p>Hybridization between chipmunk species has been widely reported based on discrepancies between mtDNA, nuclear DNA, and morphology (Good and Sullivan, 2001; Good et al., 2003, 2008; Hird <em>et al.</em>, 2010).</p><ul><li>Work in the past decade has documented widespread mitochondrial introgression among species of the group (Reid <em>et al.</em>, 2012; Sullivan <em>et al.</em>, 2014; Sarver et al., 2017, 2021), which is often asymmetrical, possibly due to bacular morphology, which has been identified in at least six species (Good et al., 2003, 2008; Reid <em>et al.</em>, 2012; Sullivan <em>et al.</em>, 2014). Recent work on six species in the <em>T. quadrivittatus</em> group found that four of them exhibited clear evidence of introgressed mitochondrial DNA: <em>T. cinereicollis</em>, <em>T. dorsalis</em>, <em>T. quadrivittatus</em>, and <em>T. umbrinus</em> (Table 1).</li><li>The cliff chipmunk (<em>T. dorsalis</em>) was involved in local introgression with multiple other species, receiving mtDNA from whichever congeneric chipmunk it came into contact with. However, populations of <em>T. dorsalis</em> that are geographically isolated carry mtDNA haplotypes that are unique to the species (Sullivan <em>et al.</em>, 2014; Sarver <em>et al.</em>, 2017). Range overlap in transition zones plays an important role in mitochondrial introgression in <em>Tamias</em> (Brown, 1971; Bi <em>et al.</em>, 2019).</li></ul><h3>Explore targeted sequence-capture approach + HYDE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NLUF8VBwh3-tB74DOrxxg.png" /></figure><h3>What is HYDE?</h3><p>The program HYDE (Blischak <em>et al.</em>, 2018) was used to infer gene flow.</p><p>Surprisingly, no significant evidence for gene flow involving the nuclear genome was detected between any species in the group, despite the evidence for widespread mitochondrial introgression.</p><h4>HYDE vs D-Stat</h4><ul><li>HYDE, like the <em>D</em>-statistic, uses the four-taxon site-pattern counts pooled across the genome as data, and <strong>does not use information in the variation in genealogical history across the genome caused by the stochastic fluctuation of coalescent and introgression </strong>(Lohse and Frantz, 2014; Jiao <em>et al.</em>, 2021; Zhu and Yang, 2021).</li><li>As a result, neither the <em>D</em>-statistic nor HYDE can detect gene flow between sister lineages. Importantly, HYDE is designed to estimate the relative genetic contributions of the two parental species which hybridized to form a third species.</li></ul><h4>What are the limitations of HYDE?</h4><blockquote>When applied to detect other modes of gene flow, it makes restrictive assumptions about the direction of gene flow, and about species divergence times and population sizes that may be unrealistic (Fig. 7). The performance of HYDE when its model assumptions are violated is unexplored.</blockquote><p>I decided to do some research into HYDE</p><h3>Deep Dive into HYDE</h3><p>Paul D Blischak and others, HyDe: A Python Package for Genome-Scale Hybridization Detection, <em>Systematic Biology</em>, Volume 67, Issue 5, September 2018, Pages 821–829, <a href="https://doi.org/10.1093/sysbio/syy023">https://doi.org/10.1093/sysbio/syy023</a></p><h4>What is HYDE?</h4><ul><li>HYDE is a software package for detecting hybridization using phylogenetic invariants arising under the coalescent model with hybridization.</li><li>HyDe is written in Python and can be used interactively or through the command line using pre-packaged scripts.</li><li>They demonstrate the use of HyDe on simulated data, as well as on two empirical data sets from the literature. We focus in particular on identifying individual hybrids within population samples and on distinguishing between hybrid speciation and gene flow. HyDe is freely available as an open source Python package under the GNU GPL v3 on both GitHub (<a href="https://github.com/pblischak/HyDe">https://github.com/pblischak/HyDe</a>) and the Python Package Index (PyPI: <a href="https://pypi.python.org/pypi/phyde">https://pypi.python.org/pypi/phyde</a>).</li></ul><h4>What is an advantage of HYDE over other methods?</h4><blockquote><em>A particular advantage of HyDe over other methods is its ability to assess individual-level variation in the amount of hybridization using per-individual hypothesis tests and individual bootstrap resampling in putative hybrid populations.</em></blockquote><blockquote><em>The programming philosophy behind HyDe is to provide a low-level library of data structures and methods for computing site pattern probabilities and conducting hypothesis tests, along with a core set of Python scripts that use this library to automatically parse and analyze genomic data. This setup allows the software to be easily extended as new methods based on site pattern probabilities are developed.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*4jowbZaGBQTaUkKt" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKrFBipBHSE-GCG6E4S1Hw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*hm3rs6maEpWncDb_i39k9Q.png" /></figure><blockquote>2 interesting features in the software!</blockquote><h4>#1 Multiple Individuals per Population</h4><p>They modified the calculation of the site pattern probabilities originally presented in Kubatko and Chifman (2015) to accommodate multiple individuals per population, rather than testing each sampled individual separately. They do this by considering all permutations of the individuals in the four populations involved in the hypothesis test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jUmuuLq0kwOSwt1iKU53IA.png" /></figure><h4>#2 Identifying Individual Hybrids</h4><ul><li>An underlying assumption of the coalescent with hybridization is that all the individuals in the hybrid population are admixed (i.e., hybrid speciation; Meng and Kubatko 2009).</li><li>However, when gene flow, rather than hybrid speciation, is responsible for the introgression of genetic material into the admixed population,<strong> it is possible that not all individuals will contain these introgressed alleles.</strong> When hybridization detection is conducted on populations with a mix of hybrids and non-hybrids, it is possible for invariant-based tests to report significant results, even though the underlying assumption of uniform admixture is violated. To help with the detection of non-uniform introgression into the hybrid population, they included two methods in HyDe that aim to<strong> detect variation in the amount of hybridization in the individuals sampled.</strong></li></ul><p>Understand how msprime addresses this^^!!</p><blockquote><em>They have also implemented methods that test all individuals in a putative hybrid separately while treating the</em><strong><em> parents and outgroup as populations.</em></strong><em> This approach allows hypothesis tests and estimates of γ to be calculated for every individual to see if it is a hybrid. A caveat with testing each individual is that the number of sites sampled must be enough to have statistical power to detect that hybridization has occurred (Kubatko and Chifman 2015).</em></blockquote><p>They examined heliconius butterflies too!</p><blockquote>DNA sequence data from Martin et al. (2013) was downloaded for four populations of <em>Heliconius</em> butterflies (248,822,400 sites; available on Dryad). The number of individuals per population was as follows: four individuals of <em>H. melpomene rosina</em>, four individuals of <em>H. melpomene timareta</em>, four individuals of <em>H. cydno</em>, and one individual of <em>H. hecale</em>. We tested the hypothesis that <em>H. cydno</em> is a hybrid between <em>H. melpomene rosina</em> and <em>H. melpomene timareta</em> with <em>H. hecale</em> as an outgroup using the <em>run_hyde.py</em> script. We then conducted bootstrapping (500 replicates) of the <em>H. cydno</em> individuals, as well as testing each individual separately using the <em>bootstrap_hyde.py</em> and <em>individual_hyde.py</em> scripts, respectively. As a last comparison, we reanalyzed the data with the <em>run_hyde.py</em> script, but changed the underlying code so that all missing or ambiguous sites were ignored in order to test the effect of including/excluding such data.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*0eSiX7KNKBD9PPe7" /><figcaption>Density plot of the estimated values of γ̂ across 500 bootstrap replicates testing for hybridization in <em>Heliconius cydno</em> between <em>H. melpomene rosina</em> and <em>H. melpomene timareta</em>.</figcaption></figure><h4>Interesting method!! — they contrast the analysis of butterflies vs swordtail — to test their method</h4><p>They timed all analyses for the <em>Heliconius</em> and swordtail data using the Unix time command. For <em>Heliconius</em>, the analysis using the <em>run_hyde.py</em> script took 11m 49.377s, and the analysis that ignored missing or ambiguous sites took 4m 47.667s. Analyzing the four individuals of <em>H. cydno</em> separately with the <em>individual_hyde.py</em> script took 10m 5.120s. Completing 500 bootstrap replicates for this data set ran the longest of any analysis that we conducted, taking a total of 4105m 33.312s (2.851 days).</p><h4>What were the results?</h4><p>For the swordtail data, the analysis with the <em>run_hyde.py</em> script took 22m 40.673s, almost twice as long as the analysis for the <em>Heliconius</em> data. This indicates that<strong> analyzing more triplets is more computationally intensive than analyzing more sites. </strong>When ambiguous or missing sites were ignored, the analysis took 5m 27.889s.</p><blockquote>The methods they have implemented in HyDe to detect hybridization at the population and individual level provide a set of computationally efficient methods for researchers to assess patterns of admixture in natural populations.=</blockquote><h4>Sidetrack: Allopatric vs Parapatric Distributions Recap</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iG9Q249cy2K5rQ-WfjzSqg.png" /></figure><ul><li>Allopatric populations are geographically separated from each other, while parapatric or sympatric populations coexist in the same habitat.</li><li>Parapatric populations occupy distinct niches in their environment and are thus separated by ecological factors, while sympatric species share the same ecological niche.</li></ul><h4>going back to the original paper!</h4><h3>What is the Savage-Dickey Density Ratio and how did they apply it?</h3><p>The Savage-Dickey density ratio is a simple method for computing the Bayes factor for an equality constraint on one or more parameters of a statistical model. In regression analysis, this includes the important scenario of testing whether one or more of the covariates have an effect on the dependent variable.</p><p>However, the Savage-Dickey ratio only provides the correct Bayes factor if the prior distribution of the nuisance parameters under the nested model is identical to the conditional prior under the full model given the equality constraint. This condition is violated for multiple regression models with a Jeffreys-Zellner-Siow prior, which is often used as a default prior in psychology. Besides linear regression models, the limitation of the Savage-Dickey ratio is especially relevant when analytical solutions for the Bayes factor are not available. This is the case for generalized linear models, non-linear models, or cognitive process models with regression extensions. As a remedy, the correct Bayes factor can be computed using a generalized version of the Savage-Dickey density ratio.</p><h4>How did they apply it?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*TlS1apdkHXu2KVd9" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJCDUi2aP7HchpoSduI2dQ.png" /></figure><p>The above-mentioned theory applies generally to Bayesian testing of nested hypotheses. Examples include comparison of different species delimitation models (e.g., one-species versus two-species models) (Yang and Rannala, 2010) and test of migration between species (e.g., two species with and without migration) (Nielsen and Wakeley, 2001). The theory may be applied to compare nonnested models as well if they both have the same null model as a special case.</p><h4>They used it to test for introgression</h4><p>They use the Savage-Dickey density ratio (equation (3)) to test introgression, the nuisance parameters include species divergence times (⁠τ⁠) and population sizes (⁠θ) on the species tree. They consider two tests with different assumptions about the population size parameters</p><h4>Relevant to my research — **Important!!! Understand how they present the null and alternative hypotheses in diagrams!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*CmLQ3weN0gUkBicU" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nrclzIb6yFQiJICvfIVDCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*tyGK8vDvrqK50XsN" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U3b0i8VjBuYFYlYDF0w2gg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4dC8DGjZqrAFwHrkXG3yCA.png" /></figure><blockquote><em>Learning point — assigning the priors based on specific conditions as such^</em></blockquote><h4>What is the Targeted sequence-capture Approach?</h4><p>Target Capture Sequencing (TCS) allows researchers to extract genomic information from exons or regions of interest in the human or mouse genome with customized probes. Novogene’s cost-effective TCS technologies, including Whole Exome Sequencing (WES) and Target Region Sequencing (TRS), deliver much higher coverage than whole genome sequencing for the identification of rare variants.</p><h4>How has it been applied in current literature?</h4><p>Targeted capture provides an efficient and sensitive means for sequencing specific genomic regions in a high-throughput manner. To date, this method has mostly been used to capture exons from the genome (the exome) using short insert libraries and short-read sequencing technology, enabling the identification of genetic variants or new members of large gene families.</p><h4>How was it applied in this paper?</h4><p>for their phylogenetic analyses, the final contig set produced by ARC was processed using Biostrings (Pagès et al. 2016) and native libraries in R v3.0.2 (R Core Team 2013). In particular, all results were trimmed to include only targets where ARC produced a single contig across all libraries.</p><p>The pruned ARC targets file included a total length of 4,003,445 bp of sequence data consisting of 7627 genes and 11,976 exons or targeted loci. ARC performed a total of 1,300,188 <em>de novo</em> assemblies across all targets and individuals. Additionally, 5640 assemblies were terminated due to the incorporation of a large number of reads relative to the previous ARC iteration or assembly timeout (⁠&gt;&gt;20 min walltime), most likely due to the incorporation of difficult-to-resolve repetitive sequences.</p><h3>Direction for Tomorrow</h3><p>Go back to the methods used in msprime, and compare them against the new methods that you analysed this week.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aec0ddee4714" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #26 — Maximum Psuedo-Likelihood]]></title>
            <link>https://medium.com/@learningthoughts/day-26-maximum-psuedo-likelihood-1c01aecced94?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c01aecced94</guid>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Fri, 11 Aug 2023 13:14:54 GMT</pubDate>
            <atom:updated>2023-08-11T13:14:54.967Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #26 — Maximum Psuedo-Likelihood</h3><p>Thursday, 10 August</p><p>Yesterday I focused on understanding Phenotypic Parallelism, which I picked out from this paper that investigates both ILS and introgression: Niloofar Alaei Kakhki, Schweizer, M., Lutgen, D., Bowie, K., Hadoram Shirihai, Suh, A., Holger Schielzeth, &amp; Burri, R. (2022). A Phylogenomic Assessment of Processes Underpinning Convergent Evolution in Open-Habitat Chats. <em>BioRxiv (Cold Spring Harbor Laboratory)</em>. <a href="https://doi.org/10.1101/2022.06.21.496980">https://doi.org/10.1101/2022.06.21.496980</a>. Today I will continue analysing this paper and branch out questions to other papers.</p><h3>What methods did they apply?</h3><h4>f-branch statistic to measure introgression</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*MPBeBohF2O60-kzbcmxYtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*0TdH8DzyH1di2MntsTlCtQ.png" /></figure><p>imp: they rules out ILS, before exploring potential influence from introgression.</p><h4>What is maximum pseudo-likelihood approach?</h4><p>How is this different from the MLE?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*W-R-35tSeAGmAXXvSol3Ow.png" /></figure><p>Exploring this question leadme to analyse this paper:</p><p>Yu, Y., Nakhleh, L. A maximum pseudo-likelihood approach for phylogenetic networks. <em>BMC Genomics</em> <strong>16</strong> (Suppl 10), S10 (2015). <a href="https://doi.org/10.1186/1471-2164-16-S10-S10">https://doi.org/10.1186/1471-2164-16-S10-S10</a></p><p>which explores the maximum pseudo-likelihood approach for phylogenetic networks.</p><blockquote>A maximum likelihood approach was introduced recently for inferring species phylogenies in the presence of both processes, and showed very good results. However, computing the likelihood of a model in this case is computationally infeasible except for very small data sets.</blockquote><blockquote><em>In </em><a href="https://en.wikipedia.org/wiki/Statistical_theory"><em>statistical theory</em></a><em>, a </em><strong><em>pseudolikelihood</em></strong><em> is an </em><a href="https://en.wikipedia.org/wiki/Approximation"><em>approximation</em></a><em> to the </em><a href="https://en.wikipedia.org/wiki/Joint_probability_distribution"><em>joint probability distribution</em></a><em> of a collection of </em><a href="https://en.wikipedia.org/wiki/Random_variable"><em>random variables</em></a><em>. The practical use of this is that it can provide an approximation to the </em><a href="https://en.wikipedia.org/wiki/Likelihood_function"><em>likelihood function</em></a><em> of a set of observed data which may either provide a computationally simpler problem for </em><a href="https://en.wikipedia.org/wiki/Estimation_theory"><em>estimation</em></a><em>, or may provide a way of obtaining explicit estimates of model parameters.</em></blockquote><p>Hence, they introduce the pseudo-likelihood of a phylogenetic network, which, when combined with a search heuristic, provides a statistical method for phylogenetic network inference in the presence of ILS.</p><ul><li>Unlike trees, networks are not always uniquely encoded by a set of rooted triples. Therefore, even when given sufficient data, the method might converge to a network that is equivalent under rooted triples to the true one, but not the true one itself.</li><li>The method is computationally efficient and has produced very good results on the data sets we analyzed. The method is implemented in PhyloNet, which is publicly available in open source.</li></ul><h4>What are the conclusions drawn from the paper?</h4><p>Maximum pseudo-likelihood allows for inferring species phylogenies in the presence of hybridization and ILS, while scaling to much larger data sets than is currently feasible under <strong>full maximum likelihood</strong>. The nonuniqueness of phylogenetic networks encoded by a system of rooted triples notwithstanding, the proposed method infers the correct network under certain scenarios, and <strong>provides candidates for further exploration under other criteria and/or data in other scenarios</strong>.</p><p>[**explore the candidates for further exploration.]</p><h4>Why is such a method necessary?</h4><ul><li>Recent studies have reported patterns of co-occurrence of hybridization and ILS [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR10">10</a>–<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR14">14</a>]. These studies call for developing methods that account <em>simultaneously</em> for ILS and hybridization. In recent years, some efforts have been made to address this issue, but they all focused on limited special cases of phylogenetic networks [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR15">15</a>–<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR20">20</a>].</li><li>More recently, methods have been developed for general phylogenetic networks, including maximum parsimony [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR21">21</a>], maximum likelihood [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR22">22</a>–<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR24">24</a>] and distance-based methods [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR25">25</a>]. Of these, maximum likelihood produces the most accurate results and allows for estimating, in addition to the network topology, branch lengths and other parameters.</li></ul><h4>What are the limiations of the current methods?</h4><p>Computing the likelihood of a phylogenetic network under the models of [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR22">22</a>, <a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR24">24</a>] is computationally very expensive.<strong> When this step is coupled with a search heuristic that traverses the space of phylogenetic networks and other parameters, application of maximum likelihood becomes limited to very small data sets (fewer than 10 taxa and 3 reticulations)</strong>.</p><h4>How is this method different from the MLE?</h4><p>They propose a maximum pseudo-likelihood approach for inferring phylogenetic networks in the presence of hybridizations and ILS.</p><ul><li>The work extends MP-EST, which is a maximum pseudo-likelihood approach for estimating species trees from a collection of gene trees under the multispecies coalescent model [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR26">26</a>]. The pseudo-likelihood of a species tree is computed based on the f<strong>requencies of rooted triples </strong>in the input gene trees. Given that a tree is uniquely encoded by its set of <strong>rooted triples,</strong> the method of [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR26">26</a>] has theoretical guarantees of convergence, in addition to its empirical performance.</li><li>However, a phylogenetic network is not necessarily uniquely encoded by its triple set. The implication of this fact is that our method might not identify the true network (even when given sufficiently large amounts of data), but one that is equivalent to it in terms of the rooted triples it induces.</li><li>It is important to note that a phylogenetic network could very well be uniquely encoded by a system of rooted triples. Further, when the phylogenetic network is not uniquely encoded by a system of rooted triples, the networks that the method infers could be explored using other criteria (e.g., under likelihood based on gene trees) and/or other types of data <strong>(e.g., gene trees with branch lengths and molecular sequences).</strong></li></ul><h4>Convergence and Identifiability</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWcj3aSVN5EbZ9D4SH87Kg.png" /></figure><h4>Illustration of three phylogenetic networks — diff topologies, but they induce the same triple system</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QL0OOVpM6tZT2f6K2VG7Aw.png" /></figure><blockquote><em>One of the following operations is selected randomly according to their preset weights:</em></blockquote><ul><li>Modifying one or more branch lengths.</li><li>Modifying one or more inheritance probabilities.</li><li>Adding a reticulation edge.</li><li>Deleting a reticulation edge.</li><li>Relocating the head of a reticulation edge.</li><li>Relocating the tail of an edge.</li></ul><h4>What effects do the above operations have on the network?</h4><ul><li>The first two operations do not change the topology of the network. Full details of how these operations are implemented are given in [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR24">24</a>]. During the search, if the new network has higher pseudo-likelihood than the current one, it is always accepted; otherwise, it is accepted with some probability.</li><li>The search terminates if one of two conditions is satisfied: (1) the number of iterations reaches some preset maximum value or (2) the search is alternating between a collection of species networks with high pseudo-likelihoods, and a <strong>sufficient number of iterations have passed since visiting any other species networks. </strong>The details of how the probability of acceptance is set and the termination conditions are determined are similar to those used in [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR33">33</a>, <a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR34">34</a>].</li><li>Since branch lengths and inheritance probabilities are sampled, rather than optimized, during the search, some solutions could be missed due to this sampling.</li></ul><h4>How to account for this limitation?</h4><ul><li>Keep the top <em>k</em> optimal networks during the search, and then at the end optimize the branch lengths and inheritance probabilities (under the pseudo-likelihood criterion) of only these networks to identify the optimal one. We implemented this in our method and we discuss its performance in the simulation results below.</li></ul><p>This paper included many illustrations, I spent time diving into some of them, specifically those that mirrored the ones in the main ILS and introgression paper.</p><h4>Illustration of their reanalysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*4aJvvFf2pMKRIiqj.jpg" /><figcaption><strong>Reanalysis of the 1070-gene yeast data set of</strong> [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR35">35</a>]. Top: the species tree inferred by maximum pseudo-likelihood when no reticulations are allowed during the search. It is identical to the tree reported in [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR35">35</a>]. The two black numbers for every internal node are gene-support frequency (left) and internode certainty (right) reported in [<a href="https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-16-S10-S10#ref-CR35">35</a>]. Bottom: the species network inferred by maximum pseudo-likelihood with 2 reticulations. The red solid edge is the reticulation edge in the optimal species network with 1 reticulation. Blue and red numbers are branch lengths and inheritance probabilities, respectively, inferred by the method.</figcaption></figure><h4>What conclusions do the new analysis support?</h4><p>It supports a hypothesis of (at least) two major hybridization events in this data set and <strong>more divergence</strong> in certain parts of the phylogeny than is supported by the species tree.</p><ul><li>accounts for the possibility of hybridization (in addition to incomplete lineage sorting) estimates longer branches, making the same path of length 1.50 + 1.66 + 1.76 + 0.27 + 0.19 + 0.72 = 6.1 coalescent units, which is almost three times as long.</li><li>Further, it estimates an inheritance probability of 0.4 at the newly added reticulation edge. In other words, this combination of a new reticulation edge and much longer path indicate that much of the incongruence in this part of the tree can be explained by hybridization, rather than incomplete lineage sorting.</li></ul><h4>Accuracy of the simulated data</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*q6Y11CJIr8seQliK.jpg" /><figcaption>For every number of loci, the rightmost bar corresponds to inference from true gene trees and the other three bars, from left to right, correspond to inference from estimated gene trees from sequences of lengths 250, 500 and 1000, respectively. The dark blue region corresponds to the number of times the true network was returned as the optimal network after the search. The green region corresponds to the number of times the true network is not the optimal network found by the search, but is the optimal one among the top 5 species networks after optimizing their branch lengths and inheritance probabilities under maximum pseudo-likelihood. All other scenarios are represented by the maroon region.</figcaption></figure><p>[** Consider — the way you present the simulated data ]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*uVSaM5vnSSMfOwGf.jpg" /></figure><h4>What is an advantage of this method?</h4><ul><li>the running time of the inference depends in a minor way on the number of gene trees. After the gene trees <em>G</em> are read, <em>ρ</em>(<em>t, G</em>) is computed only once for all possible rooted triples <em>t</em> and the results are saved. Then during the search afterwards, <em>ρ</em>(<em>t, G</em>) are only constants when computing pseudo-likelihood of species networks.</li></ul><h4>What are the limitations of this method?</h4><ul><li>The major drawback of the method is that not all phylogenetic networks are uniquely encoded by their systems of rooted triples.</li><li>That is, some systems of rooted triples can encode more than a single network. In these cases, the convergence result given above does not guarantee that the true network is identified; rather, it implies that a network that is equivalent to the true one under rooted triples (potentially the true network itself) might be identified in the search.</li><li>When such a scenario arises, using different types of data or an alternative criterion to evaluate the identified networks might help to identify the true network.</li></ul><h3>What other papers explore this method?</h3><p>This 2020 paper:</p><blockquote><em>Marek Omelka, Šárka Hudecová, &amp; Neumeyer, N. (2020). Maximum pseudo‐likelihood estimation based on estimated residuals in copula semiparametric models. Scandinavian Journal of Statistics. </em><a href="https://doi.org/10.1111/sjos.12498"><em>https://doi.org/10.1111/sjos.12498</em></a></blockquote><h4>What does this paper focus on?</h4><ul><li>This paper deals with an estimation of the dependence structure of a multidimensional response variable in the presence of a multivariate covariate. It is assumed that the covariate affects only the marginal distributions through regression models while the dependence structure, which is described by a copula, is unaffected.</li><li>A parametric estimation of the copula function is considered with focus on the maximum pseudo-likelihood method. It is proved that under some appropriate regularity assumptions the estimator calculated from the residuals has the same asymptotic distribution as the estimator based on the unobserved errors. <strong>In such case one can ignore the fact that the response is first adjusted for the effect of the covariate.</strong></li></ul><h4>What are the main conclusions?</h4><p>The theoretical results are accompanied by a Monte Carlo simulation study which illustrates that the maximum pseudo-likelihood estimator based on residuals may behave poorly when the<strong> stated regularity assumptions are not satisfied.</strong></p><p>** Explore regularity assumptions.-</p><h3>Reflection from today:</h3><p>I subscribe to James Clear’s weekly newsletter, and today’s one really hit me:</p><blockquote>“I recently found a box filled with notes I wrote to myself years ago. I like this one:</blockquote><blockquote>1. Know what you want.</blockquote><blockquote>2. Go after it relentlessly.”</blockquote><p>And another quote that got me thinking:</p><blockquote>What are the current habits that are hindering your future progress?</blockquote><p>And a final one that resonated with me deeply:</p><blockquote><em>Philosopher </em><strong><em>John Macmurray</em></strong><em> explains one of the dilemmas of life:</em></blockquote><blockquote>“In imagination we feel sure that it would be lovely to live with a full and rich awareness of the world. But in practice sensitiveness hurts. It is not possible to develop the capacity to see beauty without developing also the capacity to see ugliness, for they are the same capacity. The capacity for joy is also the capacity for pain. We soon find that any increase in our sensitiveness to what is lovely in the world increases also our capacity for being hurt. That is the dilemma in which life has placed us. We must choose between a life that is thin and narrow, uncreative and mechanical, with the assurance that even if it is not very exciting it will not be intolerably painful; and a life in which the increase in its fullness and creativeness brings a vast increase in delight, but also in pain and hurt.”</blockquote><h3>Direction for Tomorrow</h3><p>Extend today’s analysis — go deep into understanding a specific method that the paper applied.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c01aecced94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #25 — understanding Phenotypic Parallelism]]></title>
            <link>https://medium.com/@learningthoughts/day-25-understanding-phenotypic-parallelism-4679f6357d39?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/4679f6357d39</guid>
            <category><![CDATA[computational-biology]]></category>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Thu, 10 Aug 2023 17:16:02 GMT</pubDate>
            <atom:updated>2023-08-10T17:16:02.057Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #25 — understanding Phenotypic Parallelism</h3><p>Wednesday, 9 August</p><p>Yesterday I focused on synthesising the information that I learned from last week. This lead me to chance upon this paper — which is closely related to my research topoic. My goal for today is to dive into this paper and understand their research methods + understand the content.</p><h3>Analysis — A Phylogenomic Assessment of Processes Underpinning Convergent Evolution in Open-Habitat Chats.</h3><p>Niloofar Alaei Kakhki, Schweizer, M., Lutgen, D., Bowie, K., Hadoram Shirihai, Suh, A., Holger Schielzeth, &amp; Burri, R. (2022). A Phylogenomic Assessment of Processes Underpinning Convergent Evolution in Open-Habitat Chats. <em>BioRxiv (Cold Spring Harbor Laboratory)</em>. <a href="https://doi.org/10.1101/2022.06.21.496980">https://doi.org/10.1101/2022.06.21.496980</a></p><p>This paper also cites Mia’s QuiBL paper!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*DuDITvpMNXpdDbYStj0ACQ.png" /></figure><h3>What is Phenotypic Parallelism?</h3><p>The independent and repeated adaptation of populations to similar environments often results in the evolution of similar forms.<strong> This phenomenon creates a strong correlation between phenotype and environment and is referred to as parallel evolution</strong>. However, we are still largely unaware of the dynamics of parallel evolution, as well as the interplay between phenotype and genotype within natural systems.</p><h4>What are the research questions surrounding Phenotypic Parallelism?</h4><p>Researchers of phenotypic parallelism traditionally ask to what extent replicate populations adapted to similar environments (collectively referred to as an ‘ecotype’) are phenotypically distinct from other such ecotypes, and which traits contribute to these differences (see Bolnick et al. <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0007">2018</a> for a detailed review of approaches). Yet, even in some of the most classic cases of parallel evolution, such as the threespine stickleback, there can be a large degree of within-ecotype phenotypic variability between populations (Stuart et al. <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0083">2017</a>).</p><blockquote>phenotpe = the set of <strong><em>observable characteristics</em></strong> of an individual resulting from the interaction of its <strong><em>genotype with the environment.</em></strong></blockquote><h4>What are the recent advancements in the research methods?</h4><p>This has prompted a recent shift to <strong>multivariate geometric approaches </strong>(see Collyer and Adams <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0016">2007</a>; Adams and Collyer <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0001">2009</a>; Collyer et al. <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0017">2015</a>; Bolnick et al. <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0007">2018</a>; De Lisle and Bolnick <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0020">2020</a>), which quantify how evolution proceeds in <strong>multivariate trait space </strong>and how this differs between pairs of<strong> contrasting ecotypes </strong>(as undertaken in Elmer et al. <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0024">2014</a>; Kusche et al. 2015; Oke et al. 2017; Stuart et al. <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0083">2017</a>; Paccard et al. 2019; Jacobs et al. <a href="https://onlinelibrary.wiley.com/doi/10.1111/evo.14387#evo14387-bib-0037">2020</a>).</p><h4>What are the 3 main ideas in this paper?</h4><ol><li>Insights into the processes underpinning the evolution of phenotypic parallelism contribute to our understanding of the contributions of <strong>ancestral</strong>, <strong>introgressed</strong>, and <strong>novel genetic variation </strong>to phenotypic evolution.</li><li>The high levels of gene tree heterogeneity in wheatears are explained by ILS alone only for 30% of internal branches. For multiple branches with high gene tree heterogeneity, D-statistics and phylogenetic networks identified footprints of introgression.</li><li>Long branches without extensive ILS between clades sporting similar phenotypes provide suggestive evidence for a <strong>role of novel mutations in the evolution of these phenotypes.</strong></li></ol><h4><strong>What is the relationship between phenotypic parallelism and introgression x ILS?</strong></h4><p>Phylogenomic analyses characterizing genome-wide gene tree heterogeneity can provide first clues about the extent of ILS and of introgression and thereby into the potential of these processes or (in their absence) the need to invoke novel mutations to underpin phenotypic parallelism.</p><h4>How does Phenotypic Parallelism Evolve?</h4><p>Phenotypic parallelism can evolve in <strong>three ways</strong>:</p><ol><li>First, under phenotypic parallelism <em>sensu stricto</em>, phenotypic similarities evolve through independent mutations in the same or different genes (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-7"><strong>Arendt and Reznick 2008</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-21"><strong>Christin et al. 2010</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-38"><strong>Gompel and Prud’homme 2009</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-75"><strong>Martin and Orgogozo 2013</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-111"><strong>Stern 2013</strong></a>). In Mexican cavefish (<em>Astyanax mexicanus</em>), for instance, the phenotypic parallelism of decolored brown phenotypes and albinism in separate caves occurred through different mutations in the MC1R and OCA2 genes, respectively (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-41"><strong>Gross et al. 2009</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-94"><strong>Protas et al. 2006</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-109"><strong>Stahl and Gross 2015</strong></a>). Similarly, isoforms of PEPC found in C4 photosynthesis (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-9"><strong>Besnard et al. 2009</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-20"><strong>Christin et al. 2007</strong></a>), and similar floral traits important for pollination (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-50"><strong>Hoballah et al. 2007</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-93"><strong>Preston and Hileman 2009</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-121"><strong>Whittall et al. 2006</strong></a>) have evolved multiple times independently in plants.</li><li>The second, and likely most frequent process leading to phenotypic parallelism that also accounts for most gene tree heterogeneity is incomplete lineage sorting (ILS), that is, the <strong>retention of alleles and traits that were already present in the ancestral lineage</strong> (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-22"><strong>Colosimo et al. 2005</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-23"><strong>Cresko et al. 2004</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-111"><strong>Stern 2013</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-119"><strong>Van Belleghem et al. 2018</strong></a>). ILS is especially prevalent in radiations characterized by large effective population sizes and fast succession of speciation events, such as, for instance, in the evolution of neoavian birds (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-52"><strong>Jarvis et al. 2014</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-113"><strong>Suh 2016</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-114"><strong>Suh et al. 2015</strong></a>). In such cases, <strong>a high proportion of ancestral variation may be retained over subsequent species splits</strong> and segregate in the independently evolving gene pools of daughter species (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-70"><strong>Maddison 1997</strong></a>). <br>Selection or drift in non-sister species may fix the same genotype (and phenotype), while sister species may fix a different genotype/phenotype. For instance in Humans, at least 1% of the genome is genetically more similar to orangutans than to chimps due to ILS, even though these primates are characterized by small effective population sizes (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-51"><strong>Hobolth et al. 2011</strong></a>).<br><strong>[Main claim: most likely process that leads to phenotypic parallelism is ILS]</strong></li><li>Third, in hybridizing lineages, phenotypic parallelism and gene tree heterogeneity may be underpinned by introgression that mingles genotypes and phenotypes among species (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-46"><strong>Heliconius Genome Consortium 2012</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-72"><strong>Malinsky et al. 2018</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-108"><strong>Song et al. 2011</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-112"><strong>Stryjewski and Sorenson 2017</strong></a>). In particular, introgression between non-sister species may result in these species being phenotypically more similar than they are to their respective sister species, such as exemplified by wing-pattern mimicry in <em>Heliconius</em> butterflies (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-29"><strong>Edelman et al. 2019</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-88"><strong>Pardo-Diaz et al. 2012</strong></a>) and plumage coloration of <em>Munia</em> finches (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-112"><strong>Stryjewski and Sorenson 2017</strong></a>) and of members of the Black-eared Wheatear (<em>Oenanthe hispanica</em>) complex (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-103"><strong>Schweizer et al. 2019a</strong></a>). <br>Importantly, in an increasing number of instances, such as in <em>Heliconius</em> butterflies, Yellowstone wolves, Darwin’s finches and cichlid fish in Lake Malawi and Lake Victoria, introgression has <strong>exchanged alleles between species and resulted in the formation of beneficial phenotypes</strong> (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-32"><strong>Enciso-Romero et al. 2017</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-36"><strong>Genner and Turner 2012</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-39"><strong>Grant et al. 2005</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-59"><strong>Lamers et al. 2012</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-120"><strong>Wallbank et al. 2016</strong></a>). Given that over the last decade genomic studies have contributed increasing evidence for the abundance of such adaptive introgression, hybridization may underpin phenotypic parallelism more often than previously appreciated (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-15"><strong>Campagna et al. 2017</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-43"><strong>Han et al. 2017</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-73"><strong>Marques et al. 2019a</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-79"><strong>Meier et al. 2018</strong></a>).</li></ol><p>This leads me to many questions. First —from point 3, it is mentioned that:</p><blockquote>“hybridization may underpin phenotypic parallelism more often than previously appreciated (<a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-15"><strong>Campagna et al. 2017</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-43"><strong>Han et al. 2017</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-73"><strong>Marques et al. 2019a</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/2022.06.21.496980v1.full#ref-79"><strong>Meier et al. 2018</strong></a>).”</blockquote><h4><strong>which lead me to explore the 2019 paper:</strong></h4><p>Marques DA, Lucek K, Sousa VC, Excoffier L, Seehausen O. 2019a. Admixture between old lineages facilitated contemporary ecological speciation in lake constance stickleback. Nature communications. <strong>10</strong>(1):1–14. <a href="https://www.biorxiv.org/lookup/google-scholar?link_type=googlescholar&amp;gs_type=article&amp;author[0]=DA+Marques&amp;author[1]=K+Lucek&amp;author[2]=VC+Sousa&amp;author[3]=L+Excoffier&amp;author[4]=O+Seehausen&amp;title=Admixture+between+old+lineages+facilitated+contemporary+ecological+speciation+in+lake+constance+stickleback&amp;publication_year=2019a&amp;journal=Nature+communications&amp;volume=10&amp;pages=1-14"><strong>Google Scholar</strong></a></p><h3>Sidetrack: Paper analysis — Admixture between old lineages facilitated contemporary ecological speciation in Lake Constance stickleback</h3><p>the main outcome of this paper, is that it highlights an o<strong>verlooked outcome of secondary contact: ecological speciation facilitated by admixture variation</strong></p><h4>What is the focus of their study?</h4><blockquote>“Ecological speciation can sometimes rapidly generate reproductively isolated populations coexisting in sympatry, but the origin of genetic variation permitting this is rarely known. We previously explored the genomics of very recent ecological speciation into lake and stream ecotypes in stickleback from Lake Constance.</blockquote><blockquote>Here, we reconstruct the origin of alleles underlying ecological speciation by combining demographic modelling on genome-wide single nucleotide polymorphisms, phenotypic data and mitochondrial sequence data in the wider European biogeographical context. We find that parallel differentiation between lake and stream ecotypes across replicate lake-stream ecotones resulted from recent secondary contact and admixture between old East and West European lineages. Unexpectedly, West European alleles that introgressed across the hybrid zone at the western end of the lake, were recruited to genomic islands of differentiation between ecotypes at the eastern end of the lake.”</blockquote><h4>What does their study reveal about admixture variation?</h4><p>Their study reveals admixture variation as genetic source of ecotype differentiation and thus contemporary ecological speciation, derived from hybridization between two divergent lineages from at least two European watersheds.</p><ul><li>They found that stream ecotypes in Lake Constance show a gradient of admixture between divergent European stickleback lineages: near the zone of secondary contact, stream ecotypes show a 50:50 hybrid origin, while far from the zone of contact, novel stream ecotypes evolved in situ from predominantly one genomic background, aided by sorting of introgressed alleles.</li><li>Their analyses provide evidence for the hypothesis that <strong>admixture variation can be an important facilitator of rapid ecological speciation and adaptive radiation</strong><a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR23">23</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR24">24</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR25">25</a> and uncover an unexpected outcome of secondary contact: repeated ecological speciation beyond the contact zone. Their results imply that caution should be taken when inferring modes and times of speciation from population genome sequence data in the absence of a thoroughly sampled <strong>phylogeographic context</strong></li></ul><p>[Research application — **IMPORTANT NOTE — clarify the <strong>phylogeographic context / assumptions made when simulating the datasets</strong>]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*O9xtfWuubj9I5VOp.png" /><figcaption>Interesting figures from their study!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXF0r2beKrBfM26XQigH_Q.png" /></figure><h4>Highlight — took some time to understand how they applied <strong>maximum-likelihood analysis</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*m-0J0Eg4SLBQaGtN.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QeEEN7nVsbRtx3u-QT6BlQ.png" /></figure><h3>Extrapolating their method to my research!!</h3><h4>** How can I apply their method in my research?</h4><p>They used a similar method of computing likelihood distributions from 100 SFS simulated under each model given the maximum-likelihood parameters inferred from the observed data and comparing the overlap of these likelihood distributions.</p><h4>** How did they apply constraints in their method?</h4><p>After identifying the best model (model 3a, see Fig. <a href="https://www.nature.com/articles/s41467-019-12182-w#Fig3">3a</a> and Results section), we used the <strong>95% confidence intervals for divergence times</strong> between West and East European lineages, upper Rhone and Rhine lineages and the population sizes of the three populations as<strong> constraints for parameter searches in more complex models</strong>.</p><blockquote>[Gd application — understand how one analysis can serve to create constraints down the parameter searches further down the analysis chain] — possible idea: something about constraining the mutation x recombination rate combinations</blockquote><h4>Did their study incorporate analysis of recombination rate?</h4><ul><li>The genomic architecture of this case is characterized by an undifferentiated genomic background interspersed by strong differentiation across multiple chromosomes, especially in <strong>low recombination regions </strong>and inversions enriched with quantitative trait loci (QTL) for divergent traits</li><li>They tested the fit of multiple neutral demographic models to the observed <strong>site-frequency spectra (SFS) </strong>computed from sites in high recombination rate regions in order to minimize effects of <strong>selection</strong> on the SFS</li></ul><h4>Analysis of heterogeneous differentiation x recombination</h4><ul><li>A rich literature has shown that heterogeneous differentiation (<em>F</em>ST) across the genome will arise as by-product of background selection in the absence of gene flow<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR35">35</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR36">36</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR37">37</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR38">38</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR39">39</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR40">40</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR41">41</a>. Background selection removes proportionately more linked variation in low recombination regions, leading to negative correlations of differentiation (<em>F</em>ST) with recombination rate, absolute divergence (<em>d</em>XY) and diversity levels (π), and correlated genome-wide differentiation across populations and taxa<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR35">35</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR36">36</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR37">37</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR38">38</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR39">39</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR40">40</a>,<a href="https://www.nature.com/articles/s41467-019-12182-w#ref-CR41">41</a>.</li><li>Allopatric stickleback populations from different European watersheds lack gene flow, but we find no correlation of <em>F</em>ST with recombination rate or absolute divergence, even though <strong>differentiation landscapes are weakly correlated and <em>F</em>ST and diversity show negative correlations in some populations </strong>(Supplementary Fig. <a href="https://www.nature.com/articles/s41467-019-12182-w#MOESM1">9</a>).</li><li><strong>The lack of association with recombination rate suggest that background selection might not be a major driver of genome-wide differentiation</strong> (<em>F</em>ST) between allopatric European stickleback populations, even in the absence of gene flow.</li></ul><h3>Reflection from today’s research</h3><p>Today’s research was exciting! In identifying how I can learn from methods from other papers, and extrapolate those methods into my paper + coming up with ideas on how I could apply the same methods for a different purpose.</p><h3>Direction for tomorrow</h3><p>Continue analysis of this paper — Niloofar Alaei Kakhki, Schweizer, M., Lutgen, D., Bowie, K., Hadoram Shirihai, Suh, A., Holger Schielzeth, &amp; Burri, R. (2022). A Phylogenomic Assessment of Processes Underpinning Convergent Evolution in Open-Habitat Chats. <em>BioRxiv (Cold Spring Harbor Laboratory)</em>. <a href="https://doi.org/10.1101/2022.06.21.496980">https://doi.org/10.1101/2022.06.21.496980</a> — and branch out questions to other papers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4679f6357d39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #24 — Synthesis Week]]></title>
            <link>https://medium.com/@learningthoughts/day-24-synthesis-week-674e07488192?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/674e07488192</guid>
            <category><![CDATA[computational-biology]]></category>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Wed, 09 Aug 2023 04:55:21 GMT</pubDate>
            <atom:updated>2023-08-09T04:56:45.825Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #24 — Synthesis Week</h3><h4>Synthesise last week’s QuiBL Analysis [2/2]</h4><p>My goal for today is to continue analysing this 2023 paper + deepen understanding of negative frequency-dependent selection, especially it’s relationship with <strong>recombination</strong>.</p><p>Meike J Wittmann and others, Modeling the genetic footprint of fluctuating balancing selection: from the local to the genomic scale, <em>Genetics</em>, Volume 223, Issue 4, April 2023, iyad022, <a href="https://doi.org/10.1093/genetics/iyad022">https://doi.org/10.1093/genetics/iyad022</a></p><h3>What is fluctuating balancing selection?</h3><p>Fluctuating balancing selection is <strong>a combination of standard balancing selection maintaining a polymorphism</strong> and <strong>strong directional selection</strong>, leading to <strong>rapid changes in allele frequencies</strong>, well-known results for these limiting scenarios can give us first clues to its footprint.</p><h4>What are the effects of fluctuating balancing selection?</h4><p>Standard balancing selection leads to an <strong>increase</strong> in <strong>diversity</strong> at <strong>closely linked neutral sites</strong> (Charlesworth 2006).</p><h4>Why?</h4><blockquote>Close to the selected site, where the <strong><em>recombination rate between neutral and selected locus is small</em></strong>, there is little exchange between the two allelic “subpopulations.”</blockquote><blockquote>They become differentiated from each other, and samples including chromosomes from different subpopulations harbor substantial diversity.</blockquote><blockquote>By contrast, <strong>rapid changes in allele frequencies, as in a selective sweep, tend to reduce genetic diversity at linked neutral sites</strong> (Maynard Smith and Haigh 1974; Stephan 2019), where alleles can hitchhike to high frequencies or to fixation. More generally, <strong><em>diversity is reduced by hitchhiking</em></strong> when effects of selection in the genomic background lead to an increased offspring number variance at the focal locus (Barton 2000). This also holds if the strength and direction of linked selection fluctuates with time.</blockquote><blockquote>small recombination rate</blockquote><blockquote>= little exchange b/w subpops</blockquote><blockquote>= differentiated from each other</blockquote><h4>In contrast,</h4><blockquote>rapid changes in allele frequencies, as in a selective sweep</blockquote><blockquote>= greater genetic similarity at linked neutral sites</blockquote><p>alleles can hitchhike to high frequencies or fixation.</p><h4>What is allele hitchhiking?</h4><blockquote>Genetic hitchhiking, also called genetic draft or the hitchhiking effect, is when an allele changes frequency not because it itself is under natural selection, but <strong><em>because it is near another gene that is undergoing a selective sweep </em></strong>and that is on the same DNA chain.</blockquote><ul><li>When one gene goes through a selective sweep, any other nearby <a href="https://en.wikipedia.org/wiki/Polymorphism_(biology)">polymorphisms</a> that are in <a href="https://en.wikipedia.org/wiki/Linkage_disequilibrium">linkage disequilibrium</a> will tend to change their <a href="https://en.wikipedia.org/wiki/Allele_frequency">allele frequencies</a> too.<a href="https://en.wikipedia.org/wiki/Genetic_hitchhiking#cite_note-Futuyma-2">[2]</a></li><li>Selective sweeps happen when newly appeared (and hence still rare) mutations are advantageous and increase in frequency. <a href="https://en.wikipedia.org/wiki/Neutral_mutation">Neutral</a> or even slightly deleterious alleles that happen to be <a href="https://en.wikipedia.org/wiki/Genetic_linkage">close by</a> on the chromosome ‘hitchhike’ along with the sweep.</li><li>In contrast, effects on a neutral locus due to linkage disequilibrium with newly appeared deleterious mutations are called <a href="https://en.wikipedia.org/wiki/Background_selection">background selection</a>. Both genetic hitchhiking and background selection are <a href="https://en.wikipedia.org/wiki/Stochastic">stochastic</a> (random) evolutionary forces, like <a href="https://en.wikipedia.org/wiki/Genetic_drift">genetic drift</a>.<a href="https://en.wikipedia.org/wiki/Genetic_hitchhiking#cite_note-Gillespie_2001-3">[3]</a></li></ul><h4>Hence, diversity is reduced through hitchhiking</h4><p>when effects of selection in the genomic background lead to an increased <strong>offspring number varianc</strong>e at the focal locus (Barton 2000). This also holds if the strength and direction of linked selection <strong>fluctuates with time</strong>.</p><h4>Does fluctuating balancing selection increase or decrease diversity?</h4><p>Fluctuating balancing selection can<strong> both increase and decrease diversity</strong> at linked neutral sites.</p><p>Specifically, Gillespie (1997) observed a long-range reduction in diversity at neutral sites for a model with uncorrelated fluctuating selection and a balancing selection component. Similarly, Taylor (2013) found a<strong> reduction in diversity </strong>at linked sites using a <strong>numeric structured coalescent approach</strong> with<strong> uncorrelated random environmental fluctuations</strong>. In a haploid two-patch model with cyclical selection, Park and Kim (2019) observed both cases with an increase and a decrease in levels of polymorphism at linked neutral loci, <strong>depending on the parameter combination</strong>.</p><h4>What are the limitations in these findings?</h4><ul><li>There is still a <strong>lack of analytical results</strong> which would give insights into how the shape and magnitude of these footprints depends on the parameters of fluctuating selection, such as the <strong>strength and dominance of selection and the period of the fluctuation</strong>.</li><li>It is also still unclear when the<strong> net effect of fluctuating balancing selection on linked diversity</strong> would be expected to be positive or negative. Also, most results so far assume <strong>uncorrelated selection </strong>rather than <strong>seasonally fluctuating selection</strong>.</li></ul><blockquote><strong><em>Sidetrack: what is seasonally fluctuating selection?</em></strong></blockquote><blockquote>Fluctuating selection is a mode of natural selection characterized by the fluctuation of the direction of selection on a given phenotype over a <strong>relatively brief period of evolutionary time</strong>. For example, a species of plant may come in two varieties: one which prefers wetter soil and one which prefers dryer soil.</blockquote><h4>With these different types of genetic fluctuations in mind, which one does this paper apply?</h4><ul><li>They consider strong seasonal selection, where <strong>allele frequencies fluctuate on timescales much faster than genetic drift</strong>.</li><li>They derive analytical results to investigate how the <strong>genome-wide footprint</strong> depends on the <strong>strength and dominance of selection and the fluctuation period</strong>. They discuss whether and when the <strong>positive or negative effects of fluctuating balancing selection on diversity levels</strong> <strong>dominate</strong> on the scale of chromosomes and genomes.</li></ul><blockquote>Super interesting analysis:</blockquote><h4>Winter vs Summer Analysis</h4><p>In their standard model, they consider a diploid population of size <em>N</em> living in a seasonal environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-pB0t8DRdqonnzuvkwbMQ.png" /><figcaption>ref: <a href="https://academic.oup.com/genetics/article/223/4/iyad022/7040362">https://academic.oup.com/genetics/article/223/4/iyad022/7040362</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0b1LeF2WspUqp4tHKEGRVw.png" /><figcaption>Parameters and their default values.</figcaption></figure><p>From analysing the table,</p><h4>What is the difference between the 2 recombination types? Are both relevant in msprime?</h4><h4>Odd vs even in recombination</h4><p>A recombination occurs if there are an odd number of crossover events (usually just one) between the two loci. An even number of crossovers (usually 0, maybe 2) would return these genes to their original chromosomal arrangement.</p><p>Fascinated by recombination!!</p><h4>What is the rate of recombination?</h4><p>This question led me to explore the history of how recombination came about, and I found out that a Columbia Undergrad, Alfred Sturtevant, in Morgan’s lab decided to analyze the<strong> frequencies of linkage, that is of pairs of co-inherited traits. </strong>During a long night that was supposed to be devoted to homework for his undergrad studies, he instead made a conceptual leap that was to become textbook material and a cherished story from the history of science. He found that the tendency of the traits they studied to be inherited together such as white eyes instead of red eyes or a more yellow body color could be quantitatively explained if one assumes that the genes for these traits are ordered along a line (chromosome) and the tendency not to be inherited together is then <strong>reasonably predicted as increasing linearly with their distance</strong>.</p><p>Using this logic, that night Sturtevant created the first genetic map reproduced in the following diagram:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkH-i4FSTRoR_0y9RD3SDg.png" /><figcaption>Schematic of the first genetic map of the X chromosome of Drosophila redrawn with modern symbols. Sturtevant’s map included five genes on the X chromosome of Drosophila. Adapted from: <a href="http://www.nature.com/scitable/topicpage/thomas-hunt-morgan-genetic-recombination-and-gene-496.">http://www.nature.com/scitable/topicpage/thomas-hunt-morgan-genetic-recombination-and-gene-496.</a> Locations updated from Green &amp; Piergentili, PNAS 2000. Based on: Pierce, Benjamin. Genetics: A Conceptual Approach, 2nd ed. (New York: W. H. Freeman and Company), 161.</figcaption></figure><blockquote><em>The mechanism explaining the frequency with which</em><strong><em> characteristics are inherited together</em></strong><em> is that of </em><strong><em>recombination</em></strong><em>. This is an act of two chromosomes of similar composition </em><strong><em>coming together and performing a molecular crossover, thereby exchanging genetic content</em></strong><em>.</em></blockquote><blockquote><em>Two genes on the chromosome that have a 1% chance of crossover per generation are defined to be at a distance of one centimorgan, or cM for short. In humans, the average rate of recombination is about 1cM per 1Mbp (BNID 107023), that is, </em><strong><em>for every million base pairs there is a one in a hundred chance of crossover on average per generation</em></strong><em>. The variation in the rate of recombination is shown in the above figure.</em><strong><em> It tends to scale inversely with genomic length.</em></strong></blockquote><h4>What are the recent advancements / barriers in research about recombination?</h4><p>Most models that address the evolution of recombination rate were created to explain the <strong>evolutionary advantage of recombination</strong> rather than <strong>quantitative differences in rate among individuals</strong>.</p><p>To this end, the following 2017 paper argues that:</p><blockquote>“efforts to integrate the rich bodies of empirical and theoretical work on recombination rate are crucial to moving this field forward.”</blockquote><p>Informative paper about the evolution of research about recombination rate:</p><p>Dapper, A. L., &amp; Payseur, B. A. (2017). Connecting theory and data to understand recombination rate evolution. <em>Philosophical Transactions of the Royal Society B: Biological Sciences</em>, <em>372</em>(1736), 20160469. <a href="https://doi.org/10.1098/rstb.2016.0469">https://doi.org/10.1098/rstb.2016.0469</a></p><p>ANOTHER paper echoes this similar sentiment:</p><blockquote>“an important barrier to progress has been a lack of coordination between theoretical and empirical studies”</blockquote><h4>Is dominance rate relevant in msprime? What is the effect of dominance rate on the simulations?</h4><p>In researching about dominance rate, I chanced upon this application of msprime, of a <strong>“recapitation” of a tree sequence, where</strong></p><blockquote>Rather than starting with a tree sequence from msprime, they instead finish a simulation by “coalescing back” the first generation of the simulation using msprime.</blockquote><p>ref: <a href="https://molpopgen.github.io/fwdpy11/short_vignettes/recapitation.html">https://molpopgen.github.io/fwdpy11/short_vignettes/recapitation.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XecuNLnwaFeDplkm5pCM0Q.png" /><figcaption>first, they simulate a population for 10 generations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QVEhOI49mRkE66IrvW4gXA.png" /><figcaption>then they use coalesce the founder generation roots back to a common ancestor</figcaption></figure><p>Explore this website further, to understand how to:</p><ol><li>Simulate traits in genetic values</li><li>Setting up mutation rates with a direct effect on fitness.</li></ol><p><a href="https://molpopgen.github.io/fwdpy11/short_vignettes/neutralmutsafter_vignette.html">https://molpopgen.github.io/fwdpy11/short_vignettes/neutralmutsafter_vignette.html</a></p><h3>#1 Explore parameters for simulating direct effects on fitness</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kux6etffkbVz6hOoCj7ynQ.png" /></figure><ul><li>The rate tuple contains the neutral mutation rate, selected mutation rate, and recombination rate, respectively. The recombination rate is None because the rates are all contained in recregions. (See Genetic maps.) This parameterization of rates will soon be deprecated and the need to specify a recombination rate of None will go away.</li><li>The demography field is something we’ve not encountered yet. If nothing is provided, an empty instance of fwdpy11.ForwardDemesGraph gets initialized. This means “no demographic events”. Demographic events are the subject of this page.</li><li>simlen is how many generations to evolve the population.</li><li>prune_selected is a boolean. If True, then mutations that are fixed in the alive individuals, and not present at all in ancient samples, will be removed from the simulation. This removal is an efficiency thing–we don’t need them for multiplicative models. In the future, we hope for a better method for handling fixations that allows for removal, even when present in ancient samples, during the simulation, then add them back in to the tables before returning from the simulation.</li></ul><p>Warning: Do not set prune_selected = True for models of <strong>additive effects</strong>. Doing so breaks our requirement that the rank order of relative fitness is preserved up to a multiplicative constant.</p><h3>#2 Exploring Genetic Values — simulating phenotypes/traits.</h3><h4>What are the TWO MODELS that we can consider?</h4><ol><li>a mutation’s effect size (<a href="https://molpopgen.github.io/fwdpy11/pages/types.html#fwdpy11.Mutation.s"><strong>fwdpy11.Mutation.s</strong></a><strong>) directly affects </strong>individual fitness.</li><li>mutations affect some <strong>abstract “trait” or “phenotype” </strong>and a separate function maps trait values to fitness.</li></ol><h4>Model #1 — a mutation’s effect size (<a href="https://molpopgen.github.io/fwdpy11/pages/types.html#fwdpy11.Mutation.s">fwdpy11.Mutation.s</a>) directly affects individual fitness.</h4><p><a href="https://molpopgen.github.io/fwdpy11/short_vignettes/gvalues_fitness.html">https://molpopgen.github.io/fwdpy11/short_vignettes/gvalues_fitness.html</a></p><p>In a typical population-genetic model, mutations have direct effects on fitness. Often, this effect is referred to as s, or the “selection coefficient”.</p><blockquote><em>Once we’ve decided on our distributions of effect sizes, we need a way to obtain a diploid’s fitness. For these “standard” population genetic models, we will use </em><a href="https://molpopgen.github.io/fwdpy11/pages/genetic_values.html#fwdpy11.Multiplicative"><strong><em>fwdpy11.Multiplicative</em></strong></a><em>. Instances of this class tell the simulation to calculate the genetic value of an individual using a multiplicative model where the value contributed by each position with a mutation is:</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mwYFp7vIjnyHTN9BRBQqRA.png" /></figure><p>The scaling parameter interacts with the h parameter for a distribution of effect sizes! (See <a href="https://molpopgen.github.io/fwdpy11/short_vignettes/des_vignette.html#des-vignette">Distributions of effect sizes</a>.) For example, if scaling = 1.0, then h = 1.0 results in dominant mutations. However, if scaling = 2.0, then h = 1.0 gives co-dominant mutations. In both cases, h = 0.0 generates fully-recessive mutations.</p><h4>Model #2 — mutations affect some abstract “trait” or “phenotype” and a separate function maps trait values to fitness.</h4><p><a href="https://molpopgen.github.io/fwdpy11/short_vignettes/gvalues_traits.html">https://molpopgen.github.io/fwdpy11/short_vignettes/gvalues_traits.html</a></p><h4>In the standard model of evolutionary quantitative genetics:</h4><ul><li>Mutations have <strong>additive</strong> effects on trait values</li><li>The fitness of a trait value is a quadratic function of its distance from an “optimum” trait value.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYdZcxySaVPbzaOnYNj4Pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kWRY8tI8JqXPGMizf2Zc1Q.png" /><figcaption>adding Gaussian noise to an individual’s trait value</figcaption></figure><ul><li>We want VS = 1.0. We can decompose VS = VW + VE, where VW and VE are the<strong> additive contributions of genetic and environmental effects</strong>.</li><li>Here, the environmental effect is a Gaussian with mean zero and variance 1/3. The class is parameterized with the standard deviation, however, so we need to pass on the square root.</li><li>We then set VS = 1–1/3 = 2/3 when initializing fwdpy11.GSS.</li></ul><p>( to be continued below )</p><h4>Sidetrack : What does it mean to “add gaussian noise”</h4><blockquote><em>Gaussian noise, also known as white noise, is a type of random noise that is distributed according to a normal distribution. In deep learning, Gaussian noise is often added to the input data during training to improve the robustness and generalization ability of the model. This is known as data augmentation. By adding noise to the input data, the model is forced to learn features that are robust to small variations in the input, which can help it perform better on new, unseen data.</em></blockquote><h3>Direction for Tomorrow</h3><p>Continue exploration of this website: <a href="https://molpopgen.github.io/fwdpy11/short_vignettes/gvalues_fitness.html">https://molpopgen.github.io/fwdpy11/short_vignettes/gvalues_fitness.html</a></p><p>+ Can environmental vs genetic effects be simulated in separate parameters in msprime?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=674e07488192" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #23 — Synthesis Week]]></title>
            <link>https://medium.com/@learningthoughts/day-23-synthesis-week-76c6e8e99f57?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/76c6e8e99f57</guid>
            <category><![CDATA[genetics]]></category>
            <category><![CDATA[computational-biology]]></category>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Tue, 08 Aug 2023 04:27:46 GMT</pubDate>
            <atom:updated>2023-08-08T04:38:15.545Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #23 — Synthesis Week</h3><h4>Synthesise last week’s QuiBL Analysis [1/2]</h4><p>My goal for today is to synthesise key insights from what I learned last week about QuiBL, and identify the concepts / methods that I want to apply in my application of QuiBL.</p><p>Reflection on the past month of researching!!</p><p>I am learning so much everyday, and I’m very very grateful to continuously iterate on my learning processes. I realised that there are so many insights I can glean from simply sitting down and pausing, then reflecting on how research has gone in the past week.</p><p>Last week I learned 3 main things:</p><ol><li>looking at the macro view of my concepts, and trying to piece them together allows me to draw connections between ideas that I previously did not see</li><li>Stepping away from my research, and coming back to it really gives fresh perspectives that I previously did not have — ex. thinking about the parsimony principle which was applied in the context of algorithms — and how each algorithm applies it.</li></ol><h3>Summary of the main topics from the previous week</h3><h3>Day #17 — QuiBL analysis: How does QuiBL apply the EM algorithm, and what alternatives do I have?</h3><h4>[EM Algorithm, EM vs MM, triplet class, Intra-locus Recombination Breakpoints, exploring hemiplasy]</h4><h3>Day #18 — QuiBL analysis: Understand the pros and cons of the methodology.</h3><h4>[How to estimate individual locus maximum likelihood trees, parsimony principle, min reticulations]</h4><h3>Day #19 — QuiBL analysis: Focus on Recombination</h3><h4>[Relaxed Clustering Algorithm, non- recombining neutral loci, intragenic recombination, Why does deletion reduce recombination]</h4><h3>Day #20 — QuiBL analysis: triplet gene test + selective sweeps</h3><h4>[selective sweeps, effective population size, Neighbour-Joining algorithm]</h4><h3>Day #21 — QuiBL Analysis: Weakly deleterious alleles</h3><h4>[Deleterious alleles in the context of domestication, inbreeding, and selection, deleterious variation, natural selection, genetic load,</h4><h3>Day #22 — QuiBL Analysis: Deleterious Genetic Variation</h3><h4>[Genes with high network connectivity, topological matrix (TOM), how does recombination rate affect deleterious genetic variation, Inbreeding Coefficient]</h4><h3>Key Insights</h3><h4>Natural selection will <strong>push beneficial alleles to higher frequency</strong> and deleterious alleles to lower frequency</h4><p>How does this claim affect the Introgression and ILS process?</p><p>If <strong>genetic drift is a random selection, then how do you code this “randomness” into msprime?</strong></p><p>From a very very old paper, but this paper that I analysed last week: Efficient ancestry and mutation simulation with msprime 1.0, did reference the following paper:</p><p>Incorporating natural selection into the coalescent is problematic because the relationship between ancestors and descendants depends on the allelic type at the selected site (Kaplan et al., 1988; Neuhauser and Krone, 1997)</p><p>I will examine this paper to see if it has any insights about natural selection</p><blockquote>Incorporating natural selection into the coalescent is problematic because the relationship between ancestors and descendants depends on the allelic type at the selected site (Kaplan et al., 1988; Neuhauser and Krone, 1997)</blockquote><p>However, by first simulating the population frequency of the selected allele through time (termed the trajectory) a genealogical ∗To whom correspondence should be addressed. history may be generated conditional upon this trajectory (Fig. 1).</p><p><strong>Most past approaches have either simulated the trajectory forward in time or used deterministic approximations.</strong></p><h4>What are the drawbacks of these approaches?</h4><p>Both approaches have their drawbacks, particularly when selection is weak;</p><ul><li>forward simulation can be inefficient because <strong>it is not possible to condition upon the present day population frequency</strong></li><li>deterministic approximations can <strong>distort the effect of selection</strong> <strong>(e.g. see Barton and Etheridge, 2004).</strong></li><li>In contrast, SelSim uses a backwards in time stochastic model, by exploiting reversibility arguments, to simulate trajectories back from the current day population frequency (Griffiths, 2003). Slatkin (2001) uses a similar method in order to simulate natural selection in a variable population size for a non-recombining region. However in the model implemented here the<strong> population size is constant</strong>, and the trajectory is correctly time-reversed meaning that there is no need for weighting or rejection of trajectories.</li></ul><p>I dived into <strong>Barton and Etheridge, 2004 mentioned above:</strong></p><h3>The Effect of Selection on Genealogies</h3><p>Barton, N. H., &amp; Etheridge, A. M. (2004). The effect of selection on genealogies. <em>Genetics</em>, <em>166</em>(2), 1115–1131. <a href="https://doi.org/10.1534/genetics.166.2.1115">https://doi.org/10.1534/genetics.166.2.1115</a></p><h4>What are the main claims made?</h4><ol><li>the change in properties such as moments of coalescence times is equal to the covariance between those properties and the fitness of the sample of genes.</li><li>The distribution of coalescence times differs substantially between allelic classes, even in the absence of selection.</li><li>However, the average coalescence time between randomly chosen genes is insensitive to the current allele frequency and is affected significantly by purifying selection only if deleterious mutations are common and selection is strong.<strong> Balancing selection increases mean coalescence times</strong>, but the effect becomes large only when mutation rates between allelic classes are low and when selection is extremely strong.</li></ol><blockquote>Our analysis supports previous simulations that show that selection has surprisingly little effect on genealogies. Moreover, small fluctuations in allele frequency due to random drift can greatly reduce any such effects. This will make it difficult to detect the action of selection from neutral variation alone.</blockquote><h4>Why does<strong> balancing selection increase mean coalescence times?</strong></h4><p>This question lead me to explore the following paper that was published recently:</p><p>Meike J Wittmann and others, Modeling the genetic footprint of fluctuating balancing selection: from the local to the genomic scale, <em>Genetics</em>, Volume 223, Issue 4, April 2023, iyad022, <a href="https://doi.org/10.1093/genetics/iyad022">https://doi.org/10.1093/genetics/iyad022</a></p><h3><strong>Modeling the genetic footprint of fluctuating balancing selection: from the local to the genomic scale</strong></h3><h4>What are the main claims of this paper?</h4><ul><li>They develop analytical approximations based on coalescent theory to characterize the genetic footprint of a complex, but potentially common type of natural selection: balancing selection with seasonally fluctuating allele frequencies.</li><li>Natural selection not only affects the actual loci under selection but also leaves “footprints” in patterns of genetic variation in linked genetic regions. This offers exciting opportunities for inferring selection and for understanding the processes shaping levels of genetic variation in natural populations.</li><li>They show analytically and confirm with stochastic simulations, seasonal allele frequency fluctuations can have important (and partly unexpected) consequences for the genetic footprint of balancing selection. Fluctuating balancing selection generally leads to an increase in genetic diversity close to the selected site, the effect of balancing selection, but<strong> reduces diversity further away from the selected site</strong>, which is a consequence of the allele-frequency fluctuations effectively producing <strong>recurrent bottlenecks of allelic backgrounds</strong>.</li><li>If many loci in the genome are simultaneously under fluctuating balancing selection this can lead to substantial genome-wide reductions in genetic diversity, even when <strong>allele-frequency fluctuations are small and local footprints are difficult to detect.</strong> Thus, together with genetic drift, <strong>selective sweeps </strong>and <strong>background selection</strong>, fluctuating selection could be a major force shaping levels of genetic diversity in natural populations.</li></ul><p>[selective sweeps were explored in the prev article]</p><blockquote>The genetic footprints of positive selection (hard and soft selective sweeps) and purifying selection (background selection) have been characterized in detail in numerous studies (for recent reviews, see Hermisson and Pennings 2017; Charlesworth and Jensen 2021</blockquote><p>This lead me to the question — What are hard vs soft selective sweeps? which I learned is a huge question in itself.</p><blockquote>This lead me to explore the following paper:</blockquote><p>Harris, A. M., Garud, N. R., &amp; DeGiorgio, M. (2018). Detection and Classification of Hard and Soft Sweeps from Unphased Genotypes by Multilocus Genotype Identity. <em>Genetics</em>, <em>210</em>(4), 1429–1452. <a href="https://doi.org/10.1534/genetics.118.301502">https://doi.org/10.1534/genetics.118.301502</a></p><h3>What are hard vs soft selective sweeps?</h3><p>In the case of a hard selective sweep, a <strong>single adaptive haplotype</strong> rises to high population frequency, whereas multiple adaptive haplotypes sweep through the population simultaneously in a soft sweep, producing distinct patterns of genetic variation in the vicinity of the selected site.</p><ul><li>Measures of expected haplotype homozygosity have previously been used to detect sweeps in multiple study systems.</li><li>However, these methods are formulated for phased haplotype data, typically unavailable for nonmodel organisms, and some may have reduced power to detect soft sweeps due to their increased genetic diversity relative to hard sweeps.</li></ul><h4>What is a <strong>single adaptive haplotype?</strong></h4><ul><li>Haplotype assembly is the process of assigning the different alleles of the variants covered by mapped sequencing reads to the two haplotypes of the genome of a human individual.</li><li>Long reads, which are nowadays cheaper to produce and more widely available than ever before, have been used to reduce the fragmentation of the assembled haplotypes since their ability to span several variants along the genome. These long reads are also characterized by a high error rate, an issue which may be mitigated, however, with larger sets of reads, when this error rate is uniform across genome positions. Unfortunately, current state-of-the-art dynamic programming approaches designed for long reads deal only with limited coverages.</li></ul><h4>What is temporarily fluctuating selection?</h4><ul><li>Many natural populations experience bouts of strong selection with frequent, more or less regular changes in the direction of selection (Moorcroft <em>et al.</em> 1996; Siepielski <em>et al.</em> 2009; Bell 2010; Nicolaus <em>et al.</em> 2016; Thurman and Barrett 2016).</li><li>At the genetic level, such fluctuating selection can cause rapid changes in allele frequencies <strong>over short time scales</strong> (Abdul-Rahman <em>et al.</em> 2021; Garcia-Elfring <em>et al.</em> 2021; Rudman <em>et al.</em> 2022).</li></ul><p>[ explore these papers ^ that were published recently]</p><p>Continuing from the previous paper:</p><h4>How can fluctuating selection be observed?</h4><ul><li>Persistent fluctuating selection at a locus can only be observed if <strong>polymorphism is maintained</strong>. Several plausible mechanisms for the long-term maintenance of genetic variation due to selection exist. In particular, fluctuating selection itself can maintain genetic polymorphism under appropriate conditions (e.g. Haldane and Jayakar 1963; Gillespie 1973, 1978; Yi and Dean 2013; Wittmann <em>et al.</em> 2017; Park and Kim 2019).</li><li>Alternatively, it could act in conjunction with other forces maintaining variation, such as<strong> negative frequency-dependent selection.</strong></li></ul><h4>What is <strong>negative frequency-dependent selection?</strong></h4><ul><li>Negative frequency-dependent selection has the potential to maintain polymorphisms within populations because relatively rare variants have a selective advantage over more common variants and thus tend to increase in frequency and avoid local extinction.</li><li>Negative frequency-dependent selection models are a narrow subset of a broad field of models describing the impact of<strong> variant frequency on natural selection.</strong></li><li>many regions of the genome show <strong>low rates of recombination and genetic variation in such regions (i.e., supergenes) may in theory be upheld by frequency dependent selection.</strong></li></ul><p><strong><em>Explore: what other models describe this impact?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*81r7brMmBOINSonb.jpg" /><figcaption>As the selective value of the allele is conditioned on the absolute abundance — but not the relative abundance — of the allele, it is unlikely that negative frequency-dependent selection is the evolutionary process underlying the polymorphism commonly observed at the HA locus. More likely, <strong>the common variant is changing its own environment </strong>such that there are few susceptible hosts in which new infections can establish, but it is not affecting the environment of alternative variants.</figcaption></figure><blockquote>go deeper into this! — how does “<strong>the common variant change its own environment?”</strong></blockquote><h4>What is the relationship between negative frequency-dependent selection and recombination?</h4><blockquote>many regions of the genome show low rates of recombination and genetic variation in such regions (i.e., supergenes) may in theory be upheld by frequency dependent selection.</blockquote><p>Explore this more tomorrow!</p><h3>How can we consider the spatial component of genetic variation?</h3><p>To answer this question, I explored this paper:</p><p>Petr, M., Haller, B. C., Ralph, P. L., &amp; Racimo, F. (2022). <em>slendr</em>: a framework for spatio-temporal population genomic simulations on geographic landscapes. <em>BioRxiv (Cold Spring Harbor Laboratory)</em>. <a href="https://doi.org/10.1101/2022.03.20.485041">https://doi.org/10.1101/2022.03.20.485041</a></p><h4>What methodological gap does this paper fill?</h4><ul><li>One of the goals of population genetics is to understand how evolutionary forces shape patterns of genetic variation over time. However, because populations evolve across both time and space, most evolutionary processes also have an important spatial component, acting through phenomena such as isolation by distance, local mate choice, or uneven distribution of resources.</li><li>The spatial dimension in population genetics is often neglected, partly due to the lack of tools specifically designed for building and evaluating complex spatio-temporal population genetic models.</li></ul><h4>What framework does the paper use?</h4><ul><li>They simulate spatially-explicit genomic data, implemented in a new R package called <em>slendr</em> (<a href="http://www.slendr.net/">www.slendr.net</a>), which leverages a SLiM simulation back-end script bundled with the package.</li><li>With this framework, the users can programmatically and visually encode spatial population ranges and their temporal dynamics (i.e., population displacements, expansions, and contractions) either on real Earth landscapes or on abstract custom maps, and schedule splits and gene-flow events between populations using a straightforward declarative language.</li><li>Additionally, <em>slendr</em> can simulate data from traditional, non-spatial models, either with SLiM or using an alternative built-in coalescent <em>msprime</em> back end. Together with its R-idiomatic interface to the <em>tskit</em> library for tree-sequence processing and analysis, <em>slendr</em> opens up the possibility of performing efficient, reproducible simulations of spatio-temporal genomic data entirely within the R environment, leveraging its wealth of libraries for geospatial data analysis, statistics, and visualization.</li></ul><h3>Direction For Tomorrow</h3><p>Continue today’s synthesis + draw key insights from last week’s research.</p><p>+ continue analysing this 2023 paper:</p><p>Meike J Wittmann and others, Modeling the genetic footprint of fluctuating balancing selection: from the local to the genomic scale, <em>Genetics</em>, Volume 223, Issue 4, April 2023, iyad022, <a href="https://doi.org/10.1093/genetics/iyad022">https://doi.org/10.1093/genetics/iyad022</a></p><p>+ deepen understaning of negative frequency-dependent selection, especially it’s relationship with <strong>recombination</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76c6e8e99f57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #22 — QuiBL Analysis]]></title>
            <link>https://medium.com/@learningthoughts/day-22-quibl-analysis-8be92feaba3e?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/8be92feaba3e</guid>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Sat, 05 Aug 2023 02:04:51 GMT</pubDate>
            <atom:updated>2023-08-05T02:34:53.279Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #22 — QuiBL Analysis</h3><h4>QuiBL [6/6] — Deleterious Genetic Variation</h4><p>My goal for today is to explore the remaining papers that I found yesterday.</p><p>Zoe Lye and others, Deleterious Mutations and the Rare Allele Burden on Rice Gene Expression, <em>Molecular Biology and Evolution</em>, Volume 39, Issue 9, September 2022, msac193, <a href="https://doi.org/10.1093/molbev/msac193">https://doi.org/10.1093/molbev/msac193</a></p><h3>What is deleterious genetic variation?</h3><h4>What does this paper explore?</h4><ol><li>They explore the phenomena of deleterious genetic variation</li><li>Deleterious genetic variation is maintained in populations at low frequencies. Under a model of stabilizing selection, rare (and presumably deleterious) genetic variants are associated with<strong> increase or decrease in gene expression</strong> from some <strong>intermediate optimum</strong>.</li><li>Key ideas in their analysis: single nucleotide polymorphisms, insertion/deletion mutations, and structural variants</li></ol><h4>What are the main conclusions from the paper?</h4><ol><li>They found a stronger association between rare variants and gene expression outliers under the stress condition.</li><li>They also show an association of the strength of this rare variant effect with linkage, gene expression levels, network connectivity, local recombination rate, and fitness consequence scores, consistent with the stabilizing selection model of gene expression.</li></ol><h4>How can one predict the the relative deleteriousness of mutations?</h4><ul><li>In coding sequences, one can estimate the functional effects of a coding mutation based on how the mutation affects protein structure (Ng and Henikoff 2003), while in non-coding sequences, deleteriousness is often estimated based on <strong>sequence conservation</strong> (Davydov et al. 2010; Kono et al. 2018).</li><li>The<strong> rarity of polymorphisms in a population </strong>can also serve as a signal for deleteriousness, given that variants can be held at low frequency by selection and de novo mutations are generally weakly deleterious (Loewe and Hill 2010; Gibson 2012). Rare variants are associated with stronger <strong>phenotypic effects</strong> compared to common variants (Marouli et al. 2017; Bloom et al. 2019).</li></ul><h4>What is the model of gene expression evolution by stabilizing selection?</h4><blockquote>Under this model, <em>gene expression</em> is under selection for an optimum level, and deleterious variants are predicted to <strong>perturb expression away from this optimum</strong> (Bedford and Hartl 2009; Hodgins-Davis et al. 2015; Hill et al. 2021). Indeed, gene expression patterns are generally conserved across species, although not all gene classes are conserved to the same extent (Lemos et al. 2005).</blockquote><h4>What theories model the extent of stabalizing selection on gene expression?</h4><p>This extent is uncertain when using conventional <strong>eQTL approaches</strong>, the ability to identify an eQTL varies at different allele frequencies and low frequency eQTLs tend to have inflated effect sizes (Tung et al. 2015; Huang et al. 2018; Glassberg et al. 2019).</p><h4>BUT</h4><p>Studies do report an association between low allele frequencies and stronger effect sizes as evidence of stabilizing selection on gene expression (Li et al. 2014); this is observed even after taking ascertainment bias and allele frequencies into account (Josephs et al. 2015; Brown and Kelly 2022).</p><p>Glassberg et al. also reported a greater contribution of rare variants to allele-specific expression and finds<strong> fewer regulatory variants</strong> around dosage-sensitive genes (Glassberg et al. 2019).</p><h4>What is a <strong>regulatory variant?</strong></h4><blockquote>Variants within non-coding genomic regions can greatly affect disease. In recent years, increasing focus has been given to these variants, and how they can alter regulatory elements, such as enhancers, transcription factor binding sites and DNA methylation regions. Such variants can be considered regulatory variants.</blockquote><h3>Unexplored area to look into:</h3><blockquote>The stabilizing selection model for gene expression variation makes other predictions on the strength of the effects of rare sequence variants on gene expression at functional loci, <strong>but these have remained unexplored.</strong></blockquote><p>For example, it would be expected that selection against deleterious mutations would be stronger in highly expressed genes as well as genes with high network connectivity (Garcia-Alonso et al. 2014; Kremling et al. 2018; Hämälä and Tiffin 2020).</p><p>These loci would thus be expected to be depleted of deleterious mutations and display a weaker effect of rare variants on gene expression variation. <strong>This should also the case for genes in regions of high recombination,</strong> which are expected to have reduced numbers of rare deleterious mutaions due to the <strong><em>Hill–Robertson effect</em></strong> (Hill and Robertson 1966; Comeron et al. 2008).</p><h4>From the previous paragaph, what is the Hill–Robertson effect?</h4><p>The ‘Hill–Robertson (HR) effect’ describes that linkage between sites under selection will reduce the overall effectiveness of selection in finite populations.</p><ul><li>Most models of linkage and selection forecast differences in effectiveness of selection between chromosomes or chromosomal regions involving a number of genes.</li><li>The abundance and physical clustering of weakly selected mutations across genomes, however, justify the investigation of HR effects at a very local level and we pay particular attention to linkage effects among selected sites of the same gene.</li><li>Overall, HR effects caused by weakly selected mutations predict differences in effectiveness of selection between genes that differ in exon–intron structures and across genes. Under this scenario, introns might play an advantageous role reducing intragenic HR effects.</li></ul><h3>What are genes with high network connectivity?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o0Ce_P-1Zsmge2zRZvU8Xg.png" /></figure><p>This lead me to explore the following paper:</p><p>Kim, S. S., Dai, C., Hormozdiari, F., van de Geijn, B., Gazal, S., Park, Y., O’Connor, L., Amariuta, T., Loh, P. R., Finucane, H., Raychaudhuri, S., &amp; Price, A. L. (2019). Genes with High Network Connectivity Are Enriched for Disease Heritability. <em>American journal of human genetics</em>, <em>104</em>(5), 896–913. <a href="https://doi.org/10.1016/j.ajhg.2019.03.020">https://doi.org/10.1016/j.ajhg.2019.03.020</a></p><blockquote>A gene regulatory network (GRN) describes biological interactions among genes and provides a systematic understanding of cellular signaling and regulatory processes. It depicts how a set of genes interact with each other to form a functional module and how different gene modules are related.</blockquote><blockquote>A typical GRN approximates a scale-free network topology with a few highly connected genes (i.e. hub genes) and many poorly connected nodes [<a href="https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-018-2560-0#ref-CR1">1</a>]. These hub genes are master regulators in a gene network, and usually play essential roles in a biological system. Investigations of GRN can facilitate the systematic functional annotation of genes [<a href="https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-018-2560-0#ref-CR2">2</a>] and help identify the hub genes, which may lead to potential clinical applications [<a href="https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-018-2560-0#ref-CR3">3</a>].</blockquote><p>Interesting application in this paper:</p><h4>How to Construct a Co-Expression Network?</h4><ul><li>Weighted gene co-expression network analysis package was necessary for the co-expression network construction (<a href="https://www.frontiersin.org/articles/10.3389/fphys.2019.01081/full#B35">Langfelder and Horvath, 2008</a>).</li><li>First, the function goodSamplesgenes was used to remove unqualified genes and samples, and Z.k &lt; −2.5 was excluded from subsequent studies. Then, function pickSoftThreshold was used to choose an appropriate soft-thresholding power (β) based on a scale-free topology criterion. The weighted adjacency matrix was constructed using the soft-thresholding power.</li><li><strong>The relationship between one gene and all other ones in the analysis was incorporated, and the adjacency matrix was transformed into the topological matrix (TOM)</strong> (<a href="https://www.frontiersin.org/articles/10.3389/fphys.2019.01081/full#B73">Yip and Horvath, 2007</a>).</li><li>The genes demonstrated hierarchical clustering using the flashClust function, according to the TOM-based dissimilarity (1-TOM) measure. After hierarchical clustering, highly interconnected genes were assigned to the same module (<a href="https://www.frontiersin.org/articles/10.3389/fphys.2019.01081/full#B57">Ravasz et al., 2002</a>).</li></ul><h4>How does a <strong>topological matrix (TOM) work?</strong></h4><p>ref: <a href="https://seidr.readthedocs.io/en/devel/source/algorithms/tomsimilarity.html#:~:text=The%20toplogical%20overlap%20matrix%20(TOM,if%20they%20share%20common%20neighbourhoods.">https://seidr.readthedocs.io/en/devel/source/algorithms/tomsimilarity.html#:~:text=The%20toplogical%20overlap%20matrix%20(TOM,if%20they%20share%20common%20neighbourhoods.</a></p><p>The toplogical overlap matrix (TOM) is the similarity measure implemented by WGCNA <a href="https://seidr.readthedocs.io/en/devel/source/references/references.html#langfelder2008">[Langfelder2008]</a>. It calculates a correlation matrix from the expression data, calculates a soft threshold and assigns two genes a high topological overlap if they share common neighbourhoods.</p><p>An important question is <strong>whether it is biologically meaningful to encode gene co-expression using binary information (connected=1, unconnected=0). </strong>A general framework for ‘soft’ thresholding that assigns a connection weight to each gene pair. This leads us to the discussion of the notion of a weighted gene co-expression network.</p><p>[^^ explore how this library works ]</p><p><em>Exploring this high network connectivity lead me to explore this other paper:</em></p><blockquote>Kim, Samuel S, et al. <em>Genes with High Network Connectivity Are Enriched for Disease Heritability</em>. 13 Oct. 2018, <a href="https://doi.org/10.1101/442582.">https://doi.org/10.1101/442582.</a> Accessed 5 Aug. 2023.</blockquote><h3>Genes with high network connectivity are enriched for disease heritability</h3><h4>What are the 3 questions that the paper seeks to answer?</h4><ol><li>First, what is the contribution of disease-associated gene pathways (<a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-11"><strong>Segrè et al., 2010</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-37"><strong>Pers et al., 2015</strong></a>; de Leeuw et al., <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-43"><strong>2015</strong></a>, <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-52"><strong>2016</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-59"><strong>Boyle et al., 2017</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-69"><strong>Pardiñas et al., 2018</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-71"><strong>Yoon et al., 2018</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-72"><strong>Wray et al., 2018</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-73"><strong>Savage et al., 2018</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-76"><strong>Zhu and Stephens, 2018</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-78"><strong>Nagel et al., 2018</strong></a>) to disease heritability, irrespective of network connectivity.</li><li>Second, what is the contribution of genes with high network connectivity in known gene networks (<a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-47"><strong>Greene et al., 2015</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-57"><strong>Saha et al., 2017</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-67"><strong>Li et al., 2017</strong></a>; <a href="https://www.biorxiv.org/content/10.1101/442582v1.full#ref-68"><strong>Sonawane et al., 2017</strong></a>) to disease heritability.</li><li>Third, what is the contribution of genes with high network connectivity to disease-associated gene pathways to disease heritability. We hypothesized that genes with high network connectivity to disease-associated gene pathways would be more informative than gene pathways or gene networks alone, as information in gene networks is orthogonal to information in gene pathways.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*9TmDAoxe9IIzaHZt.gif" /><figcaption>reports of overlaps and correlations</figcaption></figure><p>[** explore this figure more]</p><p>This lead me to explore this other paper, with a central claim that a <strong>reduction of fitness due to deleterious mutations imposes a limit to adaptive evolution.</strong></p><h3><strong>Deep Dive: Biased Gene Conversion Constrains Adaptation in <em>Arabidopsis thaliana</em></strong></h3><p>Tuomas Hämälä , Peter Tiffin, Biased Gene Conversion Constrains Adaptation in <em>Arabidopsis thaliana</em>, <em>Genetics</em>, Volume 215, Issue 3, 1 July 2020, Pages 831–846, <a href="https://doi.org/10.1534/genetics.120.303335">https://doi.org/10.1534/genetics.120.303335</a></p><h4>What are the main claims of this paper?</h4><ol><li>The ancestral <em>vs.</em> derived status of segregating alleles suggests that GC-biased gene conversion, a <strong>recombination-associated process</strong> that increases the frequency of G and C nucleotides regardless of their fitness effects, shapes sequence patterns in <em>A. thaliana</em>.</li><li><strong>Through estimation of mutational effects</strong>, they present evidence that biased gene conversion hinders the purging of deleterious mutations and contributes to a genome-wide signal of decreased efficacy of selection.</li><li>They show that even predominantly selfing taxa are susceptible to biased gene conversion, suggesting that it may constitute an important constraint to adaptation among plant species.</li></ol><h4>How is this paper relevant to my research about introgression and ILS?</h4><ul><li>They focus on the effects of <strong>recombination</strong> and <strong>mutation</strong>— this is central to the ILS and introgression simulations</li></ul><h4>How does recombination rate affect deleterious genetic variation?</h4><ul><li>Both theoretical (Muller 1964; Hill and Robertson 1966; Felsenstein 1974; Hartfield and Otto 2011) and empirical (Chun and Fay 2011; Zhang <em>et al.</em> 2016) studies also have established that recombination rate can modulate the strength of purifying selection, so that <strong>deleterious alleles are more efficiently removed in regions of high recombination.</strong></li><li>Moreover, features such as gene-body methylation and chromatin remodeling may be associated with genetic load, as methylated cytosines are known to have elevated mutation rate (Bird 1980; Weng <em>et al.</em> 2019), and accessible chromatin regions, indicative of <em>cis</em>-regulatory elements (Klemm <em>et al.</em> 2019), show high sequence conservation between species (Rodgers-Melnick <em>et al.</em> 2016; Lu <em>et al.</em> 2019).</li></ul><h4>But why are <strong>deleterious alleles more efficiently removed in regions of high recombination?</strong></h4><ul><li>This can be explained by <strong>GC-biased gene conversion (gBGC)</strong></li></ul><p><strong>Sidetrack: What is GC-biased gene conversion (gBGC)?</strong></p><blockquote><em>GC-biased gene conversion (gBGC) is a process that tends to increase the GC content of recombining DNA over evolutionary time and is thought to explain the evolution of GC content in mammals and yeasts. </em><strong><em>Evidence for gBGC outside these two groups is growing but is still limited</em>.</strong></blockquote><ul><li>GC-biased gene conversion (gBGC) is expected to influence genetic load.</li><li>gBGC takes place during meiotic recombination, when GC/AT heterozygotes occurring within a heteroduplex DNA are preferentially fixed to GC (as opposed to AT) nucleotides (Marais 2003; Galtier and Duret 2007; Mugal <em>et al.</em> 2015).</li><li>gBGC increases the frequency of GC alleles regardless of their fitness effects, which can lead to an <strong>accumulation of deleterious mutations</strong> (Bengtsson 1990; Glémin 2010). Indeed, evidence for increased genetic load due to gBGC has been found in the human genome (Necşulea <em>et al.</em> 2011; Lachance and Tishkoff 2014). The increased frequency of GC alleles, as well as the decreased frequency of AT alleles, may also give the appearance of selection, leading to a <strong>biased view of the selection landscape</strong></li><li>So what is the link to recombination?</li></ul><blockquote><strong>By increasing homozygosity, selfing also weakens the effects of recombination on allelic diversity (Nordborg 2000), which may run counter to the expectation that regions of high recombination accumulate few deleterious mutations (Hartfield and Otto 2011).</strong></blockquote><h4>What causes increasing homozygosity?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*NM4WfvAclL3YkmcqO5oDCw.png" /></figure><h4><strong>Inbreeding increases homozygosity</strong></h4><p>Inbreeding (mating between close relatives) increases offspring homozygosity and usually results in reduced fitness. In homozygous genotypes, recessive deleterious alleles are unmasked and benefits of heterozygosity in overdominant loci are lost (Charlesworth and Willis 2009).</p><ul><li>two (or more) alleles in the population for a gene, the frequency of AA and aa will increase, and Aa and aA will decrease. If a dog is homozygous for AA, then it can ONLY pass the A allele on to its offspring — it is “fixed” for the A gene.</li><li>The greater the degree of homozygosity of an animal’s genome, the more uniform its offspring will be because they will all get the same allele for many genes from that parent.</li><li>If you are trying to breed for specific traits, this is a huge advantage. Variation among litter mates will be reduced, and the inbred parent will be said to be “prepotent” — it creates offspring with a recognizable “look”.</li></ul><blockquote><em>Increased individual homozygosity may contribute to inbreeding depression if homozygous individuals have problems in withstanding the trials of life, such as</em><strong><em> parasite resistance</em></strong><em> (Coltman et al., 1999) or competition for mates (Hoffman et al., 2007), or show poor lifetime performance in terms of fecundity, longevity or offspring quality (Huisman et al., 2016).</em></blockquote><h4>What is Inbreeding Coefficient?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/0*VPdinsOHIRx-Bn_I.png" /><figcaption>When the COI is zero, fitness is at its maximum and prepotency and uniformity are at their lowest. As inbreeding increases, variation in the offspring goes down but so does fitness. Ref: <a href="https://www.instituteofcaninebiology.org/blog/the-costs-and-benefits-of-inbreeding#:~:text=The%20greater%20the%20degree%20of,this%20is%20a%20huge%20advantage">https://www.instituteofcaninebiology.org/blog/the-costs-and-benefits-of-inbreeding#:~:text=The%20greater%20the%20degree%20of,this%20is%20a%20huge%20advantage</a>.</figcaption></figure><blockquote>Inbreeding reduces fitness (the red line), and the decrement in fitness is proportional to the degree of inbreeding. This reduced fitness is called “inbreeding depression”, which is a catch-all for all things that play a role in reducing fitness. If you start with an outbred plant (so high heterozygosity) that self-pollinates (self-fertilization, so we don’t have to worry about the genetics of the mate), germination of the seeds produced will be reduced. As you continue to self-pollinate successive generations, the reduction in germination is proportional to the inbreeding coefficient and therefore the amount of homozygosity (blue line).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/0*CDuRv9nKPhqa2U_d.png" /></figure><h4>How much inbreeding is too much?</h4><blockquote>The rule of thumb for sustainable breeding of both wild and domestic animals is to keep inbreeding below 5%, and to consider 10% an upper limit for a population. There might be occasional animals that are much higher than this (for example, in maintaining multiple herds to use for outcrossing within a line), but when the population average goes higher than about 10% things begin to go downhill.</blockquote><blockquote>As fertility goes down and litters get smaller, there are fewer animals born each generation, and those that are have an increased risk of genetic disorders, shorter lifespans, and general lack of vigor.</blockquote><h3>Reflection from Today</h3><blockquote>How to view knowledge with childlike wonder?</blockquote><h3>Direction for Tomorrow</h3><p>Piece together key insights from the previous week — to apply into QuiBL.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8be92feaba3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #21 — QuiBL Analysis:]]></title>
            <link>https://medium.com/@learningthoughts/day-21-quibl-analysis-56e16b9cf2d8?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/56e16b9cf2d8</guid>
            <category><![CDATA[genetics]]></category>
            <category><![CDATA[computational-biology]]></category>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Fri, 04 Aug 2023 05:37:18 GMT</pubDate>
            <atom:updated>2023-08-05T02:03:51.539Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #21 — QuiBL Analysis:</h3><h4>QuiBL [5/6] — Understand weakly deleterious alleles</h4><p>My goal for today is to understand <strong>weakly deleterious alleles</strong> and the research that has been conducted.</p><h3>What are weakly deleterious alleles?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dl0WuY2ulPvslV0AHb-Asg.png" /><figcaption>ref: the main paper <a href="https://www.science.org/doi/10.1126/science.aaw2090">https://www.science.org/doi/10.1126/science.aaw2090</a></figcaption></figure><p>This question lead me to explore these 2 papers:</p><ol><li>Bosse, M., Megens, H. J., Derks, M. F. L., de Cara, Á. M. R., &amp; Groenen, M. A. M. (2018). Deleterious alleles in the context of domestication, inbreeding, and selection. <em>Evolutionary applications</em>, <em>12</em>(1), 6–17. <a href="https://doi.org/10.1111/eva.12691">https://doi.org/10.1111/eva.12691</a></li><li>Derks, Martijn F. L., and Marije Steensma. “Review: Balancing Selection for Deleterious Alleles in Livestock.” <em>Frontiers in Genetics</em>, vol. 12, 3 Dec. 2021, <a href="https://doi.org/10.3389/fgene.2021.761728.">https://doi.org/10.3389/fgene.2021.761728.</a> Accessed 25 Feb. 2022.</li><li>Zoe Lye and others, Deleterious Mutations and the Rare Allele Burden on Rice Gene Expression, <em>Molecular Biology and Evolution</em>, Volume 39, Issue 9, September 2022, msac193, <a href="https://doi.org/10.1093/molbev/msac193">https://doi.org/10.1093/molbev/msac193</a></li><li>Price, M. N., &amp; Arkin, A. P. (2015). Weakly Deleterious Mutations and Low Rates of Recombination Limit the Impact of Natural Selection on Bacterial Genomes. <em>mBio</em>, <em>6</em>(6), e01302–e1315. <a href="https://doi.org/10.1128/mBio.01302-15">https://doi.org/10.1128/mBio.01302-15</a></li></ol><p><strong>Deleterious = causing harm or damage.</strong></p><h3>First paper analysis — Deleterious alleles in the context of domestication, inbreeding, and selection.</h3><h4>What does harmful mutations do?</h4><p>Each individual has a certain number of harmful mutations in its genome. These mutations can lower the fitness of the individual carrying them, dependent on their dominance and selection coefficient.</p><h4>What affects the occurrence of these mutations?</h4><p>Effective population size, selection, and admixture are known to affect the occurrence of such mutations in a population. The relative roles of demography and selection are a key in understanding the process of adaptation. These are factors that are potentially influenced and confounded in domestic animals.</p><h4>What is their main hypothesis?</h4><p>They hypothesise that the s<strong>eries of events of bottlenecks, introgression, and strong artificial selection associated with domestication <em>increased mutational load </em>in domestic species.</strong></p><h4>What are the main challenges in understanding this phenomena?</h4><ul><li>Mutational load is hard to quantify, so there are very few studies available revealing the relevance of evolutionary processes.</li><li>The precise role of artificial selection, bottlenecks, and introgression in further<strong> increasing the load of deleterious variants</strong> in animals in breeding and conservation programmes remains unclear.</li></ul><h4>How to identify harmful mutations?</h4><ul><li>A popular approach to identify harmful mutations that are (almost) lethal is to <strong>screen populations for the absence of specific variants in homozygous state</strong>.</li><li>If populations contain heterozygous carriers of such variants, homozygotes would be expected based on allele frequencies and carrier–carrier matings (Derks et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0020">2017</a>; Pausch et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0066">2015</a>; VanRaden, Olson, Null, &amp; Hutchison, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0076">2011</a>).</li><li>This method relies on the biological implications of the lethality of a variant — resulting in an absence of the allele in homozygous state. Depending on the frequency of the lethal allele in the population, large sample size is often required to identify such alleles (Derks et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0020">2017</a>). Therefore, most of the studies implementing this depletion of homozygotes approach use<strong> large panels of genotyped animals</strong>.</li></ul><h4>What is an alternative approach?</h4><ul><li>To predict deleteriousness from the<strong> functionality of a mutation</strong>. Next‐generation sequencing has opened up exciting possibilities to actually pinpoint potentially harmful mutations in individual genomes (Henn, Botigue, Bustamante, Clark, &amp; Gravel, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0032">2015</a>; Li et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0046">2010</a>). The deleteriousness of a variant can be predicted based on <strong>its effect on gene functioning (</strong>such as protein changing, stop‐gain, stop‐lost), for example by assessing the degree of conservation of an amino acid residue across species (Cooper et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0015">2005</a>; Kumar, Henikoff, &amp; Ng, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0044">2009</a>; Wang, Li, &amp; Hakonarson, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0077">2010</a>).</li><li>The implementation of multiple genome annotations, such as specific gene function or regulatory elements, has proven successful for in silico predictions of the effect of disease causing mutations in humans (Kircher, Witten, Jain, B. J. O’Roak, &amp; Shendure, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0042">2014</a>). These techniques have recently been applied to estimate genetic load in human populations and domesticated species (Charlier et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0012">2016</a>).</li></ul><h4>What are the limitations of these approaches?</h4><p>They rely on predictions that mostly have not been validated with experiments. High‐impact variation may very well not be lethal in a domestic setting and could even be perceived beneficial if they serve a particular breeding goal.</p><h4>What role do bottlenecks play in this phenomena?</h4><p>Summary: bottlenecks<strong> INCREASE </strong>mutational load</p><ul><li>Past population bottlenecks have been proposed to<strong> drive mutational load in human populations </strong>(Li et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0046">2010</a>; Lynch et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0052">2016</a>), but the nature and strength of the impact is still debated (Henn et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0032">2015</a>; Lohmueller, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0048">2014</a>; Simons &amp; Sella, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0073">2016</a>; Simons, Turchin, Pritchard, &amp; Sella, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0074">2014</a>).</li><li>Domestication of plants and animals has a major impact on the domesticated species in terms of <strong>effective population size and selection pressure. </strong>This in turn could negatively affect the mutational load and cause genetic erosion (diminishing gene pool). In the context of inbreeding, lethal variants will quickly be purged from small populations (Charlier et al., <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0012">2016</a>), <strong>but the frequency of slightly deleterious mutations is expected to rise as natural selection is less effective (Kimura, </strong><a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6304688/#eva12691-bib-0041"><strong>1963</strong></a><strong>).</strong></li></ul><blockquote>But ^ is from a 1963 paper &gt; find more recent research papers to back this claim about why <strong>deleterious mutations is expected to rise</strong>.</blockquote><h3>Why is the frequency of <strong>deleterious mutations expected to rise?</strong></h3><p>And to that end of that argument: why is natural selection less effective?</p><p><strong>This lead me to explore this other recent paper:</strong></p><p>Robinson, J., Kyriazis, C. C., Yuan, S. C., &amp; Lohmueller, K. E. (2023). Deleterious Variation in Natural Populations and Implications for Conservation Genetics. <em>Annual review of animal biosciences</em>, <em>11</em>, 93–114. <a href="https://doi.org/10.1146/annurev-animal-080522-093311">https://doi.org/10.1146/annurev-animal-080522-093311</a></p><h4>What are the main goals of this paper?</h4><ol><li>Clarify how deleterious variation can be quantified and studied in natural populations.</li><li>Discuss how different demographic factors, such as small population size, nonequilibrium population size changes, inbreeding, and gene flow, affect deleterious variation.</li><li>Provide guidance on studying deleterious variation in non-model populations of conservation concern.</li></ol><h4>Why is understanding deleterous variation</h4><blockquote>Deleterious variation is relevant for conservation biology, which is the focus of this review. Specifically, theoretical models as well as empirical case studies have shown that an accumulation of deleterious mutations can reduce the health of individuals within a species, potentially leading to extinction (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R5">5</a>–<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R7">7</a>). Researchers are now studying deleterious variation to inform management of small and endangered populations and making predictions about the future health of the population.</blockquote><h4>Very interesting concept: Genetic Rescue</h4><ul><li>For example, one management strategy often employed to mitigate the risks of a small population size is to translocate individuals from another population into the small population (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R8">8</a>).</li><li><strong>This strategy is called genetic rescue.</strong> Knowledge of the role of deleterious variation in extinction and the dynamics of evolutionary processes on deleterious variation will enable more effective genetic rescue strategies (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R9">9</a>).</li></ul><h4>What is the Distribution of Fitness Effects?</h4><blockquote><strong><em>How is this relevant to my research about introgression and ILS? — </em></strong><em>understand mutations in another context + understand if fitness effects of mutations applies in introgression x ILS too.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AArJJRLLageK6ZLM.jpg" /></figure><ul><li>The distribution of fitness effects and the fate of mutations in populations.</li><li>(<em>a</em>) Each new mutation that occurs in an individual has a selection coefficient (<em>s</em>) describing its effect on fitness. The distribution of values of <em>s</em> is called the distribution of fitness effects (DFE) and has been estimated for nonsynonymous mutations in several species.</li><li>(<em>b</em>) Once a mutation enters the population, its fate is affected by natural selection and genetic drift. <strong>Natural selection will push beneficial alleles to higher frequency and deleterious alleles to lower frequency, whereas drift could allow for random fluctuations in allele frequency.</strong></li><li>c) The distribution of selection coefficients for variants segregating in the population differs from the DFE of new mutations. The DFE for segregating variants c has been affected by selection and drift. Typically, the distribution of selection coefficients for segregating mutations will be shifted toward more neutral variants because the <strong>most deleterious mutations will have been eliminated by natural selection. </strong>The selection coefficients for the segregating variants are most directly relevant for assessing the genetic load of a population.</li></ul><h4>Here, we see a comparison between the effects of Natural Selection VS Drift</h4><ul><li>Natural selection will <strong>push beneficial alleles to higher frequency</strong> and deleterious alleles to lower frequency</li><li><strong>Drift</strong> could allow for random fluctuations in allele frequency.</li></ul><h4>Which leads to the question: what determines the difference between natural selection vs drift?</h4><ul><li>The major difference between natural selection and genetic drift is that the natural selection is a process where <strong>more adaptive species are selected in response to the environmental challenges, whereas genetic drift is a random selection.</strong></li><li>• Natural selection occurs <strong>due to environmental challenges</strong>, whereas genetic drift does not occur due to environmental challenges.</li><li>• Natural selection ends up with selecting the more successive trait over the detrimental trait, whereas due to genetic drift<strong> important alleles may disappear completely.</strong></li><li>• Natural selection increases the <strong>frequency of the trait </strong>more adaptive to the environment, whereas genetic drift rarely results in more adaptive species to the environment.</li><li>• Natural selection increases genetic variation, whereas genetic drift does not increase genetic variation compared to natural selection. Some times genetic drift causes some variants to be extinct completely.</li></ul><h3>Which leads to the question: When MUST natural selection occur?</h3><p>To that end, in relation to my research question:</p><ol><li>Is this process modelled in msprime simulations?</li><li>How does modelling this affect mutation rate — or is it modelled independently in the library?</li></ol><h4>Natural selection occurs when:</h4><ol><li>There is variation among individuals within a population in some trait.</li><li>This variation is heritable (i.e., there is a genetic basis to the variation, such that offspring tend to resemble their parents in this trait).</li><li>Variation in this trait is associated with variation in fitness (the average net reproduction of individuals with a given genotype relative to that of individuals with other genotypes).</li></ol><ul><li>Directional selection leads to increase over time in the frequency of a favored allele. Consider three genotypes (<em>AA</em>, <em>Aa</em> and <em>aa</em>) that vary in fitness such that <em>AA</em> individuals produce, on average, more offspring than individuals of the other genotypes. In this case, assuming that the selective regime remains constant and that the action of selection is the only violation of Hardy-Weinberg assumptions, the <em>A</em> allele would become more common each generation and would eventually become fixed in the population.</li><li>The rate at which an advantageous allele approaches fixation depends in part on the dominance relationships among alleles at the locus in question (Figure 1). The initial increase in frequency of a rare, advantageous, dominant allele is more rapid than that of a rare, advantageous, recessive allele because rare alleles are found mostly in heterozygotes.</li><li>A new recessive mutation therefore can’t be “seen” by natural selection until it reaches a high enough frequency (perhaps via the random effects of genetic drift — see below) to start appearing in homozygotes. A new dominant mutation, however, is immediately visible to natural selection because its effect on fitness is seen in heterozygotes.</li><li>Once an advantageous allele has reached a high frequency, deleterious alleles are necessarily rare and thus mostly present in heterozygotes, such that the final approach to fixation is more rapid for an advantageous recessive than for an advantageous dominant allele. As a consequence, natural selection is not as effective as one might naively expect it to be at eliminating deleterious recessive alleles from populations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*e1GND-a93eZN9ngT.jpg" /><figcaption><strong>Allele-frequency change under directional selection favoring (a) a dominant advantageous allele and (b) a recessive advantageous allele, </strong>ref: <a href="https://www.nature.com/scitable/knowledge/library/natural-selection-genetic-drift-and-gene-flow-15186648/">https://www.nature.com/scitable/knowledge/library/natural-selection-genetic-drift-and-gene-flow-15186648/</a></figcaption></figure><h4>Interesting graph</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*nkae2NkqEJKlfC0l.jpg" /><figcaption><strong>Simulations of allele-frequency change in 10 replicate populations (N = 20)</strong></figcaption></figure><blockquote>Since the initial frequency of the A allele = 0.5, we expect A to be fixed in 5 populations and lost in 5 populations, but our observations deviate from expectations because of the finite number of populations. In this run of simulations, we see 7 instances of fixation (p = 1), 2 instances of loss (p = 0), and one instance in which there are still two alleles after 100 generations. <strong>In this last population, A would eventually reach fixation or loss.</strong></blockquote><p>Going back to the paper:</p><p>SELECTION vs Drift</p><ul><li>The DFE described above refers to new mutations entering the population. These mutations comprise the raw material on which evolutionary forces can act. The dynamics of mutations in populations are shaped by a combination of deterministic and nondeterministic evolutionary forces (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/figure/F1/">Figure 1b</a>).</li><li>Selection is a deterministic force, driving beneficial alleles to increase in frequency and deleterious alleles to decrease in frequency and having no impact on the frequency of neutral alleles in the absence of linkage. In contrast, genetic drift is a stochastic force, leading to fluctuations in allele frequencies by chance due to the random sampling of alleles each generation. The magnitude of drift each generation depends on the population size, having a larger effect on allele frequencies in smaller populations.</li></ul><h4>How do we define genetic load?</h4><blockquote>In the 1950s, Mueller (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R17">17</a>) emphasized the idea that mutations could lead to a decrease in fitness when he coined the term genetic load, building on Haldane’s (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R18">18</a>) earlier mutation-selection balance theory. Crow (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R19">19</a>) later defined load more precisely as the mean fitness of the population relative to a population free of deleterious mutations. The load (<em>L</em>) can be specified as:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*nNaBcGH84K1DZ30vACXTrg.png" /></figure><blockquote>Another type of genetic load that is relevant for populations of conservation concern is the inbreeding load (<em>B</em>). The inbreeding load refers to the decrease in fitness that would result from inbreeding occurring in the population (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R25">25</a>–<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9933137/#R27">27</a>). The inbreeding load for locus <em>i</em> can be written as:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*Rw9lup8WUcvR7p0-EqBsVg.png" /></figure><h4>How do we apply genetic load theory to actual natural populations?</h4><p>The applicability of genetic load theory to actual natural populations is not straightforward. First, the hypothetical mutation-free genotype does not actually exist in a real population. All individuals carry some number of deleterious mutations. Thus, selection may operate on a relative scale, not an absolute one, where individuals with a higher load reproduce less than those with a lower load</p><h4>What is the biggest challenge in applying this theory?</h4><p>We do not know the <strong>selection coefficients and dominance coefficients </strong>for individual variants segregating in genomes. Thus, it is hard to directly estimate load for particular individuals or populations. Below, we describe some existing approaches to estimating load in natural populations, highlighting the strengths and limitations of each.</p><h3>Reflection from today</h3><p>Grateful to be given this chance to be alive, to learn and to have a canvas to paint my life on :)</p><h3>Direction for Tomorrow</h3><p>Continue exploring the papers above!! — did not finish all the papers found yet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56e16b9cf2d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #20 — QuiBL analysis:]]></title>
            <link>https://medium.com/@learningthoughts/day-20-quibl-analysis-f0985a25914c?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0985a25914c</guid>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Thu, 03 Aug 2023 08:23:17 GMT</pubDate>
            <atom:updated>2023-08-03T08:37:52.700Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #20 — QuiBL analysis:</h3><h4>QuiBL [4/5] — dissecting the triplet gene test</h4><p>My goal for today is to</p><ol><li>Understand selective sweeps — What causes selective sweeps?</li><li>Explore other parts of the supplementary material — triplet</li></ol><h3>What causes selective sweeps?</h3><blockquote>The selective sweep is initiated by the mutational origin of an advantageous allele.</blockquote><blockquote>This allele is subsequently driven to fixation by strong positive selection. Neutral polymorphisms in the surrounding genomic region may increase in frequency along with the selected allele, depending on the degree of genetic linkage. Some of these neutral alleles may be ‘swept’ to fixation (this is the so-called hitchhiking effect) if the linkage is strong. Thus a sweep refers to the tendency for variation to be lost from the genome in the region immediately surrounding the advantageous allele.</blockquote><p>Can the frequencies of <strong><em>neutral</em> alleles </strong>change?</p><p>In a seminal study, Maynard Smith and Haigh [<a href="https://jbiolres.biomedcentral.com/articles/10.1186/s40709-017-0064-0#ref-CR1">1</a>] showed that when a beneficial allele substitutes a neutral allele, <strong>the frequencies of closely linked <em>neutral</em> alleles change as well. </strong>Those alleles that were originally linked to the benefical allele increase in frequency, whereas the remaining — non-linked — ones decrease in frequency. Maynard Smith and Haigh [<a href="https://jbiolres.biomedcentral.com/articles/10.1186/s40709-017-0064-0#ref-CR1">1</a>] coined the term<strong> ‘hitchhiking’</strong> to describe this effect, <strong>because a neutral allele can get a lift by a closely linked beneficial allele.</strong></p><h4>What is genetic hitchhiking and how is it relevant?</h4><p>Genetic hitchhiking (or “selective sweeps”) is the sudden loss of genetic variation at neutral loci when a new beneficial allele arises nearby and is fixed in the population (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib28">Maynard Smith and Haigh 1974</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib23">Kaplan <em>et al</em>. 1989</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib37">Stephan <em>et al.</em> 1992</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib5">Barton 2000</a>).</p><p>Recent selective sweeps are expected to <strong>generate specific patterns of</strong> <strong>sequence variation</strong>, including a local reduction of variation (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib26">Kim and Stephan 2002</a>), a skew in the allele frequency distribution (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib7">Braverman <em>et al.</em> 1995</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib14">Fay and Wu 2000</a>), and an <strong>increase in linkage disequilibrium</strong> (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib41">Thomson 1977</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib30">Przeworski 2002</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib24">Kim and Nielsen 2004</a>). Developments of hitchhiking theory, along with the rapid increase of DNA sequence data, have led to the discovery of many episodes of recent positive selection in natural populations (for example, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib12">Enard <em>et al.</em> 2002</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib11">Clark <em>et al.</em> 2004</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib33">Schlenke and Begun 2004</a>).</p><blockquote>They also showed that heterozygosity at a linked locus is proportional to <em>c</em>/<em>s</em>, where <em>c</em> is the fraction of recombination rates between the neutral and the beneficial loci, while <em>s</em> is the selection coefficient of the beneficial allele. The fraction of recombination rate <em>c</em> delimits the effect of hitchhiking locally in the genome.</blockquote><p>At distant locations, <strong>recombination</strong> breaks the physical linkage to the beneficial allele and therefore<strong> distant regions evolve independently </strong>of the selective sweep. Interestingly, the motivation of Maynard Smith and Haigh to study the hitchhiking effect came from an observation by Lewontin [<a href="https://jbiolres.biomedcentral.com/articles/10.1186/s40709-017-0064-0#ref-CR2">2</a>], that the extent of enzyme polymorphisms is surprisingly constant between species of very different effective population sizes (see <a href="https://jbiolres.biomedcentral.com/articles/10.1186/s40709-017-0064-0#Taba">Box</a>).</p><h4>What is the link to Effective population size?</h4><p>The concept of the Effective Population Size was firstly introduced by Sewall Wright in 1931 [<a href="https://jbiolres.biomedcentral.com/articles/10.1186/s40709-017-0064-0#ref-CR3">3</a>]. Wright introduced <em>N</em> (the symbol 𝑁𝑒 is mostly employed today instead) to describe the size of a diploid breeding population, which is smaller than the total number of individuals of all ages. He shows that population size fluctuations brings the effective <em>N</em> closer to the smaller actual population size</p><p>Also, the<strong> unequal numbers between males and females reduce the effective <em>N</em>.</strong> Finally, variations on the offspring numbers also reduce the effective population size. The effective population size is<strong> almost always smaller </strong>than the actual population size. A notable exception is the case of seedbanks, where the effective population size (hidden in forms of seeds) may be orders of magnitudes greater than the actual number of developed organisms.</p><h4>Can we measure the cumulative effect of selective sweeps?</h4><p>The main effect of recurrent selective sweeps is to<strong> reduce the standing level of variation</strong>, which is well understood (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib23">Kaplan <em>et al.</em> 1989</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib43">Wiehe and Stephan 1993</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib17">Gillespie 2000</a>).</p><blockquote>In particular, since recombination reduces the hitchhiking effect, a positive correlation between local recombination rate and sequence diversity is predicted under recurrent sweeps. Such a correlation has been observed in <em>Drosophila melanogaster</em> (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib6">Begun and Aquadro 1992</a>) and was used to estimate the intensity of directional selection, αλ, where α is the scaled selection coefficient and λ is the frequency of hitchhiking events (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib43">Wiehe and Stephan 1993</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib36">Stephan 1995</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1456267/#bib1">Andolfatto 2001</a>).</blockquote><h4>How does this link to the Hardy-Weinberg theorem?</h4><p>The Hardy-Weinberg theorem characterizes the distributions of genotype frequencies in populations that are not evolving, and is thus the fundamental null model for population genetics.</p><p>Explore this link more: <a href="https://www.nature.com/scitable/knowledge/library/the-hardy-weinberg-principle-13235724/">https://www.nature.com/scitable/knowledge/library/the-hardy-weinberg-principle-13235724/</a></p><blockquote>Mendel’s Law of Segregation, in modern terms, states that a diploid individual carries two individual copies of each autosomal gene (i.e., one copy on each member of a pair of homologous chromosomes). Each gamete produced by a diploid individual receives only one copy of each gene, which is chosen at random from the two copies found in that individual. Under Mendel’s Law of Segregation, each of the two copies in an individual has an equal chance of being included in a gamete, such that we expect 50% of an individual’s gametes to contain one copy, and 50% to contain the other copy (Figure 1).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/0*Cdt42CRGluvxiZCb.jpg" /></figure><h4>How does the theorem apply in research studies?</h4><p>Given a population in which we know the number of individuals with each genotype, we can test for statistical deviation from Hardy-Weinberg equilibrium using a simple chi-square goodness-of-fit test or a more powerful exact test.</p><p>The latter class of methods has proved particularly useful for large-scale genomic studies, in which scientists evaluate thousands of loci segregating for multiple alleles (Wiggington <em>et al.</em> 2005). Observed genotype proportions in natural populations typically <strong>conform to Hardy-Weinberg expectations, </strong>as we might expect given that a population perturbed from equilibrium can achieve new equilibrium frequencies after only one generation of random mating.</p><h3>Triplet gene test</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBBN4bejEM_66vt9bvLevA.png" /></figure><p>A triplet refers to three taxa, and there are only three unrooted topologies that these can form.</p><h4>What’s the purpose of splitting a tree into Component Triplet Topologies?</h4><p>Mainly, to build up a complex tree from simpler components, like in the Neighbor-Joining algorithm.</p><h4>Exploring Neighbor-Joining algorithm</h4><p>Neighbor-joining (NJ) is one of many methods used for creating phylogenetic (evolutionary) and phenetic (trait-based similarity) trees. The method was first introduced in a <a href="https://doi.org/10.1093/oxfordjournals.molbev.a040454">1987 paper</a> and is still in use today.</p><p>NJ is a greedy algorithm, which endeavors to <strong>minimize the sum of all the branch lengths of the resulting tree</strong>.</p><p>Neighbor-joining uses a distance matrix to construct a tree by determining which leaves are “neighbors” (i.e., children of the same internal parent node) via an iterative clustering process. A neighbor joining tree aims to show the minimum amount of evolution needed to explain differences among objects, which makes it a <a href="https://doi.org/10.1093/oxfordjournals.molbev.a040056">minimum evolution method</a>.</p><blockquote>There has been <a href="https://doi.org/10.1093/molbev/msl072">some debate</a> about the mathematical behavior of neighbor-joining trees. Originally, neighbor joining was thought to be most closely related to tree methods that use <a href="https://en.wikipedia.org/wiki/Ordinary_least_squares">ordinary least squares</a> to estimate branch lengths, but <a href="https://doi.org/10.1093/molbev/msl072">further investigation</a> showed that they actually shared more properties with “balanced” minimum evolution methods. You don’t need to know anything about these different methods in order to perform neighbor joining, but if you would like to read more about them, there is an excellent explanation in <a href="https://doi.org/10.1007/s11538-010-9510-y">this paper</a>.</blockquote><h4>What are the pros of Neighbor-Joining algorithm</h4><ul><li>It’s simple and easy to understand.</li><li>It’s <a href="https://doi.org/10.1093/oxfordjournals.molbev.a040126">fast</a> and computationally inexpensive compared to other popular methods. Maximum-likelihood and Bayesian methods especially are <a href="https://doi.org/10.1093/molbev/msw042">much slower</a>.</li><li>It works. Neighbor-joining has been found to be <a href="https://doi.org/10.1007/s00453-007-9116-4">topologically accurate</a> and to sometimes <a href="https://doi.org/10.1093/molbev/msw042">out-perform more complicated methods</a> like maximum-likelihood and Bayesian inference.</li></ul><h4>What are the cons of Neighbor-Joining algorithm?</h4><ul><li>You lose data. When you squish down sequence alignment or other data into distances, you are performing <a href="https://en.wikipedia.org/wiki/Data_reduction">data reduction</a>. This isn’t necessarily a bad thing (ordination methods like <a href="https://en.wikipedia.org/wiki/Principal_component_analysis">PCA</a> also do this), but you should keep it in mind.</li><li>You only get one possible tree. Other methods such as maximum-likelihood and Bayesian inference return multiple different trees, i.e. evolutionary hypotheses, which can be useful for some analyses.</li><li>Neighbor-joining can sometimes result in <a href="https://doi.org/10.1093/oxfordjournals.molbev.a040126">negative branch lengths</a>. Note that this does not affect the topology of the tree, just branch lengths.</li></ul><h4>How can I apply the Neighbor-Joining algorithm in the ILS vs introgression discussion?</h4><p><strong>Distance Matrix Computation: </strong>The NJ algorithm starts with a distance matrix that represents the genetic distances between pairs of taxa.</p><p>This led me to explore research papers that dive into this NJ algo.</p><h3>Paper 1 Analysis:</h3><p>Davidson, Ruth, and Abraham Martín del Campo. “Combinatorial and Computational Investigations of Neighbor-Joining Bias.” <em>Frontiers in Genetics</em>, vol. 11, 27 Oct. 2020, <a href="https://doi.org/10.3389/fgene.2020.584785.">https://doi.org/10.3389/fgene.2020.584785.</a></p><h4>How does the algorithm work?</h4><p>Overview:</p><blockquote>The neighbor-joining method is a greedy algorithm which attempts to minimize the sum of all branch-lengths on the constructed phylogenetic tree. Conceptually, it starts out with a star-formed tree where each leaf corresponds to a species, and iteratively picks two nodes adjacent to the root and joins them by inserting a new node between the root and the two selected nodes.</blockquote><blockquote>When joining nodes, the method selects the pair of nodes <em>i</em>, <em>j </em>that minimizes the branch-length sum of the resulting new tree. One way of achieving this [<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3271233/#B2">2</a>] is always to select the pair of nodes <em>i</em>, <em>j </em>that minimizes</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/0*pOtO-_4OvwwbNchG.jpg" /></figure><ol><li>A <em>graph</em> is a pair of sets {<em>V, E</em>} called vertices and edges, with the latter representing relations between pairs of vertices. The <em>degree of a vertex</em> is the number of edges adjacent to it.</li><li>A <em>path</em> in a graph is a sequence of edges joining a sequence of vertices without repetition of vertices, except for possibly the start and end vertices. If the sequence starts and ends at the same vertex, the path is called a <em>cycle</em>. A graph without cycles is a <em>tree</em>.</li><li>The vertices of a tree are usually called <em>nodes</em>, except for those of degree one which are called <em>leaves</em>. In trees, there is a unique path between any two vertices. A tree is <em>rooted</em> if there is a distinguished vertex ρ called the <em>root</em>. If <em>T</em> is a rooted tree, there is a partial order on the vertices of <em>T</em> induced by the root ρ and the unique path between vertices, such that ρ ≤ <em>v</em> for all vertices <em>v</em> of <em>T</em>.</li><li>A <em>binary tree</em> is a tree where all vertices have degree three except for the leaves and the root, if a root exists. We will restrict our attention to unrooted binary trees. An unrooted binary tree with <em>n</em> leaves has <em>n</em>−2 nodes and 2<em>n</em>−3 edges.</li><li>We also consider the <em>star tree</em>, a non-binary unrooted tree with exactly one node that is adjacent to all leaves. We illustrate a star tree in the left image of <a href="https://www.frontiersin.org/articles/10.3389/fgene.2020.584785/full#F1">Figure 1</a>.</li></ol><h4>How to conduct a depth-first search?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*na_s4WEXjdpGEbtVcP72nw.png" /></figure><h4>Paper 2: What are alternatives to the Neighbor-Joining algorithm?</h4><p>Hong, Y., Guo, M., &amp; Wang, J. (2020). ENJ algorithm can construct triple phylogenetic trees. <em>Molecular therapy. Nucleic acids</em>, <em>23</em>, 286–293. <a href="https://doi.org/10.1016/j.omtn.2020.11.004">https://doi.org/10.1016/j.omtn.2020.11.004</a></p><p>This article proposes an improved method of NJ, called ENJ (extended neighbor joining). The ENJ can join several (currently limited to three) nodes with the same minimum distance into a new node, rather than joining two nodes in one iteration, so it can construct triple phylogenetic trees. They have inferred the formulas for <strong>updating the distance values </strong>and <strong>calculating the branch lengths </strong>for the ENJ algorithm.</p><h3>Direction for Tomorrow</h3><p>Continue day [5/5] of QuiBL Supplementary Material Analysis</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0985a25914c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day #19 — QuiBL analysis:]]></title>
            <link>https://medium.com/@learningthoughts/day-19-quibl-analysis-d4204eaca01f?source=rss-8772e5aaf79------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4204eaca01f</guid>
            <category><![CDATA[computational-biology]]></category>
            <dc:creator><![CDATA[learning thoughts]]></dc:creator>
            <pubDate>Wed, 02 Aug 2023 06:24:12 GMT</pubDate>
            <atom:updated>2023-08-02T06:32:56.211Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day #19 — QuiBL analysis:</h3><h4>QuiBL [3/5] — dissecting the supplementary material</h4><p>My goal for today is to continue to dissect the supplementary material, and understand the methods + technical terms I am unsure of.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EmXJGhLnc4h1gvFkaART8w.png" /></figure><h3>What is the Relaxed Clustering Algorithm?</h3><h4>What are the types of clustering methods?</h4><p>They can be divided into basic types according to the logic of clustering construction</p><ul><li><strong>Partitioning methods:</strong> they divide the dataset into a fixed and known k number of non-empty clusters. They are applicable to medium-sized datasets. The most representative is the k-means clustering .</li><li><strong>Hierarchical methods:</strong> they derive multiple cluster subdivisions, exploit the tree structure and use different threshold values within each cluster and inhomogeneity thresholds between distinct clusters.</li><li><strong>Density-based methods:</strong> they use local density for one observation, so that it considers not less than a prefixed number of neighbors (established by the decision maker); they are able to isolate outliers.</li><li><strong>Graph-based methods: </strong>they use graph partitioning algorithms, and use a scattered representation of the initial dataset.</li></ul><h4>How do we assign observations to clusters?</h4><ul><li><strong>Exclusive assignment:</strong> each observation is assigned to a single cluster. — Soft attribution: each observation can belong to several clusters with different degrees of belonging.</li><li><strong>Full attribution: </strong>Each observation is assigned to at least one cluster.</li><li><strong>Partial assignment: </strong>some observations may not be assigned to any cluster; they are very useful to identify the presence of outliers in the dataset</li></ul><h4>What are the steps of the Relaxed Clustering Algorithm?</h4><ol><li>Read the input bi-dimensional array X made of n rows, one row per wafer, and m columns, one for each chip of the wafer. The array X is obtained from each wafer bin map of the dataset, putting in its columns the bin values corresponding to the wafer chips.</li><li>The n × n correlation matrix C is defined on all wafer (m−dimensional vector) pairs (xk , xl ), k, l = 1 . . . n, whose elements are computed using the Spearman correlation coefficient ρ, defined as the Pearson correlation coefficient between the ranked variables. The m raw scores for each vector x are converted to ranks r and the correlation coefficient between xk and xl is computed as:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vSdj8eUDQ_z7-IC5lRvWkA.png" /></figure><p>3. Let θ1 be a fixed threshold defining an <strong>open interval of symmetrical comparison</strong> (−θ1, θ1) and let us build the adjacency matrix A between wafers whose elements ak,l , k, l = 1 . . . n, are defined as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YL_K0Bkpa-lao2rB6GLDrQ.png" /></figure><p>4. An undirected (correlation) graph G is built from the adjacency matrix, with edge weights equal to the correlation coefficients ck,l . This graph has one node for each selected wafer; links between nodes correspond to the presence of a correlation between them</p><p>5. A clustering coefficient ki is associated to each node i belonging to the correlation graph:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wNsrqQoluXYMQIycf19gKQ.png" /></figure><p>where α is the number of triangles (a triangle is a cluster of three directly and fully connected nodes) having node i as one vertex and 𝛾 is the number of nodes directly linked to i</p><p>6. Fix θ2 ∈ [0, 1] as a clustering threshold. From the graph G we induce a subgraph H made of all nodes i ∈ G (and related edges e) with relaxed clustering coefficient greater than or equal to θ2: H = {nodes i ∈ G and related edges e : ki ≥ θ2}. The relaxed clustering coefficient of a node i is given by the <strong>maximum clustering coefficient </strong>among ki and those of the nodes directly connected to it up to a predetermined maximum distance δ:<strong> this gives a “dragging” effect by the surrounding nodes</strong>, better taking into account the complex structure of the relations between the graph nodes (wafers) than the simple clustering coefficient of each node.</p><p>7. From this subgraph we extract all connected components (made of at least two linked nodes) representing the clusters corresponding to the values chosen for thresholds θ1 and θ2.</p><h4>What are the advantages of using this Relaxed Clustering Algorithm in this context?</h4><ul><li>By allowing data points to be part of multiple clusters or not forcing them into predefined clusters, relaxed clustering can model these complex relationships, reflecting a more realistic portrayal of evolutionary histories.</li><li>It deals w noise — It can ignore or down-weight outliers, reducing the influence of noise on the clustering outcome and providing more accurate insights into population structure.</li></ul><h4>Definitions of Notations used in QuiBL</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BH0Me5dymICZsRDoAawmcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgeo_GUYif2mwS7m3F-PCg.png" /></figure><h3>What is non- recombining neutral loci?</h3><p>This led me to explore 2 papers:</p><ol><li>Powell, J. R., Dion, K., Papaceit, M., Aguadé, M., Vicario, S., &amp; Garrick, R. C. (2011). Nonrecombining genes in a recombination environment: the Drosophila “dot” chromosome. <em>Molecular biology and evolution</em>, <em>28</em>(1), 825–833. <a href="https://doi.org/10.1093/molbev/msq258">https://doi.org/10.1093/molbev/msq258</a></li><li>Brian Charlesworth , Deborah Charlesworth, Neutral Variation in the Context of Selection, <em>Molecular Biology and Evolution</em>, Volume 35, Issue 6, June 2018, Pages 1359–1361, <a href="https://doi.org/10.1093/molbev/msy062">https://doi.org/10.1093/molbev/msy062</a></li></ol><h4>Paper 1 Analysis:</h4><p>Powell, J. R., Dion, K., Papaceit, M., Aguadé, M., Vicario, S., &amp; Garrick, R. C. (2011). Nonrecombining genes in a recombination environment: the Drosophila “dot” chromosome. <em>Molecular biology and evolution</em>, <em>28</em>(1), 825–833. <a href="https://doi.org/10.1093/molbev/msq258">https://doi.org/10.1093/molbev/msq258</a></p><blockquote>Selective sweeps or background selection (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3002241/#bib8">Charlesworth et al. 1993</a>) of nonrecombining DNA induces monomorphism and low recombination promotes LD. This makes selection at specific sites, such as among synonymous codons, virtually impossible (the Hill–Robertson effect, 1966), especially if selection is weak as appears to be the case for synonymous mutations (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3002241/#bib24">Hartl et al. 1994</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3002241/#bib1">Akashi 1995</a>).</blockquote><p>Exploring the recombination ideas in the paper:</p><blockquote>Phase of segregating sites in nuclear allele sequences obtained from diploid PCR products was estimated using PHASE v2.1.1 (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3002241/#bib49">Stephens et al. 2001</a>; <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3002241/#bib48">Stephens and Donnelly 2003</a>), with files formatted in SeqPHASE (<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3002241/#bib18">Flot 2010</a>). The “MR” model was used because it <strong><em>accommodates the possibility of intragenic recombination.</em></strong> For triallelic single nucleotide polymorphisms, the parent-independent mutation model was used.</blockquote><h4>What is intragenic recombinaton?</h4><ul><li>Rearrangement or intragenic recombination describes the insertions, deletions, and more commonly, <a href="https://www.sciencedirect.com/topics/immunology-and-microbiology/gene-duplication">gene duplications</a> leading to sudden changes in the structure of genome segments.</li><li>Normally, in gene duplications, the coding region of the template fragment remains unimpaired. Genome segments with duplicated fragments at the 3′ end are fairly common in <a href="https://www.sciencedirect.com/topics/immunology-and-microbiology/rotavirus">rotavirus</a> strains of some animal species as well as some atypical rotavirus strains shed by immuncompromised patients over prolonged periods (Desselberger, 1996).</li></ul><h4>When does intragenic recombination occur?</h4><p>This led me to explore this study:</p><p>Okagaki, Ron J., et al. “A Critical Assessment of 60 Years of Maize Intragenic Recombination.” <em>Frontiers in Plant Science</em>, vol. 9, 29 Oct. 2018, <a href="https://doi.org/10.3389/fpls.2018.01560.">https://doi.org/10.3389/fpls.2018.01560.</a></p><p>This study reviews the maize intragenic recombination work, and place this work in context with results from genomic studies of maize recombination and work in fungal and animal model systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EEKzcVQJj3GSF_UD.jpg" /><figcaption>FIGURE 1. Acquisition of DSB and CO data by gene-scale and genome-scale approaches. <strong>(A)</strong> DSB generation by SPO11 with subsequent binding of RAD51 and DMC1. DSB data derives from SPO11-oligos or RAD51-bound fragments via ChIP-seq. <strong>(B)</strong> CO generation via double Holliday junction. <strong>©</strong> Chiasmata and recombination nodules are visible via microscopy. A single recombination nodule on a chromosome is illustrated. <strong>(D)</strong> Mapping recombinants. Sequencing approaches rely on isolated microspores from tetrads or progeny lines. Intragenic studies directly score recombination via visible kernel markers. Terms in bold indicate data source options. RILs, recombinant inbred lines; GBS, genotyping by sequencing.</figcaption></figure><p>•<strong>“Recombination”</strong> is a term used for mechanisms of somatic DNA repair as well as for exchange of genetic information during meiosis. While underlying mechanisms and involved proteins overlap, there are profound differences between somatic a nd meiotic recombination. Meiotic recombination can refer to <strong>crossovers (COs)</strong> which are due to exchange of whole chromosome parts, to <strong>non-crossovers (NCOs)</strong> which are locally restricted, or to both. Both COs and NCOs can result in local genetic changes via gene conversion.</p><p>• <strong>“Gene conversion” (GC)</strong> is the non-reciprocal transfer of information. Resolution of double Holliday structures into COs produces a gene conversion tract, as do pathways leading to NCOs. The latter is often used interchangeably with GC although it does not cover all GC instances.</p><p>• <strong>“Intragenic recombination”</strong> refers to both NCOs and COs within genes. Some intragenic recombination studies look at short regions containing several genes, albeit mostly with emphasis on the outcome within genes. These loci or genes are often recombination hotspots.</p><p>• <strong>“Hotspots”</strong> are genomic regions with elevated levels of recombination-related events, and can refer to the meiotic <strong>double-strand breaks (DSBs)</strong> initiating recombination, <strong>COs</strong> or <strong>general recombination</strong> including both COs and NCOs. There is no standard definition of hotspots regarding their strength or size. The amount of events distinguishing hotspots from cold regions is arbitrary, and the definition and identification depends strongly on the respective study.</p><p>• <strong>“Polarity”</strong> exists when there is a gradient of recombination, e.g., higher recombination rates at the 5′ or 3′ end of a gene. The 5′ end is defined here as the transcription start site (TSS), and the 3′ end as the transcription termination site (TTS). Other definitions have been used such as the promoter region for the 5′ end. However, in practice, COs are localized to intervals defined by available sequence polymorphisms which may not coincide with the defined 5′ and 3′ ends.</p><h4>Do genetic intervals matter?</h4><p>Intragenic recombination studies have also looked at recombination within small genetic intervals. Since high recombination rates measured within genes suggests that little recombination happens in <strong>intergenic regions</strong> this work directly asks whether crossing over can take place outside of genes.</p><h4>What are the main findings from their study?</h4><ol><li>Both crossover and non-crossover events are detected</li><li>Many maize genes are recombination hotspots</li><li>Some but not all genes show polarity that may be punctate or have a gradient</li><li>Some recombination hotspots are in non-genic low-copy sequences</li><li>Sequence differences between parental chromosomes affect the distribution of recombination events. However, the number of studies with adequate data is small and conclusions about relative frequency of genes showing polarity should not be drawn.</li></ol><h4>What is the relationship between recombination and deletion mutations?</h4><p>Double-strand breaks cannot be directly mapped by intragenic studies, but their possible positions may be deduced by examining recombination in deletion mutations. Homozygous deletions of DSB hotspots <strong>reduce recombination and eliminate polarity</strong> at the <em>S. cerevisiae HIS4</em> locus (<a href="https://www.frontiersin.org/articles/10.3389/fpls.2018.01560/full#B19">Detloff et al., 1992</a>).</p><h4>Why does deletion reduce recombination?</h4><ol><li><strong>Loss of Sequence Homology: </strong>Recombination typically occurs between similar or identical sequences of DNA. This homologous recombination allows DNA repair and ensures proper chromosome segregation during meiosis. If a gene is deleted from one of the chromosomes, the homologous sequence that would normally facilitate recombination is no longer present. This lack of homology reduces the opportunities for recombination to occur.</li><li><strong>Altered Chromosomal Structure: </strong>Deletion of a gene can also cause changes in the local chromosomal structure. If the deleted gene was involved in maintaining chromosomal architecture or if the deletion causes a change in the three-dimensional organization of the chromosome, it might impede the proper alignment of homologous chromosomes, further reducing recombination.</li><li><strong>Effects on DNA Repair Proteins: </strong>Some genes play roles in DNA repair and the recombination process itself. If a gene that encodes a protein involved in these processes is deleted, the mechanism for recombination may be directly impaired.</li><li><strong>Influence on Meiotic Pairing: </strong>In sexual organisms, recombination often occurs during meiosis, the process that generates gametes. The pairing of homologous chromosomes is a critical step in this process. Gene deletions might interfere with this pairing, making recombination less likely to occur.</li><li><strong>Effects on Genetic Linkage:</strong> Recombination helps to shuffle alleles between linked genes. If a gene is deleted, it can change the linkage relationships among neighboring genes, thereby altering the recombination frequency in that region.</li><li><strong>Impact on Chromosome Synapsis: </strong>Chromosome synapsis is a key process that facilitates recombination during meiosis. Gene deletions can disrupt the proper synapsis of chromosomes, which in turn leads to a decrease in recombination.</li><li><strong>Creation of Fragile Sites:</strong> Sometimes, a gene deletion might create a fragile site in the chromosome, where the DNA is more susceptible to breakage. While this might seem like it would increase recombination, the cell often attempts to repair these fragile sites in ways that bypass homologous recombination, such as through non-homologous end joining (NHEJ), which may suppress recombination.</li></ol><h3>Paper 2 Analysis:</h3><p>Brian Charlesworth , Deborah Charlesworth, Neutral Variation in the Context of Selection, <em>Molecular Biology and Evolution</em>, Volume 35, Issue 6, June 2018, Pages 1359–1361, <a href="https://doi.org/10.1093/molbev/msy062">https://doi.org/10.1093/molbev/msy062</a></p><blockquote>The second type of effect of selection on variability at linked neutral sites, hitchhiking by positively selected mutations (<em>selective sweeps</em>), has attracted greater interest than AOD. The basic theory was developed by John Maynard Smith and John Haigh (1974), stimulated by Lewontin’s (1974) observation that populations’ allozyme locus variability levels are only weakly related to their size.</blockquote><h4>What are allozymes?</h4><p>Allozymes are enzymes with identical function but distinct electrophoretic migration patterns that are encoded by different alleles of the same locus. Allozyme electrophoresis provided the earliest assessment of the genetic variability of natural triatomine populations.</p><h4>Link to recombination</h4><p>With recombination, they showed that the reduction of variability at a neutral site declines rapidly with <em>r</em>/<em>sa</em>, where <em>r</em> is the frequency of recombination with the selected locus, and <em>sa</em> is the selection coefficient for the advantageous allele. They suggested that the <strong>overall variability in a species would depend more on the frequency of selective sweeps than the rate of genetic drift determined by its effective population size</strong>, resolving Lewontin’s paradox. This proposal was later elaborated by Gillespie (2001) in his theory of “genetic draft,” but the basic idea remains the same.</p><h3>Direction for tomorrow</h3><ol><li>Understand selective sweeps — What causes selective sweeps?</li><li>What determines the frequency of neutral variants in a population?</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4204eaca01f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>