<?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 Aditya Mittal on Medium]]></title>
        <description><![CDATA[Stories by Aditya Mittal on Medium]]></description>
        <link>https://medium.com/@adityamittal307?source=rss-a5c97ff64879------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SImf04RSQi6UtTS4g32n9w.jpeg</url>
            <title>Stories by Aditya Mittal on Medium</title>
            <link>https://medium.com/@adityamittal307?source=rss-a5c97ff64879------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:21:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adityamittal307/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[From Startup Insights to Independent Thinking: 6 Paul Graham Articles and Their Takeaways]]></title>
            <link>https://medium.com/swlh/from-startup-insights-to-independent-thinking-6-paul-graham-articles-and-their-takeaways-29ae1dcd28ca?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/29ae1dcd28ca</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[paul-graham]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Thu, 18 May 2023 01:36:58 GMT</pubDate>
            <atom:updated>2023-05-18T01:36:58.579Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3MZNeKs1nPHnn1JKqpzUIw.jpeg" /><figcaption>Source: San Francisco Chronicle</figcaption></figure><p>Paul Graham, a renowned computer scientist, venture capitalist, and essayist, has emerged as one of the most influential thinkers and voices in the world of technology and entrepreneurship. With a unique blend of intellectual depth and practical insight, Graham has captivated audiences with his thought-provoking essays, providing invaluable guidance to aspiring entrepreneurs, programmers, and innovators alike.</p><p>Graham’s prominence stems from his multifaceted contributions to the tech industry. As the co-founder of the highly prestigious startup accelerator Y Combinator, he has nurtured and mentored countless early-stage companies, propelling them toward success. However, it is his remarkable ability to distill complex ideas and concepts into accessible and engaging prose that has truly set him apart.</p><p>Through his widely read and shared essays, Paul Graham has become a trusted advisor to aspiring entrepreneurs, startup founders, and technology enthusiasts. His writings explore a diverse range of topics, including startups, innovation, programming, education, and productivity. Graham’s unique perspective offers a fresh lens through which to view the challenges and opportunities that define the modern business landscape.</p><p>What sets Graham’s work apart is not only his deep understanding of the technological realm but also his profound insights into human nature and societal dynamics. His essays delve into the psychology of entrepreneurship, the dynamics of teamwork, the nature of creativity, and the importance of perseverance. Thus, whether you are a seasoned entrepreneur or an aspiring innovator, the insights offered by Paul Graham are bound to inspire, inform, and ignite your own journey toward living a more successful life.</p><p><em>Note: For a quick skim of key takeaways from the articles, reference the italicized phrases! Feel free to skip around as well, different articles may be more useful for certain people.</em></p><h4>How to Write Usefully</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M-38cF9aSSIyOCsWfdKQNw.png" /><figcaption>Source: Parade</figcaption></figure><p>Link: <a href="http://www.paulgraham.com/useful.html">http://www.paulgraham.com/useful.html</a></p><p>Effective writing requires a combination of precision and correctness. Paul Graham emphasizes the importance of making strong claims without being false or vague. Useful writing presents novel ideas that are valuable to readers, offering them insights they may not have previously known. To achieve this, Graham suggests employing a simple trick: <em>refrain from saying anything unless you are confident that it is worth hearing</em>. This approach ensures that your writing maintains relevance and captures the attention of the audience.</p><p>Graham encourages a <em>flexible writing process that begins with loose, exploratory ideas before refining them into tight, well-crafted prose</em>. Experimenting with different concepts allows for the discovery of compelling arguments and perspectives. However, once the initial exploration phase is complete, investing time in careful rewriting becomes essential. As you refine your writing, consider the importance of the topic. Assess the number of people to whom it matters and the extent to which it impacts them. Writing about something significant not only captures readers’ attention but also ensures personal engagement and investment in the subject matter.</p><p>Effective writing also involves <em>thoughtful consideration of qualifications</em>. Expressing your level of certainty, such as stating “I think x” instead of a definitive “x,” enhances the skillful use of qualification. Simplicity is another key aspect of successful writing. Strive for clarity and avoid unnecessary complexity, making your ideas accessible to a wider audience. Additionally, anticipate potential disagreements and misinterpretations. Explicitly addressing likely points of contention can preemptively address opposing views and foster a more constructive discourse.</p><h4>Ideas for Startups</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGCuFBrIDttiKSHddIHDgg.jpeg" /><figcaption>Source: Quotefancy</figcaption></figure><p>Link: <a href="http://www.paulgraham.com/ideas.html">http://www.paulgraham.com/ideas.html</a></p><p>Paul Graham’s articles provide invaluable insights for entrepreneurs, guiding them through the intricate world of startups. One of the key takeaways is the recognition that <em>most startups undergo a remarkable transformation from their initial idea</em>. This necessitates a flexible and adaptive approach, where entrepreneurs start with a plan but remain open to tweaking and refining it as they progress. By embracing this iterative mindset, entrepreneurs can generate a wealth of new ideas, constantly adapting and evolving to better fit market needs.</p><p>To effectively generate these ideas, Graham highlights the importance of <em>being well-versed in promising technologies and surrounding oneself with the right kind of friends</em>. He emphasizes that universities often foster an environment conducive to exploration and collaboration, allowing students to delve into various fields and expand their knowledge base. In contrast, traditional company jobs may limit exposure to new technologies and diverse perspectives. By actively seeking out opportunities to engage with emerging technologies and cultivating a network of like-minded individuals, entrepreneurs can enhance their idea generation process and tap into the creative potential that lies at the intersection of different fields.</p><p>Graham also underscores the significance of <em>giving the mind ample room to wander and explore</em>. He encourages entrepreneurs to let their thoughts roam freely, combining ideas from seemingly unrelated domains. By thinking beyond the confines of a single field, entrepreneurs expand the search space and increase the likelihood of stumbling upon groundbreaking solutions. Graham advises against starting with random ideas, suggesting instead to begin with a specific problem and allowing the mind to explore unexpected connections. It is within these uncharted territories that novel and innovative ideas often emerge.</p><p>An essential aspect of any successful venture is <em>understanding the true nature of wealth</em>. Graham challenges entrepreneurs to examine whether people will pay for their product or service. To achieve this, he offers various approaches, such as addressing a broken system, transforming a luxury item into a more accessible commodity, redefining an existing product, or simplifying it to reduce the overwhelming array of options. By focusing on creating value and meeting people’s desires and needs, entrepreneurs can build a sustainable business model and ensure their product resonates with the market.</p><p>Interestingly, Graham suggests that while deliberate efforts in ideation and exploration are vital, some of the best ideas come about by accident. Entrepreneurs should <em>remain open and receptive to unexpected opportunities that may arise, as they can lead to transformative breakthroughs</em>. These “million-dollar ideas” often present themselves unexpectedly, emphasizing the importance of maintaining a flexible mindset and being attuned to the serendipitous nature of innovation.</p><h4>The Hardest Lessons for Startups to Learn</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*3HUNKkVwvrxflppz5dz1Iw.png" /><figcaption>Source: Groove HQ</figcaption></figure><p>Link: <a href="http://www.paulgraham.com/startuplessons.html">http://www.paulgraham.com/startuplessons.html</a></p><p>One crucial lesson for startup founders is <em>releasing the initial version of a product or service quickly and iterating based on user feedback.</em> By getting version 1 out fast, entrepreneurs can gauge user reactions, understand their needs, and make necessary improvements. This sense of urgency fosters a stronger work ethic and allows for continuous refinement.</p><p><em>Continuously pumping out new features</em> is another essential aspect emphasized by Graham. The more ideas entrepreneurs implement, the more ideas they generate in return. Users appreciate a site or platform that is constantly improving and evolving, as it demonstrates a commitment to meeting their needs. Listening to user feedback and actively incorporating new features cultivates a positive user experience and fosters customer loyalty.</p><p>Graham places great importance on <em>making users happy and capturing their attention</em> from the moment they visit a site or app. To achieve this, entrepreneurs must ensure their product has an eye-catching appeal that entices casual users to stay. Two critical factors in achieving this are clear and concise explanations of what the product offers, avoiding opaque descriptions, and providing users with immediate access to the most valuable features. By maximizing user engagement and conversion rates, entrepreneurs can create a strong foundation for growth and success.</p><p>While startups inherently face various challenges, Graham advises entrepreneurs to <em>fear the right things</em>. Disasters are a normal part of the startup journey and should not be overly feared, as they are rarely fatal unless allowed to be. Rather than worrying about established companies, the primary concern should be other startups stealing ideas. Competitors are not always the biggest threat; internal disputes, inertia, and failure to address user needs often lead to startup failures. By focusing on building a resilient and adaptable company culture, entrepreneurs can navigate potential obstacles with greater confidence.</p><p>Graham also stresses the importance of <em>commitment as a self-fulfilling prophecy</em>. While determination is significant, intelligence plays a more crucial role in the success of a startup founder. The genuine qualities of intelligence and expertise cannot be faked, and they serve as essential foundations for overcoming challenges and making informed decisions.</p><p>Furthermore, Graham encourages entrepreneurs to realize that <em>there is always room for new opportunities</em>. Often, we fail to see the abundance of possibilities around us because we become accustomed to the way things are. The market has no inherent limit on the number of startups that can exist, and by maintaining a mindset of openness and awareness, entrepreneurs can identify and seize untapped potential.</p><p>Lastly, Graham <em>cautions against getting overly optimistic and building unrealistic expectations.</em> It is vital to maintain a healthy balance and not assume that everything will go according to plan. By shielding optimism with a dose of realism, entrepreneurs can navigate setbacks and disappointments more effectively, staying resilient in the face of challenges.</p><h4>How to Think for Yourself</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*gb7QhLju4-GVT_1hr17i5w.jpeg" /><figcaption>Source: Brainy Quote</figcaption></figure><p>Link: <a href="http://www.paulgraham.com/think.html">http://www.paulgraham.com/think.html</a></p><p>Graham highlights that <em>people often have misconceptions about their position on the spectrum of conventional thinking versus independent-mindedness</em>. By the time individuals reach adulthood, they generally have a good understanding of their intelligence level due to constant testing and ranking. However, schools tend to suppress independent thinking, making it challenging to accurately gauge one’s independent-mindedness in addition to their intelligence.</p><p>To cultivate a more independent-minded approach, Graham suggests a few strategies. First, being less aware of conventional beliefs can help break free from their influence. <em>Surrounding oneself with independent-minded individuals</em> is also crucial. Even having just one or two such people in one’s network can make a significant difference. Additionally, actively seeking out diverse individuals and exposing oneself to different perspectives can open up new possibilities and broaden horizons.</p><p>Taking explicit measures to prevent the adoption of conventional opinions is another important step. <em>Developing an attitude of skepticism and questioning existing ideas</em> can help uncover new insights hidden within broken or flawed concepts. It’s essential to ask more questions rather than make statements and to maintain an open mind about the world around us.</p><p>As a company grows, Graham warns that the number of independent-minded founders and employees may be outnumbered by conventional thinkers. This shift can have a detrimental effect on the company’s culture and performance, leading to a decline in creativity and innovation.</p><p>The internal structure of independent-mindedness consists of three key components: <em>fastidiousness about the truth, resistance to being told what to think, and curiosity</em>. Being meticulous in assessing the degree of belief in different subjects, avoiding rejecting conventional ideas simply for the sake of it, and actively seeking out ideas that challenge conventional wisdom are vital aspects of an independent-minded approach. While these components can substitute for one another to some extent, having a balance of all three can yield the most effective results.</p><h4>What You’ll Wish You’d Known</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*ZfyPMRQ9z8yryxuuB6b5xw.jpeg" /><figcaption>Source: QuotesGram</figcaption></figure><p>Link: <a href="http://www.paulgraham.com/hs.html">http://www.paulgraham.com/hs.html</a></p><p>Navigating the uncertainties of life and career choices can be daunting, especially during school. Paul Graham emphasizes that<em> </em>it’s essential not to feel pressured to know exactly what you want to do at such an early stage. Instead, <em>focus on learning about the various options available</em>. Media representations often provide an inaccurate picture of different jobs, and some professions may not even be widely known. Avoid premature optimization by not restricting yourself to a plan made early on. Graham challenges the notion that natural ability determines success, highlighting that one’s potential is often underestimated. Instead of comparing yourself to others, recognize that if someone with similar abilities can achieve something, you can too.</p><p>When it comes to pursuing your goals, Graham advises <em>working forward from promising situations rather than committing to a specific end goal</em>. Look for opportunities to surround yourself with smart people and engage with challenging problems. Smart and motivated individuals tend to gravitate towards each other, and working on difficult problems ensures continuous growth and a sense of suspense. It’s crucial to maintain intellectual curiosity and not allow school to define your identity. Treat it as a day job, balancing academic performance with extracurricular activities to make the most of your time.</p><p>Graham urges individuals <em>not to design their lives solely around going to a good school</em>. He challenges the notion that admissions officers are all-knowing and emphasizes the importance of playing the system to your advantage. While rebellion may not be feasible, maintaining a sense of agency and not allowing external forces to define your path is key. Discovering your interests is a lifelong journey, as curiosity tends to diminish over time. School may create the illusion that achieving great things requires tremendous discipline, but Graham argues that a bit of self-discipline is sufficient. Find the subject or area that brings you joy and makes the learning process fun.</p><p>Rather than simply hunting for ideas, Graham encourages individuals to <em>invest time in work that genuinely interests them</em>. Engage in monthly projects that stretch your abilities and allow for personal growth. While friends can offer moral support, it may be better not to share your projects with them to take more risks and avoid external pressures. The desire to excel and do things outside the norm can be a powerful motivator. However, it’s crucial to be cautious of bad models that justify laziness. Finally, Graham emphasizes the importance of seeking out the few exceptional books that offer profound knowledge and insights, allowing for continuous learning and personal development.</p><h4>What You Can’t Say</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fk09dw4kpchB5keyY1XR3g.jpeg" /><figcaption>Source: QuoteFancy</figcaption></figure><p>Link: <a href="http://www.paulgraham.com/say.html">http://www.paulgraham.com/say.html</a></p><p>In evaluating our ability to think independently, Paul Graham presents “The Conformist Test.” It prompts us to <em>reflect on whether we hold any opinions that we would be hesitant to express in front of our peers</em>. If we find ourselves conforming to the thoughts and beliefs of others or lacking the courage to express our own ideas, it indicates a reliance on external influences rather than independent thinking. Graham encourages us to keep track of opinions that tend to get people into trouble and consider their potential validity. By challenging prevailing norms and avoiding self-censorship, we open ourselves up to interesting and potentially groundbreaking ideas.</p><p>Graham suggests that the <em>presence of taboo subjects or heretical statements that are immediately shot down without any consideration may indicate areas where we are mistaken</em>. Examining ideas that may be considered harmless in other contexts but taboo in our own can lead to valuable insights and a broader perspective. The launch of a taboo often occurs when a group is positioned between weakness and power, as demonstrated by historical examples like the Catholic Church’s resistance to the heliocentric model. Graham emphasizes the importance of actively seeking out overlooked ideas, including those that may initially seem unthinkable. By drawing a clear distinction between our thoughts and speech, we can save time by avoiding fruitless arguments with others who may not be open to alternative viewpoints.</p><p><em>In situations where we are pressured to take a side on a contentious issue, Graham advises responding with “I haven’t decided.”</em> This response allows us to maintain our independence and avoid prematurely aligning with a particular position. When forced to engage in debates, abstract ideas, metaphors, or humor can provide alternative ways to express our thoughts and encourage others to think more deeply. By embracing these strategies and continuously challenging prevailing norms, we can cultivate a more independent and nuanced approach to our thinking and engage in fruitful discussions with others.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29ae1dcd28ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/from-startup-insights-to-independent-thinking-6-paul-graham-articles-and-their-takeaways-29ae1dcd28ca">From Startup Insights to Independent Thinking: 6 Paul Graham Articles and Their Takeaways</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[20 Research Areas Within Computational Biology]]></title>
            <link>https://adityamittal307.medium.com/20-research-areas-within-computational-biology-d82a38897b34?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/d82a38897b34</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[bioinformatics]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[computational-biology]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Fri, 28 Jan 2022 03:50:48 GMT</pubDate>
            <atom:updated>2022-01-31T00:10:03.497Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SD1ORIR0gSepcakwEkYd1A.jpeg" /></figure><p>Although bioinformatics has made deep advancements since its advent nearly half a century ago, there are still many ongoing places of research in the field that will produce novel insights within the next few decades. Here are the top 20 research areas in computational biology:</p><ol><li>Rapid structural and topological clustering of proteins → protein-protein interactions in high-throughput experiments for stability</li><li>Determining the structure of macromolecular assemblies and complexes</li><li>Simulating realistic oligomeric systems over time</li><li>Prediction of unknown molecular structures (e.g. protein folding problem)</li><li>A platform for a complete analysis of genome-genome comparison</li><li>Simulating genetic networks and their sensitivity to stoichiometric and kinetic interactions</li><li>Building understanding of speciation from a molecular perspective</li><li>Accurate biological structure prediction from minimal data</li><li>A complete model that predicts RNA or alternative splicing from a primary transcript</li><li>Designing small molecule inhibitors of proteins for targeted gene therapy</li><li>Finding protein-protein, protein-RNA, and protein-DNA recognition codes</li><li>Developing gene ontologies and an effective way to describe the functions of any gene or protein</li><li>Complete construction of orthologous and paralogous groups of genes</li><li>Integrating observations across multi-omic and multi-level data to discover environmental models for analyzing organismal interaction</li><li>Building understanding of protein evolution with regards to function</li><li>A method of rapidly assessing polymorphic genetic variations</li><li>A predictive model of when transcription initiates and terminates</li><li>Modeling signal transduction pathways to predict cellular response to external stimuli</li><li>Simulating membrane structure and dynamic structure over time</li><li>Effective methods to educate bioinformaticians within tertiary education</li></ol><h4>Rapid structural and topological clustering of proteins</h4><p>Protein clustering is extremely useful for bioinformatics analysis since it can determine the hierarchical organization of protein interaction and help support drug target efforts. Current tools for analyzing proteins revolve around machine learning clustering algorithms. For instance, this <a href="https://pubmed.ncbi.nlm.nih.gov/26073648/">paper</a> talks about network-based clustering and similarity-based clustering to reveal novel functional details about the protein. Current tools that exist in the space are <a href="https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-019-2973-4">RAFTS3G</a> and <a href="https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-14-248">kClust</a>.</p><h4>Determining the structure of macromolecular assemblies and complexes</h4><p>Macromolecular complexes are a stable assembly of two or more macromolecules, such as proteins and carbohydrates, where the underlying components work together. This research area primarily focuses on particular subsystems and how their structure drives certain eukaryotic processes. Due to the ad-hoc nature of these complexes, no large-scale tools have been created, but specific queries into proteins, such as <a href="https://www.cell.com/structure/pdf/S0969-2126(00)00061-7.pdf">actomyosin and actin</a>, have been made.</p><h4>Simulating realistic oligomeric systems over time</h4><p>Oligomeric systems refer to molecules that consist of similar or repeating units, such as polypeptide chains. Simulating these systems in time allows bioinformaticians to model macromolecule interactions in real-time; however, current strides are stunted due to the extensive computing capacity needed. One <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2674793/">paper</a> in the field analyzes Aβ peptides and simulates them at various experimental concentrations and timescales.</p><h4>Prediction of unknown molecular structures</h4><p>Although similar to Topic #2, prediction finds the most likely probability state of the structure, while determination refers to exact answers. Such problems include folding a protein from its primary or secondary structure while minimizing free energy requirements. Clear competitors in the space include DeepMind with its <a href="https://deepmind.com/blog/article/alphafold-a-solution-to-a-50-year-old-grand-challenge-in-biology">AlphaFold</a> protein folding model.</p><h4>A platform for a complete analysis of genome-genome comparison</h4><p>Full genome-genome analysis tools are currently available, but require updating as new genomic analyses come out. Subtools within these platforms include read alignment, quantification, variant calling, trimming, quality control metrics, evolutionary analysis, among other methods. Platforms that are currently available include <a href="https://academic.oup.com/bioinformatics/article/35/24/5303/5539862">geneCo</a> and <a href="https://genomevolution.org/">CoGe</a>.</p><h4>Simulating genetic networks and their sensitivity to stoichiometric and kinetic interactions</h4><p>Network analysis is a new and evolving field; common biological networks include regulatory networks, metabolic networks, signaling networks, protein networks, and co-expression networks. Stochastic and probabilistic methods occur for traversing these structures based on predefined rules but may prove polynomial or higher time complexity to analyze all nodes in the graph. One <a href="https://www.pnas.org/content/112/30/E4046">application</a> of this work involves understanding how mutation through regulatory networks affects oncogenesis.</p><h4>Building understanding of speciation from a molecular perspective</h4><p>Speciation looks at the formation of new species in the course of evolution. Although evolutionary history has been extensively mapped out, inferring speciation events from evolutionary genes will prove useful for discovering new adaptations; one <a href="https://watermark.silverchair.com/170821.pdf?token=AQECAHi208BE49Ooan9kkhW_Ercy7Dm3ZL_9Cf3qfKAc485ysgAAAuAwggLcBgkqhkiG9w0BBwagggLNMIICyQIBADCCAsIGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMLq0i6t1nnuwluFsVAgEQgIICkzbQJ-y3WudNkEohpuyY65WX0Iehrkj3HS9DUovRzbQDJ_xJBiV7XFdu_-YuEYOdaz3lfwjC3PZ1uJr60Q9HqN4ZZYR69mRcyUoCFs_qsDhRZw70IoCJlCYg4Hv6gH29XTpvFNAb9LZroMh8w5e0VPVOZuFhcbd57SeSTWC0870hOKLf0wj4icrk1o-NA88C0knwRkY22F4pW8cjB3kx9OYwpP0iPJZ7jzNndFsWi0zZO-Bgot8L_qcNcHkN-4nRZm4tTwhU-ssyzyRUXo0svJp67mbTTc0EaouItmoDDiPoYhJflN0X3prd0Gp3lYv-WLiqUQOP2mcmMkvYetXmIGJSYB6QnGkrfFvSAO4lOyjw6yLaVIYF3G7-cmke8nzVZMgGtzrzzuVsbIaNcw0lynzzb20EH5FRhDhXIOogHHfYlk2YcDx580ifmvZNHJz40ZMnDuY9Hx3DAvgbBu2UuPJlpyGLIGsPqZteteLYrYOe5U4uHTaz42mQiLFxB_glqCS5gGkKClDbYBnrHt7vA9C7Ode2L_XuHfG9Wc1QQe8W-3_tRzK-SqnBO0FGigoOtK8jYb4Rx1qyoLsn1SNGcXrUtEQj87Qea-0_P6UrdffaRW7D-EYGnmBmrTLDMnw129LZASXd1JvLM6I8UUkKlm4BfU9bkkXCKp6Md-BpZ-LHQimczDrdiWsHJ8qnEu1eeCKrdmvVzDgoo0kU76mBd3lSa4lfNWSkUyiHwhJK7K1S1WHobp4M81EPJY4cGsOXPpjr3NknpiWzKynPNS5s0Wk8XuIS_tpRsnsDMKOzWO0Qe_UBbiLFW3ZPgOA72omg6pj4O0Hjyrte17aRBn2S64ygrNx2aZbqOZSZtL9I6DvCfvAf">paper</a> uses inference methods to infer events from a gene tree.</p><h4>Accurate biological structure prediction from minimal data</h4><p>Similar to Topic #4, we look at biological structure prediction but from the context of minimal data, in which case probabilistic models must be used. Real-world data likely comes flawed or in small sizes, so deriving inferences from this data will be useful in many clinical and research applications. One such <a href="https://academic.oup.com/bioinformatics/article/34/19/3308/4987145">application</a> involves analyzing residue-residue contact prediction for proteins from just biological sequencing data (<a href="https://github.com/psipred/DeepCov">Github</a>).</p><h4>A complete model that predicts RNA or alternative splicing from a primary transcript</h4><p>RNA splicing is when an RNA transcript is changed by removing introns and joining exons; discovering where these introns are can help computational biologists determine its secondary and tertiary model from a non-mature mRNA. Using neural networks, <a href="https://www.cell.com/cell/pdf/S0092-8674(18)31629-5.pdf">splice junction prediction</a> has been attempted to discover intronic mutations that can cause pathogenesis.</p><h4>Designing small molecule inhibitors of proteins for targeted gene therapy</h4><p>Designing small molecule inhibitors has large repercussions in oncogenetics, since large molecules can be used to obstruct major enzymes that act as signals for further cancer cell development; the practice ties with targeted gene therapy and requires bioinformatics to determine the optimal location in a protein to attach upon. <a href="https://www.future-science.com/doi/pdf/10.4155/fmc.12.185">Research</a> has already been done on designing small-molecule inhibitors for understanding and protecting against myosin dysfunction.</p><h4>Finding protein-protein, protein-RNA, and protein-DNA recognition codes</h4><p>Protein-protein recognition codes refer to amino acid residues on a protein surface that show specific DNA, and similar definitions hold true for other combinations. Research has been done on a ‘chemical’ level looking at amino acid side chains and DNA bases, and from a ‘stereochemical’ level looking at DNA-binding motif found in transcription factors. One such <a href="https://pubmed.ncbi.nlm.nih.gov/8087558/">paper</a> combined these two rules to create a unique recognition code for proteins.</p><h4>Developing gene ontologies and an effective way to describe the functions of any gene or protein</h4><p>Gene ontology refers to finding representations for gene and gene attributes across all species, and major headway has been made through the <a href="http://geneontology.org/">Gene Ontology knowledge base</a>. It provides knowledge of the biological domain from a molecular standpoint (e.g. catalytic, transporter), cellular standpoint (e.g. ribosomal), and a broad biological standpoint (e.g. DNA repair, signal transduction).</p><h4>Complete construction of orthologous and paralogous groups of genes</h4><p>Orthologous genes refer to genes that diverged after a speciation event (see Topic #7 for more about speciation), while paralogous genes diverge from one another within a species. Current methods of identifying orthologous genes involve phylogenetic analysis through sequence conservation, which can prove computational expensive to create. Some new tools for orthology identification are seen in this <a href="https://www.frontiersin.org/articles/10.3389/fgene.2017.00165/full">paper</a>, discussing how to detect remotely conserved orthologs, conduct accurate orthology inference, among other tools.</p><h4>Integrating observations across multi-omic and multi-level data to discover environmental models for analyzing organismal interaction</h4><p>A large problem after analyzing omic data separately is that cross-omic inference must be made to make large-scale observations about the organism. This field called multiomics looks across the genome, transcriptome, epigenome, metabolome, and microbiome, to understand mechanisms that underlie biological processes and functions. A review paper talking about the field with regards to data integration can be found <a href="https://www.frontiersin.org/articles/10.3389/fgene.2020.610798/full">here</a>.</p><h4>Building understanding of protein evolution with regards to function</h4><p>Beyond gene ontologies discussed in Topic #12, we now look at how evolution plays a role in the function of a protein, and how a protein’s structure changes over time as a result of evolution. Two approaches can be taken: analyzing this from a biophysics perspective (looking at chemical structure changes) and from a bioinformatics perspective (looking at whole-scale organismal data changes). A recent <a href="https://elifesciences.org/articles/39705">paper</a> looking at functional conservation’s role in protein evolution discovered minimal changes in orthologous protein sequences over large periods of time.</p><h4>A method of rapidly assessing polymorphic genetic variations</h4><p>Current tools for understanding genetic variation lie in linkage disequilibrium for Mendelian disease and GWAS/eQTL studies for non-Mendelian disease. Some current pathways involve finding other ways to analyze non-Mendelian disease, determining cross-correlations between various GWAS through <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5722032/">two-sample Mendelian Randomization</a>, and optimizing existing statistical tests to find conserved regions. One tool called <a href="https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-021-04117-4">MAPS</a> takes image data to run a rapid assessment of genetic variants.</p><h4>A predictive model of when transcription initiates and terminates</h4><p>Genomic parts to analyze when looking at transcription involve transcription start sites, promoter regions, and termination strands; more biological components include transcription inhibitors and RNA polymerase activation enzymes. Some tools in the space include <a href="https://www.nature.com/articles/s41598-020-57811-3">ADAPT-CAGE</a>, which analyzes capping sites, and <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4804766/">TIPR</a>, a sequence-based ML model that identifies gene transcription start sites.</p><h4>Modeling signal transduction pathways to predict cellular response to external stimuli</h4><p>Factors to look for include hydrophobicity, posttranslational modification, transmembrane structure, secondary/tertiary structure, signal peptide structure, subcellular localization, and physical/chemical properties. Some studies look at Hidden Markov Models to analyze CpG islands, methylated sites, and ligand-receptor pairs. There are no current tools for large-scale analysis as it depends primarily on cell-type analysis.</p><h4>Simulating membrane structure and dynamic structure over time</h4><p>Similar to other simulations talked about previously, membrane structure changes over time and involves thousands, if not millions, of biological components to function effectively; thus, simulation proves computationally taxing. Nevertheless, biomembrane simulations are being developed to study behavior involving molecular composition and structure. This <a href="https://pubs.acs.org/doi/10.1021/acs.chemrev.8b00538">paper</a> goes into detail about biological membranes and their various components.</p><h4>Effective methods to educate bioinformaticians within tertiary education</h4><p>There are many problems with the current system of bioinformatics. First, there are numerous niche areas in bioinformatics, which require new educational programs to address them. Next, there isn’t a single bioinformatics education that can teach everything there is to know about the subject. Third, there is less distribution of bioinformatics content to undergraduate students and computer science majors. This <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1289384/">paper</a> goes into greater detail about other issues.</p><p><em>If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d82a38897b34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Identifying Promoter Regions Using the Viterbi Algorithm]]></title>
            <link>https://medium.com/analytics-vidhya/identifying-promoter-regions-using-the-viterbi-algorithm-e719054046f8?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/e719054046f8</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[enjoy-writing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Mon, 15 Nov 2021 00:37:54 GMT</pubDate>
            <atom:updated>2021-11-15T00:39:02.257Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/673/0*vPZ249vrRzVGc_fC.jpg" /></figure><p>Due to the versatility of DNA, it’s crucially important to determine what certain parts of the gene do. Looking at RNA polymerase transcription, it’s clear that there are three major regions in genes:</p><ul><li><strong>Promoter regions: </strong>regions upstream or next to where a gene will be transcribed that RNA polymerase binds to</li><li><strong>Coding regions:</strong> the portion of the DNA or RNA that codes for proteins</li><li><strong>Termination region:</strong> regions downstream that signal for RNA polymerase to break off</li></ul><p>Promoter regions are a vital part of gene expression as they control the binding of RNA polymerase to DNA. As a result, it’s crucial for applications in genetic engineering and gene analysis to determine what gene codes for which proteins and how to alter those proteins.</p><h3>Hidden Markov Models</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xvo94Dc3vEjKrHuLVtHYeQ.png" /><figcaption>Example of a Hidden Markov Model.</figcaption></figure><p>Let’s start off with a basic Hidden Markov Model. These Hidden Markov Models are assumed to be Markov processes with hidden states. We define the following terms:</p><ul><li><strong>Observations/emissions:</strong> These are the observations that the user is giving to the model. For this particular model, these would be “Walk”, “Shop”, and “Clean”.</li><li><strong>States:</strong> These are the “hidden” values that we are trying to infer from the observations using probability analysis. For this particular model, these would be “Rainy” and “Sunny”.</li></ul><p>Each arrow represents a different probability. For instance, the Rainy to Sunny probability is an arrow pointing from Rainy to Sunny with a probability of 0.6. This means that there is a 60% chance that from a Rainy state, it will move to a Sunny state in the next step. These are the various probabilities:</p><ul><li><strong>Initial probabilities: </strong>These are the probabilities that the states will take place in the first step. One such example is that there is a 30% chance of starting at the Rainy state. In other words, P(Rainy) = 0.3.</li><li><strong>Transition probabilities:</strong> These are the probabilities within various states. One such example is the one aforementioned about Rainy to Sunny. Assuming t_k is the current state, we can say P(t_k+1 = “Sunny” | t_k = “Rainy”) = 0.6.</li><li><strong>Emission probabilities:</strong> These are the probabilities that a state will cause this particular emission. For instance, P(Shop | Rainy) = 0.4.</li></ul><h4>Converting to Code</h4><p>Bio.HMM.MarkovModel provides a useful tool for initializing these Hidden Markov Models for analysis.</p><pre>from Bio.HMM.MarkovModel import HiddenMarkovModel</pre><pre><strong>transition_alphabet</strong> = [&#39;Rainy&#39;, &#39;Sunny&#39;]<br><strong>emission_alphabet</strong> = [&#39;W&#39;, &#39;S&#39;, &#39;C&#39;] # W - walk, S - shop, C - clean</pre><pre><strong>initial_prob</strong> = {&#39;Rainy&#39;: 0.3, &#39;Sunny&#39;: 0.7}<br><strong>transition_prob</strong> = {(&#39;Rainy&#39;, &#39;Rainy&#39;): 0.4,<br>                 (&#39;Rainy&#39;, &#39;Sunny&#39;): 0.6,<br>                 (&#39;Sunny&#39;, &#39;Rainy&#39;): 0.2,<br>                 (&#39;Sunny&#39;, &#39;Sunny&#39;): 0.8}<br><strong>emission_prob</strong> = {(&#39;Rainy&#39;, &#39;W&#39;): 0.1,<br>                 (&#39;Rainy&#39;, &#39;S&#39;): 0.4,<br>                 (&#39;Rainy&#39;, &#39;C&#39;): 0.5,<br>                 (&#39;Sunny&#39;, &#39;W&#39;): 0.6,<br>                 (&#39;Sunny&#39;, &#39;S&#39;): 0.3,<br>                 (&#39;Sunny&#39;, &#39;C&#39;): 0.1}</pre><pre><strong>model</strong> = HiddenMarkovModel(transition_alphabet, emission_alphabet, initial_prob, transition_prob, emission_prob, 1, 1)</pre><h4>Viterbi Algorithm</h4><p>Viterbi allows us to <strong>infer the most optimal hidden states from a given observation.</strong> A more detailed analysis of Viterbi will be given below, but using BioHMM, we can utilize the power of Viterbi through one line of code.</p><pre>model.viterbi(Seq(&#39;WSC&#39;), transition_alphabet)</pre><p>This provides an output of:</p><pre>(Seq(&#39;SunnySunnyRainy&#39;), -4.5972020163389145)</pre><p>If given a sequence of “Walk”, “Shop”, and “Clean”, you might be given hidden states of “Sunny”, “Sunny”, and “Rainy” respectively for each of those steps. We can see that the probability of this is 10^(-4.597). These may seem like small numbers until noting that there is repeated multiplication of decimal numbers, meaning a <strong>smaller number is very likely.</strong></p><h3>Identifying Promoter Regions</h3><p>Let’s take a more complicated example where the two states are background or promoter regions, while the emission probabilities are the various nucleotides (A, T, C, G).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fpcZ4NY7t93XGpmeuEjrxg.png" /><figcaption>Example of Hidden Markov Model in biology.</figcaption></figure><p>Note that there are no initial probabilities set over here so the initial probability of starting in some state s is<strong> P(s) = 1/n </strong>for n states.</p><pre>from Bio.HMM.MarkovModel import HiddenMarkovModel</pre><pre><strong>transition_alphabet</strong> = [&#39;B&#39;, &#39;P&#39;] # B - background, P - promoter<br><strong>emission_alphabet</strong> = [&#39;A&#39;, &#39;T&#39;, &#39;C&#39;, &#39;G&#39;]<br><strong>initial_prob</strong> = {&#39;B&#39;: 0.5, &#39;P&#39;: 0.5}<br><strong>transition_prob</strong> = {(&#39;B&#39;, &#39;B&#39;): 0.85,<br>                  (&#39;B&#39;, &#39;P&#39;): 0.15,<br>                  (&#39;P&#39;, &#39;P&#39;): 0.75,<br>                  (&#39;P&#39;, &#39;B&#39;): 0.25}<br><strong>emission_prob</strong> = {(&#39;B&#39;, &#39;A&#39;): 0.25,<br>                (&#39;B&#39;, &#39;T&#39;): 0.25,<br>                (&#39;B&#39;, &#39;C&#39;): 0.25,<br>                (&#39;B&#39;, &#39;G&#39;): 0.25,<br>                (&#39;P&#39;, &#39;A&#39;): 0.15,<br>                (&#39;P&#39;, &#39;T&#39;): 0.13,<br>                (&#39;P&#39;, &#39;C&#39;): 0.42,<br>                (&#39;P&#39;, &#39;G&#39;): 0.3}</pre><pre>model = HiddenMarkovModel(transition_alphabet, emission_alphabet, initial_prob, transition_prob, emission_prob, 1, 1)</pre><p>Similar to above, we can use Viterbi:</p><pre>model.viterbi(Seq(&#39;AGTACACTGGT&#39;), transition_alphabet)<br>model.viterbi(Seq(&#39;GCGCGCGCAA&#39;), transition_alphabet)</pre><p>These provide respective outputs of:</p><pre>(Seq(&#39;BBBBBBBBBBB&#39;), -17.567574447856494)<br>(Seq(&#39;PPPPPPPPBB&#39;), -15.314217188702496)</pre><p>As we can see in the first example, a sequence of ‘AGTACACTGGT’ has a probable state of being all background regions. This makes sense because from looking at emission probabilities <strong>there are low chances of promoter regions interacting with A’s or T’s</strong> with emission probabilities of 0.15 and 0.13 respectively.</p><p>However, in the second example, due to high numbers of C’s and G’s, a sequence of ‘GCGCGCGCAA’ has a probable state of being all promoter regions. This makes sense as <strong>CpG islands are common places for gene promoter regions.</strong></p><h3>HMMs with “Memory”</h3><p>Lastly, we can increase the quality of our analysis by considering dinucleotide sequences. <strong>What if we could improve the accuracy of our state estimation by considering what the last nucleotide was?</strong> This would allow for stronger predictions as this is a likely scenario in our DNA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbP8qGTE_e47Ms9x7QFpTQ.png" /></figure><p>The following state pattern is seen with 8 states: A+, A-, C+, C-, G+, G-, T+, T-. + represents promoter regions, while - represents background regions. The letter in front of the symbol represents what the last nucleotide was.</p><p><strong>Transition probabilities</strong> <strong>were taken from Durbin, Eddy, et al. 1998</strong>, while emission probabilities are trivial (if the letter in the state matches the letter in the emission, then the probability is 1). Initial probabilities were defined by 1/n, such that all states had random initial probabilities of 0.125.</p><p>The transition probabilities were initialized like follows:</p><pre>array_promoter = [0.18, 0.274, 0.426, 0.12, 0.171, 0.368, 0.274, 0.188, 0.161, 0.339, 0.375, 0.125, 0.079, 0.355, 0.384, 0.182]<br>vals_pp = [0.75*val for val in array_promoter]<br>vals_pb = [0.25*val for val in array_promoter]<br>array_background = [0.3, 0.205, 0.285, 0.21, 0.322, 0.298, 0.078, 0.302, 0.248, 0.246, 0.298, 0.208, 0.177, 0.239, 0.292, 0.292]<br>vals_bp = [0.15*val for val in array_background]<br>vals_bb = [0.85*val for val in array_background]</pre><p>The first array looks at probabilities when the starting state is a promoter. It goes as follows AA, AC, AG, AT, …. Going from a <strong>promoter to promoter region has a</strong> <strong>transition probability of 75% while transitioning to a background region is 25%.</strong> Thus these numbers were accordingly multiplied to represent true estimates. The same was done for when the starting state was background.</p><p>After initializing, we can use Viterbi:</p><pre>model.viterbi(Seq(&#39;AGTACACTGGT&#39;), transition_alphabet)<br>model.viterbi(Seq(&#39;GCGCGCGCAA&#39;), transition_alphabet)</pre><p>We get the following results:</p><pre>(Seq(&#39;A-G-T-A-C-A-C-T-G-G-T-&#39;), -17.77362274426406)<br>(Seq(&#39;G+C+G+C+G+C+G+C-A-A-&#39;), -16.064944938458574)</pre><p>Notice that the results remain mostly the same with a slight difference in the second example having 3 background nucleotides. These slight variations show that HMMs with memory have <strong>slight accuracy increases but not by as much due to the high accuracy of mononucleotide HMMs.</strong></p><h3>Viterbi Algorithm</h3><p>Viterbi was coded to determine its efficacy compared to BioHMM’s interpretation of the Viterbi algorithm.</p><p><em>Note that prior knowledge of the Viterbi algorithm is likely needed to understand the next section. For help, go </em><a href="https://medium.com/analytics-vidhya/viterbi-algorithm-for-prediction-with-hmm-part-3-of-the-hmm-series-6466ce2f5dc6"><em>here</em></a><em>.</em></p><pre>def viterbi_algorithm(observations, states, start_p, trans_p, emit_p, table):<br>    V = [{}]<br>    <br>    for st in states:<br>        V[0][st] = {&quot;prob&quot;: start_p[st] * emit_p[st][observations[0]], &quot;prev&quot;: None}</pre><p>We first start off with defining V, where all steps in our Viterbi algorithm will be stored for printing in the future. We then iterate over all states and create a dictionary<strong> initialized with initial probabilities and previous pointers</strong> (note this is the first step, so there are no previous pointers).</p><pre>for t in range(1, len(observations)):<br>        V.append({})</pre><pre>        for st in states:<br>            max_tr_prob = V[t - 1][states[0]][&quot;prob&quot;] * trans_p[states[0]][st]<br>            prev_st_selected = states[0] </pre><pre>            for prev_st in states[1:]:<br>                tr_prob = V[t - 1][prev_st][&quot;prob&quot;] * trans_p[prev_st][st]</pre><pre>                if tr_prob &gt; max_tr_prob:<br>                    max_tr_prob = tr_prob<br>                    prev_st_selected = prev_st<br> <br>            max_prob = max_tr_prob * emit_p[st][observations[t]]<br>            V[t][st] = {&quot;prob&quot;: max_prob, &quot;prev&quot;: prev_st_selected}</pre><p>This creates pointers for the Viterbi program. The program runs by <strong>determining the maximum transition probability possible by multiplying the probabilities of the last step with the transition probabilities.</strong></p><p>It updates this by iterating through each state, and then multiples the best transition state by its corresponding emission probability for finally storing in V. It does this for every single state and for as many steps as the length of the sequence is determined.</p><pre>opt = []<br>max_prob = 0.0<br>best_st = None<br> <br>for st, data in V[-1].items():<br>    if data[&quot;prob&quot;] &gt; max_prob:<br>        max_prob = data[&quot;prob&quot;]<br>        best_st = st<br>    opt.append(best_st)<br>    previous = best_st</pre><p>This determines the <strong>maximum probability state for the last step</strong> to start the traceback.</p><pre>for t in range(len(V) - 2, -1, -1):<br>        opt.insert(0, V[t + 1][previous][&quot;prev&quot;])<br>        previous = V[t + 1][previous][&quot;prev&quot;]</pre><pre>print (&quot; &quot;.join(opt) + &quot;, probability = %s&quot; % max_prob)</pre><p>It then<strong> traces back through the pointer matrix</strong> and looks at “prev” to determine the optimal pathway. Lastly, it prints the final result to the compiler with the maximum probability.</p><p>Running this model on the sequence of ‘GCGCGCGCAA’, the following DP table was created with the following results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1xW1iQId1LmoDDHWBAoWA.png" /><figcaption>Final result of the self-coded Viterbi algorithm.</figcaption></figure><p>Comparing the results of the self-coded Viterbi algorithm to the HiddenMarkovModel implementation gives the following:</p><pre>HiddenMarkovModel Implementation<br>G+C+G+C+G+C+G+C-A-A-, probability = -16.064944938458574<br><br>Own Implementation<br>G+C+G+C+G+C+G+C-A-A-, probability = 1.0545885728228732e-07</pre><p>As seen here, they had the same resulting states, showing that the model did indeed work the same for both.</p><p><em>View my Github </em><a href="https://github.com/adityamittal13/Hidden-Markov-Models"><em>repository</em></a><em> for more information and for access to the full code for the project!</em></p><h3>TL;DR</h3><ul><li>Hidden Markov Models have both states and emissions, which are interconnected by conditional probability scores.</li><li>Hidden Markov Models are a tool used to infer whether a region is a promoter or background region based on a sequence of nucleotides.</li><li>The Viterbi algorithm is a dynamic programming algorithm that allows for this process to occur by looking at various transition and emission probabilities and keeping a pointer matrix to trace back through.</li></ul><p><em>If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e719054046f8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/identifying-promoter-regions-using-the-viterbi-algorithm-e719054046f8">Identifying Promoter Regions Using the Viterbi Algorithm</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inscripta: The Future of Gene Editing]]></title>
            <link>https://medium.com/analytics-vidhya/inscripta-the-future-of-gene-editing-80b52b251ead?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/80b52b251ead</guid>
            <category><![CDATA[inscripta]]></category>
            <category><![CDATA[enjoy-writing]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[world]]></category>
            <category><![CDATA[gene]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Wed, 29 Sep 2021 23:43:34 GMT</pubDate>
            <atom:updated>2021-10-02T03:02:12.727Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XIo3--z-0FtNZ0Ek.jpg" /></figure><p>As a company that recognizes that genes have already been read, <a href="http://inscripta.com/">Inscripta</a> is blazing the way for the future by trying to write them through gene editing. Inscripta as a company is trying to make the first automated technology that is able to streamline the process of gene editing by CRISPR, which normally is a long, laborious process.</p><p>Through the Onyx platform, this process is simplified for scientists and allows them to look at genotype and variant analysis, while easily taking a deeper dive into the genomics they are researching. The program has the following:</p><ul><li><strong>Immense scale: </strong>It’s able to run parallel libraries quickly, power diverse edits (insertions, deletions, substitutions, mutations), and accelerate analysis. Compared to other competitors, it is able to use 1.5x less CPU power but run in 2x less time.</li><li><strong>Greater audience: </strong>It’s able to reach a larger community since gene editing expertise is not required for running the application. Due to the technicality of gene editing, it’s inaccessible to many outside a scientific community, but Inscripta’s platform will allow anyone prototyping gene editing to be able to streamline their analysis without much prior knowledge.</li></ul><h3>Current Products</h3><h4>Onyx Instrument</h4><p>This instrument automates many of the parallel genome engineering experiments, including CRISPR gene editing, cell growth, and cell recovery, with results available within a couple of days.</p><p>Due to its automatic pipeline, by simply installing the reagents, you will be able to run tens of analyses and monitor how it runs from the portal. It contains five microfluidic devices for these purposes:</p><ul><li><strong>Cell Growth Cuvette: </strong>managing/measuring optimal cell growth; Cuvettes are simply containers with straight sides and a square/circular cross-section on the bottom. They are used for holding samples for analysis, and Onyx’s cell growth cuvette is specialized in monitoring cells participating in cell growth.</li><li><strong>Microfluidic Cell Controller: </strong>preparing cells for electroporation; Microfluidics is used to more accurately represent a cell’s environment and control the cell during growth.</li><li><strong>Microfluidic Cell Transformer: </strong>performs electroporation; Electroporation is able to convert animal and plants cells by applying an electric field and introducing genes into the organism.</li><li><strong>Cell Recovery Cuvette: </strong>managing cell growth during recovery; Similar to cell growth cuvettes, they monitor the cell as it “recovers” from the electroporation process.</li><li><strong>Digital Engineering Processor: </strong>normalizing cell editing and growth; This process reviews DNA changes and normalizes them to reduce further growth of the cell outside of the control period.</li></ul><h4>Onyx Gene Editing Kits</h4><p>These are customized to allow for the precise editing of the genome and accurately tracking the entire cell population through the use of nearly 10,000 Design DNAs.</p><p>Normally, in CRISPR, only one edit is performed per well, but by linking gRNA with the donor template, now over 10,000 edits can be multiplexed in a single tube with one ready-to-use cartridge per experiment.</p><h4>Onyx Genotyping Assays</h4><p>There are three major assays used by Onyx:</p><ul><li><strong>Control Edit Assay: </strong>a Sanger sequencing experiment that detects the absence or presence of internal control edits</li><li><strong>Onyx Barcode Diversity Assay: </strong>a library preparation kit for NGS using Illumina — allows for the derivation of distribution of edits</li><li><strong>Onyx Edit Identification Assay: </strong>library preparation kit for WGS using Illumina — can be run with isolates or pooled samples</li></ul><h4>Onyx Engineering Portal</h4><p>This platform allows for the expediting of the genetic engineering process, due to its cloud-based system that allows for the design of thousands of genomic edits with maximal speed and efficiency. In addition to making the edits, there is the option to also review them with regards to their genomic context.</p><h3>BioCantor</h3><p><a href="https://inscripta.b-cdn.net/uploads/downloads/BioCantor-Publication-July-2021_2021-08-26-000011_mnxd.pdf?v=1629936011">BioCantor</a> is one of the tools that Inscripta has offered through a Python library; it allows for efficient transformations of arbitrarily related coordinate systems and analysis of genomic features.</p><p>It allows for the following features:</p><ul><li><strong>“Genomic feature arithmetic”</strong> — allowing for coordinate conversion of various features, binary and unary set operations across arbitrary coordinate systems</li><li><strong>Abstraction — </strong>abstracts the process of converting genomic coordinate systems from the user</li><li><strong>File format conversion</strong> — importing and exported known file formats.</li></ul><h4>Process</h4><p>The basis of the BioCantor paradigm is that objects are defined by parent/child relationships. Once this hierarchy has been created, then coordinate operations can move around this hierarchy such converting feature annotations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*5gWnXB9LOpbDCGbnnWpatQ.png" /><figcaption>Example of usage of objects for referring to a parent sequence.</figcaption></figure><p>There are three main object types:</p><ul><li><strong>Location</strong> — represents blocked and stranded features represented by zero-based end coordinates; It has three implementations: EmptyLocation, SingleInterval (continuous interval), and CompoundInterval</li><li><strong>Sequence</strong> — holds sequence data</li><li><strong>Parent</strong> — defines parent/child relationships</li></ul><p>BioCantor’s input files are normally GFF, FASTA, and GenBank files and are then parsed by BioCantor into GenBank, GFF3, NCBI TBL, and BED. Note that intermediate steps can be serialized to disk in JSON format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*n_O496Wq-4CrKpblxPjFcQ.png" /><figcaption>JSON form of intermediate gene model step.</figcaption></figure><h3>How Is Inscripta Pushing the Status Quo?</h3><p>Inscripta is using and iterating on past algorithms and ideas to make the gene engineering process as streamlined as possible. For instance, BioCantor’s purpose was to iterate on past algorithms that weren’t able to easy convert between gene coordinate systems, such as Bedtools, BEDOPS, Pybedtools, and PyRanges.</p><p>With Inscripta, <strong>companies no longer have to spend thousands of dollars and hundreds of hours on analyzing gene editing data and can run a fully automated setup available through Onyx.</strong> This will allow for further advancements in gene editing, so scientists are able to free more time for experimentation rather than data analysis.</p><p>As seen above, Inscripta is doing some incredible things in the gene engineering space and will likely continue to do so in the future, revolutionizing the future. I’m excited to see what Inscripta does next, and how it will push the frontier of gene editing further.</p><p><em>If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80b52b251ead" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/inscripta-the-future-of-gene-editing-80b52b251ead">Inscripta: The Future of Gene Editing</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimal Secondary RNA Alignment and Nussinov’s Algorithm]]></title>
            <link>https://medium.com/analytics-vidhya/optimal-secondary-rna-alignment-and-nussinovs-algorithm-c352b3445adf?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/c352b3445adf</guid>
            <category><![CDATA[computational-biology]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[bioinformatics]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Sun, 19 Sep 2021 21:52:39 GMT</pubDate>
            <atom:updated>2021-09-19T22:16:38.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*hds3DUuEUFRBYpw3.jpg" /><figcaption>Example of Nussinov’s algorithm in action. (<a href="https://www.sciencedirect.com/science/article/pii/B9780128012130000137">Image Source</a>)</figcaption></figure><p><em>Note: Before reading this article, read </em><a href="https://medium.com/analytics-vidhya/sequence-alignment-and-the-needleman-wunsch-algorithm-710c7b1a23a4"><em>Sequence Alignment and the Needleman-Wunsch Algorithm</em></a><em> to understand primary sequence alignment and dynamic programming; here, we extend our analysis to secondary RNA alignment through Nussinov’s Algorithm.</em></p><h3>Terminology</h3><h4>RNA Terms</h4><ul><li><strong>RNA: </strong>ribonucleic acid comprised of the 5-carbon sugar, ribose, which is attached to an organic base</li><li><strong>Uracil:</strong> a non-methylated nucleotide base in place of thymine which provides flexibility to RNA</li><li><strong>Riboswitches: </strong>a<strong> </strong>regulatory segment of mRNA molecule that binds a small molecule</li><li><strong>microRNAs: </strong>novel non-protein layers of gene regulation</li><li><strong>piRNA: </strong>largest class of small non-coding RNA molecules in animals — silencing of transposons, epigenetic modifications, and post-transcriptional gene silencing</li><li><strong>lncRNAs</strong>: long transcripts produced operating functionally as RNAs — not translated to proteins</li></ul><h4>RNA Structure</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*QZ7FlwzUNz1svbSv.png" /><figcaption>Visual representation of RNA structures. (<a href="https://www.researchgate.net/figure/RNA-primary-secondary-and-tertiary-structures_fig1_344325555">Image Source</a>)</figcaption></figure><p>RNA structure is comprised of three different levels: primary, secondary, and tertiary.</p><ul><li><strong>Primary:</strong> sequence in which the bases (U, A, C, G) are aligned</li><li><strong>Secondary: </strong>2-D analysis of hydrogen bonds between different parts of RNA — double-strand</li><li><strong>Tertiary: </strong>complete 3-D structure of RNA — “how string bends where it twists”</li></ul><h4>Secondary Structure</h4><p><strong>Let a secondary structure be a vertex-labeled graph on n vertices with an adjacency matrix A. </strong>Let A (i, j) be the adjacency between the ith and jth base pair in a transcriptome.</p><p>Here are some assumptions:</p><ul><li>A continuous backbone is defined when A(i, i+1) = 1 for all i from 1 to n.</li><li>For each i from 1 to n, there is at most one A(i, j) = 1 where j &lt;i-1. This means a base only forms a pair with one other at the time.</li><li>We ignore pseudo knots by saying if A(i,j)=A(k,l)=1 and i &lt; k &lt; j, then i &lt; l &lt; j.</li></ul><h3>Nussinov’s Algorithm</h3><h4>Goal</h4><p>Our goal through this analysis is to <strong>predict the secondary structure of RNA, given its primary structure or sequence. </strong>Using dynamic programming, this can be found by creating a structure with the least free energy, where free energy is defined arbitrarily by a model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/194/1*4YvFLW-0dq5agLZhfvOCGA.png" /><figcaption>Example of an arbitrary model. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><p>By convention, negative free energy is stabilizing, while positive free energy is non-stabilizing. Note dynamic programming can be used for the following reasons:</p><ul><li>The scoring scheme of the model follows an additive property.</li><li>Psuedoknots were not allowed, which means the RNA can be split into two smaller ones that are independent of one another.</li></ul><p>Thus, mathematically, <strong>we want to find a matrix E(i,j) where we can calculate the minimum free energy for subsequence i to j.</strong></p><h4>Algorithm — Initialization</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*jGQE4r0aUVtitn6p9VFM8A.png" /><figcaption>Example initialization matrix.</figcaption></figure><p>A simple initialization matrix can be seen here where the diagonal is initialized to 0, and where complementary base pairings are stored as -1, while noncomplementary base pairings are stored as 0.</p><h4>Algorithm — DP</h4><p>The intuition is as follows:</p><ul><li>With a subsequence from i to j, there is either no edge connecting the ith base (unpaired) or there is some edge connecting the ith based to the kth base where i &lt; k ≤ j.</li><li>If the edge is unpaired, the energy of subsequence E(i,j) reduces to the energy of a subsequence E(i+1, j).</li><li>If the edge is paired, then the energy of subsequence E(i,j) becomes E(i, k-1) + E(k+1, j) + the energy contribution of the i,k pairing.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*RDtlOrBk3B4U1PxoldX7xg.png" /><figcaption>Intuition behind Nussinov’s algorithm. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><p><strong>The model then backtracks through the entire matrix to find the optimal free energy alignment.</strong></p><p>Let K be the traceback matrix. If K(i,j) = 0 then the model backtracks to K(i+1, j) as mentioned above. If K(i,j)=1, then the model backtracks to both K(i+1, K(i,j)-1) and K(K(i,j) +1, j). This continues until the optimal structure is found.</p><h4>Applications</h4><p>By being able to calculate the optimal secondary alignment state, bioinformaticians will better be able to understand the method to which a specific RNA strand might fold itself, giving better insight into its functions for future analysis.</p><h3>TL;DR</h3><ul><li>Nussinov’s algorithm is a method to calculate the secondary sequence of RNA from a primary sequence using dynamic programming to calculate the minimum free energy.</li><li>Nussinov’s algorithm only works in specific conditions, such as without pseudoknots and with small numbers of base pairs.</li></ul><p><em>If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c352b3445adf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/optimal-secondary-rna-alignment-and-nussinovs-algorithm-c352b3445adf">Optimal Secondary RNA Alignment and Nussinov’s Algorithm</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reflecting on My Summer Computational Biology Internship at Ocean Genomics]]></title>
            <link>https://adityamittal307.medium.com/reflecting-on-my-summer-computational-biology-internship-at-ocean-genomics-13eb66eada2a?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/13eb66eada2a</guid>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[reflections]]></category>
            <category><![CDATA[computational-biology]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Sun, 12 Sep 2021 23:55:04 GMT</pubDate>
            <atom:updated>2021-09-13T23:30:11.326Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5mJlcnlTijcJuGSQffJyg.jpeg" /><figcaption>A pic I took from one of our computational biology meetings!</figcaption></figure><p>This summer, I had the incredible opportunity to <strong>be an intern at Ocean Genomics</strong>, a startup that is trying to push the forefront of RNA-sequencing by compiling and creating methods to analyze RNA-sequencing today in one pipeline, for two months.</p><p>As someone who recently got into computational biology and was looking for an internship, this opportunity was perfect for me to learn more about the field while challenging myself. After <strong>passing a rigorous technical interview with tens of undergraduate applicants</strong>, I was one of two chosen to work at the company.</p><p>New to both startup culture and computational biology, this internship was a steep learning curve and taught me a ton of valuable lessons.</p><h3>Computational Biology</h3><p>At Ocean Genomics, I <strong>worked on reducing inaccuracies in FFPE-degraded RNA-sequencing samples </strong>(FFPE is a method to store samples that causes chemical degradation over time). What I was trying to do was reduce bias in the sample to move it closer to a ground truth sample without any degradation.</p><p>What that meant was researching methods to reduce bias and restructuring it for Ocean Genomics’ own pipeline. Quickly after delving into past analyses of FFPE samples, I realized I was in over my head.<strong> I had to start from the basics:</strong> what are the steps to get from RNA to a quantifiable string to run analyses upon?</p><p>For example, in the first week, I built my knowledge in RNA-sequencing by taking <a href="https://rnabio.org/course/">this</a> course that gave a primer about using AWS and Unix in RNA-sequencing along with basic concepts to understand. Although some of it was above my head, I was able to build enough of a knowledge base to start working on the project and then learn as I go for the rest of the material.</p><p>Although it required going over my 40 hours for the first few weeks, I was able to catch up and learn about these various terms, at least enough for doing my project.</p><h4>The Computational Biology Meeting</h4><p>Every week, all of the computational biologists and the cofounders met to discuss topics that they needed help with. Joining that call, I realized how much I needed to learn in the field still. Although I was able to comprehend their discussions at a base level, <strong>I still needed to build the level of expertise needed to problem solve at their level</strong>, something that took years of practice.</p><p><strong>This meeting acted as a humbling experience</strong> and motivated me to continue to learn more. I thought if I was smart enough to become an intern at this company in high school, I was smart enough to provide insights at the meeting. However, I realized that knowledge takes time, and isn’t something you can just expect to learn in two weeks.</p><h4>What I Learned</h4><p>From the internship, I learned a ton about RNA-sequencing, specifically about quality control analyses and quantification methods. Outside of that, I learned about how to read research papers and distill them for useful information.</p><p>However, outside of the technical knowledge, <strong>I learned the skill gap between me and PhDs,</strong> which acted as a humbler and motivator for future learning.</p><h3>Computer Science</h3><p>Going into the internship, I expected to do heavy research; however, most of my learning was centered around coding and analyzing the code through statistical methods.</p><p><strong>I ended up using Python, R, and Bash</strong>, despite having minimal knowledge in the latter two. I realized that learning and applying programming languages are two different things.</p><p>I’d learned about all of these frameworks at a high level in Python and created so many projects with specialized libraries, but in the ending, that was all useless. Aside from a couple of aspects (generators, parallel processing, data science libraries, and virtual environments), most of the things I required in the internship were things you could learn in introductory Python classes.</p><p><strong>Most of the difficulty came from the problem-solving aspect of it.</strong> At times, I was assigned a problem that seemed relatively easy but took hours to complete. I found myself thinking about the problem in my sleep and waking up at midnight attempting to solve it. As someone who’s never needed particularly long to solve coding problems, this was a unique experience that showed me how vital problem solving is to computer science.</p><h4>“Common Knowledge”</h4><p><strong>My boss expected me to know a bunch of things coming into the internship, including SSH, Linux, AWS, and working with servers. </strong>As someone who’s never encountered any of those, I faced a steep learning curve that pushed me to my limits.</p><p>I realized computer science required not only the basics like Python but also complementary services. Although I managed to scrape by the internship with minimal knowledge of these tools, I realized the importance of these services for future internships and took introductory courses after finishing the internship.</p><h3>Startup Culture</h3><p>Coming into the internship, I had no idea what to expect. I’d never worked in a company 40 hours/week, and I had no clue what the expectations were of me.</p><p>Luckily, <strong>people were understanding of my situation and offered to guide me along the way</strong>. This was surprising, as startups are normally seen as a cutthroat, innovative environment where people are already overworked; however, at the company, the culture was, albeit not relaxed, welcoming and allowed me to have a smooth transition into work.</p><p>After a day of getting situated, a ton of new terms kept getting thrown at me. <em>Merge this branch with the Github repo. Add this task to the Jira sprint. Scrum will be moved to 6:45 AM. </em>I found myself <strong>Googling a new term almost every hour</strong> for stuff that was not even related to computational biology.</p><p>Although it took time, I learned the startup lingo and was able to use some of it myself.</p><h4>Presentations</h4><p>Midway into the internship and at the end of the internship, I gave presentations to the entire 17-person team at Ocean Genomics. After the presentations, I learned these things:</p><ul><li><strong>No one cares if your presentation deck design is beautiful or looks terrible.</strong> All they care about is the information that comes across.</li><li><strong>Be ready for questions.</strong> The presentation is 1/2 of the time, and the Q+A after is the other half.</li><li><strong>No one knows what the heck you’re talking about if you explain your research the way you explain it to your boss. </strong>Explain it in a way that a nontechnical person can understand.</li><li><strong>Tell the truth if you don’t know something. </strong>It’s okay to not know something, and you can always just research it later.</li><li><strong>Never overexaggerate to make your results sound better. </strong>I was working for a company where my work would have an actual impact. Overexaggerating would be a detriment to the company, even if my actual results weren’t the best.</li></ul><h4>Conclusion</h4><p>The internship experience was a rollercoaster of a ride, and I loved every moment of it. From waking up for 6:30 AM touch bases to nearly using 80% of the server capacity (yep that actually happened), there were definitely some ups and downs during the whole experience.</p><p>Out of the whole process, here are the major things I learned:</p><ul><li><strong>I still have a ton to learn. </strong>From learning about computational biology to computer science to developer tools to startup culture, there was so much I learned in this internship that I have to continue to go deep into for future internships.</li><li><strong>Take help from your mentors and coworkers.</strong> Because I felt intimidated, I didn’t ask for help in my first month from people outside of my boss. This proved harmful, as sometimes, my boss didn’t know the answer, and we ended up taking much longer to solve the problem than needed.</li><li><strong>Recognize that startups hire people for problem-solving and drive more than knowledge. </strong>Sure, knowledge is something that startups look for, but the reason why interviews are so problem-solving-focused is to find those candidates that can go above the traditional applicant to find an innovative way of looking at the problem.</li><li><strong>Take a step back and break the problem into smaller chunks if you’re confused. </strong>As someone who was bombarded with technical terms, I didn’t understand in papers, I realized that I had to first build my knowledge in the field before diving right into the work.</li></ul><p>This internship taught me a ton of lessons for future internships and future learning. I’m excited to see where I intern next and for the experiences I’ll gain there.</p><h4>Shoutouts</h4><p>Wanted to give a quick shoutout to <a href="https://www.linkedin.com/in/hosseinasghari/">@Hossein Asghari</a> and <a href="https://www.linkedin.com/in/mayabishop13/">@Maya Bishop</a> for helping guide me through the internship. Hossein was an incredible boss and gave me support when I needed it; without him, my internship experience would have been much worse. Maya was instrumental in helping coordinate the internship and made it possible for a high schooler to take part in an internship usually only offered to undergraduates.</p><p><em>Hey, I’m Aditya, a 17-year-old interested in machine learning and bioinformatics. If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13eb66eada2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why is Climate Change Happening?]]></title>
            <link>https://studentsxstudents.com/why-is-climate-change-happening-65406d73c031?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/65406d73c031</guid>
            <category><![CDATA[global-warming]]></category>
            <category><![CDATA[world]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[enjoy-writing]]></category>
            <category><![CDATA[change]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Sat, 31 Jul 2021 20:00:12 GMT</pubDate>
            <atom:updated>2021-07-31T20:00:12.007Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NaymLqnxmdLGbojX.jpg" /><figcaption><a href="https://grist.org/climate/do-we-need-more-scary-climate-change-articles-maybe/">Image Source</a></figcaption></figure><p>An increase in average global temperature by over 1 degree Celsius since industrial times. 16 of the 17 warmest years ever have been in the twentieth century. The cause? Climate change.</p><p>Climate change is an abstracted word that has been used to describe the issues of rising global temperatures and increasing greenhouse gases in the atmosphere. However, it doesn’t expose us to the underlying issues behind the climate change problem, and rather gives a word to attack rather than a problem to solve.</p><p>In truth, climate change is mainly caused by one thing: human activity. Carbon dioxide that is caused by human activity is around 250 times more than natural sources such as those before the last Ice Age. However, once again, this doesn’t get into the true issues behind climate change — rather just gives us another abstract idea to point blame to.</p><h4>Reasons for Climate Change</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-9204xfJEtuWE6ac.png" /><figcaption>Proof of human activity in driving climate change. (<a href="https://en.wikipedia.org/wiki/Attribution_of_recent_climate_change">Image Source</a>)</figcaption></figure><p>So what are the major sources of human activity? These include some but not all of them:</p><ul><li><strong>Increased use of fossil fuels:</strong> Humans have used more fossil fuels to meet the exponential energy consumption (including running cars, powering factories, etc.). Fossil fuel consumption has increased 8x since 1950 and has doubled since 1980. <br><em>However, note that this change doesn’t mean the rise of all types of fossil fuels — coal consumption continues to fall in many parts of the world, while oil and gasoline continue to rise.</em></li><li><strong>Deforestation</strong>: Deforestation has continued as humans clear more forests for land development. Trees and other photosynthetic organisms die as a result, removing carbon sinks from the atmosphere. The area of primary forests worldwide has decreased by over 80 million hectares since 1990. <em>Even though deforestation rate decreases (10 million hectares per year down from 16 million hectares in the 1990s), this is still a substantial reductions of forests around the world.</em></li><li><strong>Increased agriculture intensity:</strong> Agricultural practices continue to increase in intensity causing higher emissions of carbon dioxide and methane. Agriculture has caused emissions of nearly 698 million metric tons of carbon dioxide (equivalent), 12.3% as CO2, 36.2% as methane, and 51.4% as nitrous oxide.</li><li><strong>Landfills:</strong> As trash continues to breakdown inside of land fills, they release greenhouse gases, such as methane and nitrous oxide. Almost 18% of the methane in the atmosphere comes from waste disposal. <br><em>For context, the methane emissions from landfills calculated in 2019 was equivalent to emissions from 21.6 million cars driven for a year.</em></li><li><strong>Transportation:</strong> The number of vehicles (aerial, land, water) continue to increase, all of which emit greenhouse gases into the air. The EPA states that nearly 33% of emissions from the United States come from transporting goods and people. Globally, transportation accounts for 15 to 20 percent of emissions each year.</li><li><strong>Factories/Power Plants: </strong>As consumer consumption continues to increase, the number and output of factories continues to increase, causing an increase in the number of greenhouse gases in the atmosphere. 24.2% of emissions come from manufacturing and industry. Processes such as producing iron and steel can add as much as 8% into the atmosphere. Producing cement causes nearly 2% of our global emissions.</li><li><strong>Oil/Natural Gas Drilling:</strong> Burn off from the drilling of these precious natural resources creates an increase in the carbon dioxide in the atmosphere. In just ten years (2007–2017), 45.5 billion tons of oil were removed from Earth’s crust. Fossil fuel retrieval accounts for nearly 8% of carbon dioxide and 30% of methane pollution.</li></ul><h4>Problems with Climate Change Laws</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cUwDL53Yyk33jIO1.png" /><figcaption>Countries with largest greenhouse emissions. (<a href="https://en.wikipedia.org/wiki/Climate_change_in_Canada">Image Source</a>)</figcaption></figure><p>As of July 2021, there has been 2315 climate laws and 1858 climate litigation cases. Big polluters such as the United States, ironically have the least amount of laws, where the United States has &gt;5833 megatons of carbon dioxide emitted but only 18 true climate laws and policies.</p><p>Many of these laws have been tackled by administrative entities; however, these laws have proven useless or not as useful for several reasons:</p><ul><li><strong>Scale:</strong> Climate change laws generally occur on large scales, which makes it difficult to enforce in local communities. In general, law enforcement sees no need to enforce these laws, as more pressing issues are at hand. Even if there were local enforcement, it would likely be in such a small area that there wouldn’t be as big of an impact.</li><li><strong>Understanding:</strong> Many people have the narrow minded view that emissions are the singular factor that must change; however, there has already been sizable damage that has been done to places around the world. There needs to be reconcilement with these issues as well for effective climate change laws in the future.</li><li><strong>Public, not Private:</strong> Private involvement has not been utilized as much as it should be. Private investments can significantly help with climate change initiatives, but public governments are those that enforce the laws. Thus, due to this disconnect, there is either lack of funding or enforcement when it comes to changing climate or emission standards.</li><li><strong>Long-Term:</strong> Communities expect immediate results from climate initiatives, but this is usually not the case. Most of these laws work long-term, and the lack of effect in early stages may hinder enforcement and funding in the future.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GgC089p-8mdjszPB.png" /><figcaption>A reasonable plan for the future. (<a href="https://icpac.medium.com/opportunities-and-gaps-in-eastern-african-climate-change-policies-and-laws-b54ad9954208">Image Source</a>)</figcaption></figure><p>The best way to fix the issue of climate change is to tackle these issues while keeping in mind current regulatory drawbacks. Only by doing this will we be able to produce effective legislation that tackles climate change problems.</p><p><strong>What can we do as citizens?</strong></p><ul><li>Make sure that <strong>climate laws are enforced</strong> in our community and make sure our governments are focusing on the correct places for climate change.</li><li><strong>Hold governments accountable</strong> for lack of change within communities.</li><li>Focus on change <strong>on a local level</strong> rather than a global level — change comes from small efforts and expands into something global.</li><li><strong>Understand the root causes</strong> of climate change issues.</li></ul><p>Only when a majority of communities make a front towards climate change will we be able to reverse the tide.</p><h4>TL;DR</h4><ul><li>Climate change is an abstracted phrase that prevents us from understanding the true mechanisms that allow climate change to persist.</li><li>Some of these mechanisms include the following: increased use of fossil fuels, deforestation, increased agricultural intensity, landfills, transportation, factories, and fossil fuel drilling.</li><li>Regulations have also been ineffective for the following reasons: too large-scale, lack of understanding, limited private initiative use, and lack of results from long-term initiatives causing decrease in funding.</li></ul><h4>References</h4><ul><li><a href="https://climate.nasa.gov/evidence/">Climate Change: How Do We Know?</a></li><li><a href="https://ourworldindata.org/fossil-fuels#global-fossil-fuel-consumption">Fossil Fuels</a></li><li><a href="https://www.wwf.org.nz/what_we_do/climateaction/causes_of_climate_change/">Causes of Climate Change</a></li><li><a href="https://academic.oup.com/jel/article-abstract/30/3/483/5055379">The Unsexy Future of Climate Change Litigation</a></li><li><a href="https://www.ers.usda.gov/topics/natural-resources-environment/climate-change/">Climate Change — USDA ER</a></li><li><a href="https://www.epa.gov/lmop/basic-information-about-landfill-gas#:~:text=The%20methane%20emissions%20from%20MSW,energy%20use%20for%20one%20year.">Basic Information about Landfill Gas</a></li><li><a href="https://www.nationalgeographic.org/media/transportation-and-climate-change/">Transportation and Climate Change</a></li><li><a href="https://theconversation.com/fossil-fuel-extraction-could-be-contributing-to-climate-change-by-heating-earth-from-within-121331">Fossil fuel extraction could be contributing to climate change by heating Earth from within</a></li><li><a href="https://ourworldindata.org/emissions-by-sector">Emissions by sector</a></li><li><a href="https://www.metoffice.gov.uk/weather/climate-change/causes-of-climate-change">Causes of climate change</a></li><li><a href="https://sciencing.com/list-7416802-types-scrubbers.html">The Top 10 Causes of Global Warming</a></li><li><a href="https://climate-laws.org/">Climate Change Laws of the World</a></li><li><a href="http://www.fao.org/state-of-forests/en/">The State of the World’s Forests 2020</a></li></ul><p><em>If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! For information about projects that I am currently working on, consider subscribing to my </em><a href="https://preview.mailerlite.com/h4z4w7"><em>newsletter</em></a><em>! Here’s the link to </em><a href="https://forms.gle/pLWuNuBuJQokMk3N8"><em>subscribe</em></a><em>. If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65406d73c031" width="1" height="1" alt=""><hr><p><a href="https://studentsxstudents.com/why-is-climate-change-happening-65406d73c031">Why is Climate Change Happening?</a> was originally published in <a href="https://studentsxstudents.com/">students x students</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chromatin Identification and Genome Annotation using Computational Methods]]></title>
            <link>https://medium.com/analytics-vidhya/chromatin-identification-and-genome-annotation-using-computational-methods-aaff4971c2dc?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaff4971c2dc</guid>
            <category><![CDATA[computation]]></category>
            <category><![CDATA[computational-biology]]></category>
            <category><![CDATA[bioinformatics]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[gene]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Mon, 19 Apr 2021 00:48:20 GMT</pubDate>
            <atom:updated>2021-04-19T17:15:36.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*RXDSGqSpj8eieo2C.png" /><figcaption>A model of a person’s epigenome with relation to their DNA. (<a href="https://epigeneticsandchromatin.biomedcentral.com/articles/10.1186/s13072-021-00390-y">Image Source</a>)</figcaption></figure><h3>The Epigenome and Its Function</h3><h4>What is the Epigenome?</h4><p>The human body has over 210 cell types, even though each one of those cells stores the same information inside of their DNA. How is this possible? The <strong>epigenome stores the information</strong> about the cell type and the state of the cell: it creates chemical modifications that influence gene expression.</p><p>These modifications can encoded in a variety of different ways:</p><ul><li><strong>Methylation:</strong> Adding a methyl group to certain nucleotides to downregulate gene expression</li><li><strong>Nucleosomes</strong>: Positioning nucleosomes to determine which parts of the DNA are available for transcription</li><li><strong>Histones: </strong>a protein that helps comprise the structure of chromatin</li></ul><h4>Storing Information in Nucleosomes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KiLr8Rf5JhWGo1IJ.jpg" /><figcaption>The structure of the epigenome. (<a href="https://en.wikipedia.org/wiki/Epigenetics">Image Source</a>)</figcaption></figure><p>DNA is tightly packed inside of the body through chromatin and nucleosomes. Nucleosomes are the unit of this packaging, and consist of<strong> histone proteins</strong> for which the DNA can wrap around. There are four major histone proteins: H2A, H2B, H3, and H4, which all serve various functions in the epigenome.</p><p>Nucleosomes <strong>encode information about the epigenome</strong> in two ways:</p><ul><li><strong>Chromatin accessibility: </strong>As mentioned above, positioning nucleosomes in specific places on the DNA will <strong>alter transcription rate</strong> of certain parts of the DNA. For transcription, the RNA polymerase has to bind to promoter regions, and the presence of nucleosomes could hinder RNA polymerase’s ability to do so.</li><li><strong>Histone modification:</strong> Histones contain tails that protrude from their central structures. These tails can participate in modification through methylation, acetylation, and other chemical binding. This means that <strong>histones can allow the same genome to be transcribed in different ways</strong>: there are over 100 distinct histone modifications.</li></ul><h4>Epigenetic Modifications Influencing Biological Function</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*bT4Vt3Yo_ofWRBZr.png" /><figcaption>Difference between acetylation vs. methylation. (<a href="https://www.researchgate.net/figure/Schematic-drawing-of-histone-methylation-and-acetylation-in-relation-to-chromatin_fig2_312349806">Image Source</a>)</figcaption></figure><p>One example of this can be seen in enhancer regions; these enhancers can come into contact with a specific promoter through acetylation or methylation and thus activate the repressed promoter.</p><p>This will allow for <strong>increased activation of the promoter region</strong>, and also provides insight into when DNA transcription will occur by monitoring the movement of enhancer regions in the body.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/0*BTok2LmXKgnfU3X5.png" /><figcaption>Overall pipeline for epigenomic identification through computational methods. (<a href="https://hbctraining.github.io/Intro-to-ChIPseq/lessons/05_peak_calling_macs.html">Image Source</a>)</figcaption></figure><h3>ChIP (Chromatin Immunoprecipitation) Technology</h3><h4>Overview</h4><p>ChIP technology helps<strong> split DNA into certain fragments whose location on the genome denotes the positions of a transcription factor or histone modification.</strong> This is incredibly useful as the first step in identifying chromatin and epigenomic markings in an efficient way (without the need to analyze the entire DNA).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*g2tFzWcPIhwlCa3B.png" /><figcaption>A flowchart of how ChIP works. (<a href="https://www.cellsignal.com/applications/chip-and-chip-seq/regulation-expression-in-cell-and-tissue">Image Source</a>)</figcaption></figure><p>ChIP works in the following way:</p><ul><li><strong>Cells are exposed to a particular cross-linking agent</strong>, which allows for the formation of covalent bonds between DNA and histone proteins.</li><li><strong>Genomic DNA is then</strong> <strong>isolated</strong> from the cell nucleus.</li><li><strong>This isolated DNA is sheared</strong> (preparing DNA for analysis by shearing to a desired fragment range) by enzymes.</li><li><strong>Antibodies are grown</strong> to recognize a histone protein.</li><li><strong>Antibodies are then added to the solution</strong> to <strong>immunoprecipitate</strong> (isolating a particular protein) and purify the complex.</li><li><strong>Cross-linking is reversed</strong> and DNA fragments are purified for analysis.</li></ul><h4>Result</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*jsssB_yEABQp3kdT.jpg" /><figcaption>Various methods of analyzing after initial chromatin immunoprecipitation. (<a href="https://www.nature.com/articles/nrg2641">Image Source</a>)</figcaption></figure><p>The result of ChIP is <strong>short sequences of DNA,</strong> which correspond to specific places in the DNA where histones were bound.</p><p>To match these fragments to the genome, fluorescent marks can be used in a process called <strong>ChIP-chip. </strong>Another approach is to use <strong>ChIP-seq</strong> to do next-generation sequencing of these fragments; this is used more frequently because it has a much wider range of detection and works quicker.</p><p>To infer where a specific histone protein is enriched after ChIP-seq, the DNA fragments must be mapped to the DNA (<strong>read mapping</strong>) and then regions of statistically significant interest must be found (<strong>peak calling</strong>). These will be gone into further depth later in the paper.</p><h4>Alternative — Bisulfite Sequencing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*vM-8JFB8hREaBfIE" /><figcaption>How bisulfite sequencing works. (<a href="https://www.genewiz.com/Public/Services/Next-Generation-Sequencing/Epigenomics/Whole-Genome-Bisulfite-Sequencing/">Image Source</a>)</figcaption></figure><p>Bisulfite sequencing is a<strong> method for determining the specific regions where DNA is methylated</strong>, which allows for the discovery of the histones whose tails the DNA is methylated to.</p><p>Bisulfite treatment works by converting unmethylated cytosine to uracil, but doesn’t affect methylated cytosine. Then, genomic DNA with and without bisulfite sequencing can be compared to determine cites where cytosine had been methylated.</p><p><em>Note that false positives can be created with an incomplete conversion of unmethylated cytosine to uracil in bisulfite sequencing.</em></p><h3>Quality Control Metrics</h3><p>Because of the experimental biases associated with ChIP sequencing, the output may be of varying quality. Therefore, quality control metrics create <strong>thresholds on the data set as a whole</strong> to determine whether the data is of enough quality for further analysis.</p><h4>Using Input DNA as a Control</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2b-MDnwZBEKZLSvd.jpg" /><figcaption>Using Input DNA as a control for peak analysis. (<a href="https://www.biorxiv.org/content/10.1101/2019.12.17.880013v1.full">Image Source</a>)</figcaption></figure><p>Accessible regions of the genome are fragmented more easily, which leads to nonuniform fragmentation. To control this bias, <strong>run the ChIP experiment without using an antibody.</strong></p><p>This “input DNA” can then be fragmented and mapped to create a sort of background signal track that the immunoprecipitated DNA can be mapped onto and compared against.</p><h4>Read-Level Sequencing Quality Score</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*F4ucKUvghv9gu-bo.png" /><figcaption>Example of a quality score chart. (<a href="https://www.bioinformatics.babraham.ac.uk/projects/fastqc/Help/3%20Analysis%20Modules/2%20Per%20Base%20Sequence%20Quality.html">Image Source</a>)</figcaption></figure><p>Each base pair is associated with a quality score, and the reads given in next-generation sequencing also contain quality scores.<strong> A lower quality score means a great probability of mismappings</strong>, which means that researchers can set a threshold for rejecting base pairs against.</p><h4>Fraction of Short Reads Mapped — Multiple</h4><p>Note each read in the genome can map to one, none, or multiple locations. For multiple locations, there are methods to approach this:</p><ul><li><strong>Conservative:</strong> Not assigning reads to any location (con — can lose read)</li><li><strong>Probabilistic:</strong> Fractionally assigning reads to all locations (con — can create unreal peaks where reads are placed)</li><li><strong>Sampling: </strong>Only selecting one location at random for a read (con — can create unreal peaks where reads are placed)</li><li><strong>Expectation-Maximization:</strong> Map reads based on density of unambiguous reads, where can calculate prior probability that a read maps to that specific region given the densities are constant within each region</li><li><strong>Paired-End</strong>: Determine mapping by sequencing both ends of DNA</li></ul><h4>Fraction of Short Reads Mapped — None</h4><p>There will likely be no reads that do not map to the genome; however, those that do not can be checked with a quality control metric.<strong> Calculate for each region the fraction of regions that map</strong> and for those that don’t meet the threshold, disregard them or rerun the experiment.</p><p>This is because these regions likely have lack of assembly coverage.</p><h4>Cross-Correlation and Library Analysis</h4><p>Cross-correlation is a complex quality control metric, but essentially, it finds the correlation between the number of reads mapping to the forward strand pass and the number that maps to the reverse strand pass as a function of distance between the two reads.</p><p>Library calling is the <strong>fraction of reads that are non-redundant</strong>. This can be calculated by the NRF or non-redundant fraction number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*IzqZt9SxQ14wgr1K0K7kxg.png" /></figure><p>Low values for NRF indicate low complexity or that there was insufficient DNA. A general target is 0.8 for around 10 million uniquely mapped reads.</p><h3>Read Mapping</h3><p>Read mapping determines the <strong>best way to assign a given read to its corresponding place in the genome</strong>. Due to the large scale of the human genome, any algorithm that attempts to map read must be incredibly efficient in both space and time complexity and note mismatches from sequencing errors or SNP modifications between different samples.</p><p>Past mapping of reads was done in multiple methods:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*YttBLEAmGemdOTlf.png" /><figcaption>A brief overview of the Needleman-Wunsch algorithm. (<a href="https://www.researchgate.net/figure/Representation-of-the-Needleman-Wunsch-global-alignment-algorithm-A-An-optimal_fig4_326839021">Image Source</a>)</figcaption></figure><ul><li><strong>Sequence Alignment and the Needleman-Wunsch Algorithm </strong>(explained <a href="https://medium.com/analytics-vidhya/sequence-alignment-and-the-needleman-wunsch-algorithm-710c7b1a23a4?source=your_stories_page-------------------------------------">here</a>): Sequence alignment is “the process of comparing two nucleotide strands to find the series of mutations that created one from the other.” A common algorithm used is the Needleman-Wunsch algorithm, which uses dynamic programming to<strong> determine the longest common subsequence</strong> between two strings and then infer mutations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*szjtMySJEkz2dOP5.png" /><figcaption>How BLAST local/global alignment works with the Karp-Robin algorithm. (<a href="https://medium.com/analytics-vidhya/matching-genetic-sequences-through-the-blast-and-karp-rabin-algorithm-ffebc810a9d0">Image Source</a>)</figcaption></figure><ul><li><strong>BLAST and the Karp-Robin Algorithm </strong>(explained <a href="https://medium.com/analytics-vidhya/matching-genetic-sequences-through-the-blast-and-karp-rabin-algorithm-ffebc810a9d0">here</a>): BLAST is used for “matching exact nucleotide sequences to the human genome in sets of billions of nucleotides.” The Karp-Robin algorithm uses <strong>hashing for enhanced string matching</strong>.</li></ul><p>Although both of these algorithms have fast computational runtime, they lack in memory. Sequence alignment has O(mn) runtime, linear time string matching or BLAST has O(m + n) runtime, and suffix arrays have O(m) runtime. However, <strong>all of these algorithms have a huge memory requirement of O(mn) time</strong>, which greatly hinders the algorithm.</p><h4>Burrows-Wheeler Transform — Encoding</h4><p><strong>The Burrows-Wheeler transform runs in O(m) time and requires just O(m) space.</strong> It allows for the compression of strings and rearranges the string such that it has adjacent repeating letters next to it.</p><p>Here are the steps for the Burrows-Wheeler transform:</p><ul><li>For a given reference genome, <strong>add special characters</strong> at the beginning and the end of the string. <strong>Generate all possible rotations</strong> of this string.</li><li>Sort these rotations lexicographically with the sorted characters last.</li><li><strong>Keep the last column </strong>of the sorted rotations.</li></ul><p>A sample example can be shown with HAPPY.</p><ul><li>HAPPY becomes ^HAPPY@. All possible rotations of ^HAPPY@ are ^HAPPY@, @^HAPPY, Y@^HAPP, PY@^HAP, PPY@^HA, APPY@^H, and HAPPY@^.</li><li>The list sorted lexicographically is the following, APPY@^H, HAPPY@^, PPY@^HA, PY@^HAP, Y@^HAPP, ^HAPPY@, @^HAPPY.</li><li>The last column of the sorted rotations is H^APP@Y.</li></ul><p>Another example below shows a Burrows-Wheeler transformation with the word BANANA as its input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*OJdUM7Apr5o1ReEQpe2OBA.png" /><figcaption>Encoding BANANA into BNN^AA@A using Burrows-Wheeler transform. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><h4>Burrows-Wheeler Transform — Decoding</h4><p>This transformation can also be reversed to compute the original string. The method is as follows:</p><ul><li>Given the transformed string, <strong>sort the strings in alphabetical order</strong>. This gives the first column of the transform.</li><li><strong>Combine the last column with the first</strong> to get pairs of characters.</li><li><strong>Sort the pairs and repeat</strong> Steps #1 and #2.</li></ul><p>This decoding process allows for a transformation of the genome using a space that is linear in size.</p><p>The example below shows how to decode the Burrows-Wheeler transformed BNN^AA@A back into the original string ^BANANA@.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*NqvbIHJFINokoVJQivRE8g.png" /><figcaption>Decoding BNN^AA@A into ^BANANA@ using Burrows-Wheeler transform. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><h4>Significance of Burrows-Wheeler Transform</h4><ul><li>All occurrences of the same letter are <strong>next to each other</strong> rather than being scattered across the genome.</li><li>The ith occurrence of a character in the first column corresponds with the ith occurrence in the last column of a character. This allows for <strong>faster substring search of the Burrows-Wheeled transformed word</strong>.</li><li><strong>Each read is found as a prefix of a rotation in the reference genome</strong>, which helps give the position of the read in the genome.</li></ul><h3>Peak Calling</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*B8dc_k6DwVrXos0q.png" /><figcaption>Example of the peak calling histogram. (<a href="https://sites.google.com/site/danposdoc/tutorial/dpeak">Image Source</a>)</figcaption></figure><p>Once these reads are created, then signal tracks can be generated. These tracks are ordered into the form of <strong>histograms that span the length of the genome, where each point corresponds to the number of reads from the ChIP that were found at that specific point in the genome</strong>. More of these reads means that there is a strong presence of the specific epigenetic marker that is being looked for.</p><p><strong>Peak calling</strong> is finding statistically significant peaks from this histogram to determine which places have the highest expression of specific histone proteins.</p><h4>Signal Tracks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*ifHh3mUD0JmEDBE5rghM4w.png" /><figcaption>A sample signal track. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><p>The first step is to generate signal tracks that transform the read counts into an intensity signal that can be placed onto a histogram. Using the cross-correlation analysis from the quality control metric, each read can be sequenced to discover information about the segment for which the read is a part of. Comparing this to the signal tracks for the control data will allow for <strong>comparative analysis to determine peaks.</strong></p><h4>Peak Calling — p-value and eFDR</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*dwjwIEgoVhSmGkNpEPtO0A.png" /><figcaption>Comparing different epigenomic samples given by peak calling. (<a href="https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-047-computational-biology-fall-2015/lectures_slides/MIT6_047F15_Lecture11.pdf">Image Source</a>)</figcaption></figure><p>Many peak calling programs, such as MACS and PeakSeq, <strong>use p-value and eFDR estimates to determine where the statistically significant peaks lie</strong>. Each program uses a different statistical program: MACS uses a local Poission distribution while PeakSeq uses a conditional binomial model.</p><p>To model the read count distribution, a Poisson distribution can be used to estimate the expected read count from the control data. Then, the probability of that read count not producing a peak is determined, and if it is below a certain threshold p-value, such as 0.0001, then the genomic region is considered a peak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*BrwbPZ79NlRkTy_-QMrfDg.png" /></figure><p>For a Poisson distribution, the above calculation is used to determine the p-value. This p-value can then be turned into an <strong>empirical false discovery rate </strong>(eFDR) by swapping the ChIP experiment data with the input data, similar to what was done in the quality control mapping step.</p><p>By analyzing which regions already had increased read counts in the input data, it is possible to filter out the control peaks from the true experimental peaks. For each p-value,<strong> the eFDR is simply the number of peaks from the input data divided by the number of peaks from the control.</strong></p><h4>Irreducible Discovery Rate (IDR)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EqGmau3cDDsUf4xK.jpg" /><figcaption>Using IDR in practice. (<a href="https://ccg.epfl.ch//var/sib_april15/cases/landt12/idr.html">Image Source</a>)</figcaption></figure><p>One major problem with this is that there is no universal eFDR or p-value that can be used for all calculations, and these values depend heavily on a variety of factors. Additionally, the eFDR is sensitive to small changes in its threshold value.</p><p>The Irreducible Discovery Rate or IDR can avoid these related issues, and remove the assumptions regarding the relationships between enrichment and significance in the data. It allows us to find peaks without setting a threshold for significance and uses biological replicates instead.</p><p>They rely on the idea that a real signal can be reproducible among replicates, while noise cannot. Therefore, the top N peaks in each replicates are compared against one another, and based on the other replicates, the peaks are chosen for the entire set of testing samples.</p><p><strong>The IDR is simply just the fraction of peaks present in the top N peaks in the replicate that are not present in other replicates.</strong></p><h4>Mathematical Analysis of IDR</h4><p><em>Note: This will go heavily into statistics and analyze various distributions.</em></p><p>Since the IDR uses ranks for its peaks, that means that<strong> the marginal distributions are uniform</strong>, while the <strong>joint distributions vary and encode most of the information</strong>. These joint distributions can be modeled through a copula model, or a multivariate distribution where the marginal probability of each variable remains uniform.</p><p>If C_x is the copula function and F(x) is the cumulative distribution for a certain variable x, then the function F(x) is defined as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*iORXACyFksM8DPNBJ5XugA.png" /></figure><p>We can<strong> analyze a Bernoulli distribution K_i ~ Bern(pi_i)</strong> given this information that will tell us whether the ith peak is relevant for further analysis or whether it is part of the spurious set.</p><p>Let z_{0,i} mean that it’s from the spurious set in biological replicate i, and let z_{1,i} mean that its from the consistent set in biological replicate i.</p><p>Then, z_1 = (z_{1,1}, z_{1,2}) if K_i = 1, and z_0 = (z_{0,1}, z_{0,2}) if K_i = 0. Therefore, <strong>we can model z_{1,1} and z_{0,1} as the following</strong>, noting that each of these points follow a normal distribution and that their values are based on the genomic values given in the read mapping stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*_6ekUo-IpyLy0qK0hLMd7Q.png" /></figure><p>Note that, in the spurious set,<strong> the mean is 0, and the squared deviation is 1.</strong> Thus, the z-score is simply equal to the data point from the spurious point in biological replicate i. In the real set, the mean is greater than 0 and its correlative factor is between 0 and 1, which means that its z-score will follow the trivial formula of z = (x-mean)/(standard deviation).</p><p>A variable can be modeled with the following formulas to determine what the the weighted mean of a peak being in the spurious set using a normal cumulative distribution function as the probability distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*cYzBBuCy3RVYg5KBZi9AHw.png" /></figure><p>We can then discover for a particular signal in the signal track, what the <strong>probability of it being a peak is based on the marginal distributions and the values calculated by the aforementioned equations.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*1tIA7QO6qPOxBZi3AegVew.png" /></figure><p>Lastly, <strong>we can infer the irreproducible discovery rate</strong> using an expectation-maximization algorithm that infers the mean, correlation, standard deviation, and transition probabilities of the consistent set, and then find the probability that P(K_i = 1 | (x_{i,1}, x_{i,2}; theta).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*Wz3Y4TbMba2q2p031_3VqA.png" /></figure><p>Lastly, to <strong>rank each of the various top N peaks</strong> from each biological replicate, we can take the maximum values using the following equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/269/1*QI8WBiTVoiXDpFaHHLC_7A.png" /></figure><p>For a more detailed analysis, reference <a href="https://arxiv.org/pdf/1110.4705.pdf">this</a> article for more information.</p><h4>IDR Significance and Advantages</h4><ul><li>IDR analysis can be performed with a varying number of peaks N for each biological replicate. Based on this N, a desired IDR can be reached.</li><li>IDR allows for <strong>easier reproducibility between experiments.</strong></li><li>Other methods, such as the union of two biological replicates (will take both peaks and noise in each dataset) and the intersection of two biological replicates (will miss many genuine peaks), <strong>don’t accurately find all peaks within the dataset.</strong></li><li>IDR combines both of the above approaches by accepting both peaks and determining the irreproducibility rate.</li></ul><h3>Inferring Chromatin Signatures</h3><p><em>Note: This section assumes that you already have previous knowledge of what HMMs are and how they function.</em></p><p>Now, using the read mapping and peak calling algorithms, it is possible to interpret chromatin signatures and derive epigenomic features. This will allow us to do two things:</p><ul><li><strong>Aggregate known chromatin signals</strong> (e.g. H3K4me3)</li><li><strong>Infer feature types </strong>(promoters, enhancers, non-coding regions, etc.)</li></ul><p>In a simpler way, DNA can take on a series of hidden states that each emit a specific combination of epigenetic modifications. Using the observed epigenetic modifications, we want to use computational methods to infer feature types about a region of DNA.</p><h4>HMMs for Chromatin Annotation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*1k39pxnDvaWts31THJAR5A.png" /><figcaption>Final result of chromatin annotation using HMMs. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><p>We can use HMMs to identify combinations of chromatin marks that are most probabilistically likely to occur due to the given epigenomic modifications. Note that with the hidden states, we must <strong>capture the functional ordering of states and the chromatin domain differences across the genome.</strong></p><p>Since the transition and emission probabilities are not immediately known, an expectation-maximization algorithm, similar to the Baum-Welch algorithm can be used to find the maximum likelihood values for these parameters.</p><h4>Emission States — HMMs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*Ued1pUj56Bo6q7INsU_RbQ.png" /><figcaption>Emission states for an HMM with 51 chromatin states. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><p>Rather than emitting a singular value like traditional HMMs do, each state <strong>emits a combination of epigenetic marks that is represented as a n-dimensional vector with binary values</strong> for each epigenetic mark.</p><p>Mathematically, with n input marks, each state k emits a vector (p_k1, p_k2, …, p_kn) of probabilities for marks 1 to n. The probability of observing a set of these marks is the the product of the probabilities of observing individual marks, since each of these are assumed to be independent.</p><h4>Transition States — HMMs</h4><p><strong>Transition states must be inferred by an expectation-maximization algorithm.</strong> One such result of an algorithm can be seen here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*6Acws_jBRXG5ZtM4gDp8nw.png" /><figcaption>Transition states for an HMM with 51 chromatin states. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><h4>Number of States — HMMs</h4><p><strong>Choosing the number of states is also vital</strong>, as increasing the complexity of the model by too large of an amount can lead to overfitting of the data, which means that the model will not generalize to the population.</p><p><strong>Bayesian Information Criterion (BIC)</strong> can be used to optimize for the complexity of the model. Note that with BIC, there is a tradeoff between model complexity and interpretability that BIC will not help with. Thus, BIC will always produce a model with more states than the ideal model.</p><p>Several steps can be done to account for this:</p><ul><li><strong>Start with a model with more hidden states</strong> than is necessary (e.g. use the BIC amount of states).</li><li><strong>Prune hidden states</strong> until only the states of interest have been captured.</li><li><strong>Try many random initializations</strong> and cross-reference samples to determine whether significance of a state is constant over all samples.</li><li><strong>Iterate several times</strong> until the optimal amount of states is produced.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*QTPXJyAFfbXkD-3j2pNNEw.png" /><figcaption>Final result of the model — chromatin mark combinations associated with state. (<a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Image Source</a>)</figcaption></figure><h3>Summary</h3><ul><li>The <strong>epigenome</strong> is the set of post-translational chemical modifications or marks that influence gene expression within the human body. Chemical modifications include <strong>methylation</strong> and <strong>acetylation</strong>.</li><li><strong>ChIP</strong>, a method to determine where histone proteins bind to DNA, or <strong>bisulfite sequencing</strong>, a method to determine where methylation occurs, can be used as <strong>epigenomic assays</strong> to determine places of transcription factors and histone proteins.</li><li><strong>Quality control mapping</strong> seeks to remove biases created by ChIP sequencing to create the most accurate analysis from the epigenomic data.</li><li><strong>Read mapping</strong> seeks to assign a given read to the best matching location inside of the genome. Rather than using traditional algorithms such as the <strong>BLAST</strong> or <strong>Needleman-Wunsch algorithm</strong>, the <strong>Burrows-Wheeler transform</strong> was used due to optimal memory allocation.</li><li><strong>Peak calling</strong> uses specific signal tracks to find regions that produce heightened levels of enrichment. <strong>P-value testing</strong> and <strong>eFDR</strong> can be used to make a statistical analysis of significance for peaks, but this can become difficult to use as eFDR values change depending on the experiment.</li><li><strong>IDR</strong> compares which fractions of peaks are not reproducible between different <strong>biological replicates</strong> rather than using tests of significance, which bypasses the problem mentioned with eFDR.</li><li><strong>HMMs</strong> can be used for interpreting chromatin expression. <strong>Bayesian Information Criterion</strong> can be used for optimizing the number of states needed for the model. <strong>Expectation-maximization algorithms</strong> can be used to experimentally determine emission and transition probabilities.</li></ul><h3>Additional Resources</h3><ul><li><strong>Paper:</strong> <a href="https://genomebiology.biomedcentral.com/articles/10.1186/gb-2009-10-3-r25">Ultrafast, memory-efficient alignment of short DNA sequences to the human genome.</a></li><li><strong>Paper:</strong> <a href="https://pubmed.ncbi.nlm.nih.gov/17664943/">ChIP-seq: welcome to the new frontier</a></li><li><strong>Book: </strong><a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Computational Biology: Genomes, Networks, Evolution</a></li><li><strong>Paper:</strong> <a href="https://www.cell.com/fulltext/S0092-8674(14)00286-4">Transgenerational epigenetic inheritance: Myths and mechanisms</a></li><li><strong>Paper: </strong><a href="https://www.nature.com/articles/nbt.1662">Discovery and characterization of chromatin states for systematic annotation of the human genome.</a></li><li><strong>Paper:</strong> <a href="https://www.nature.com/articles/nature09906">Mapping and analysis of chromatin state dynamics in nine human cell types.</a></li><li><strong>Paper:</strong> <a href="https://arxiv.org/pdf/1110.4705.pdf">Measuring reproducibility of highthroughput experiments.</a></li><li><strong>Paper: </strong><a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3233226/">DNA methylation detection: Bisulfite genomic sequencing analysis</a></li><li><strong>Article: </strong><a href="https://medium.com/analytics-vidhya/sequence-alignment-and-the-needleman-wunsch-algorithm-710c7b1a23a4">Sequence Alignment and the Needleman-Wunsch Algorithm</a></li><li><strong>Article</strong>: <a href="https://medium.com/analytics-vidhya/matching-genetic-sequences-through-the-blast-and-karp-rabin-algorithm-ffebc810a9d0">BLAST and Karp-Rabin Algorithm</a></li><li><strong>Paper:</strong> <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4330247/">A Review of Three Different Studies on Hidden Markov Models for Epigenetic Problems: A Computational Perspective</a></li><li><strong>Paper:</strong> <a href="https://www.sciencedirect.com/science/article/abs/pii/S1046202320302036">Computational methods and next-generation sequencing approaches to analyze epigenetics data: Profiling of methods and applications</a></li></ul><p><em>If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! For information about projects that I am currently working on, consider subscribing to my </em><a href="https://preview.mailerlite.com/h4z4w7"><em>newsletter</em></a><em>! Here’s the link to </em><a href="https://forms.gle/pLWuNuBuJQokMk3N8"><em>subscribe</em></a><em>. If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaff4971c2dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/chromatin-identification-and-genome-annotation-using-computational-methods-aaff4971c2dc">Chromatin Identification and Genome Annotation using Computational Methods</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PyMOL for Visualization of the BRCA2 Complex and 1N0W, 1PZN, 1MJE, 1MIU Structures]]></title>
            <link>https://medium.com/analytics-vidhya/pymol-for-visualization-of-the-brca2-complex-and-1n0w-1pzn-1mje-1miu-structures-bd727a997fd9?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd727a997fd9</guid>
            <category><![CDATA[brca2]]></category>
            <category><![CDATA[cancer]]></category>
            <category><![CDATA[bioinformatics]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[computational-biology]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Mon, 12 Apr 2021 01:20:35 GMT</pubDate>
            <atom:updated>2021-04-12T15:48:16.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0-n_zMbmDyXNK35da_2tA.png" /><figcaption>A usage of PyMOL to show the 1IYJ BRCA2-DSS1 complex. (<a href="https://bionerdnotes.wordpress.com/2018/11/13/working-with-pymol/">Image Source</a>)</figcaption></figure><p>This article goes into how I used the visualization tool PyMOL for <strong>examining 3D representations</strong> of the aforementioned proteins, and looking into detail into various <strong>protein-protein</strong> and <strong>protein-DNA interactions</strong>.</p><h3>Terminology</h3><ul><li><strong>BRCA2</strong> — the Breast Cancer Type 2 susceptibility protein — The protein is crucial to repairing DNA damage and response pathways. Mutations of this protein have been linked to several forms of cancer.</li><li><strong>RAD51 </strong>— a member of the RAD51 protein family that assists in repair of DNA double strand breaks</li><li><strong>1N0W</strong> — a crystal structure of a RAD51-BRCA2 BRC repeat complex that works in gene regulation and creating anti tumor proteins</li><li><strong>1PZN </strong>— a structure within the RAD51 complex that works in recombination and gene variation</li><li><strong>1MJE</strong> — a structure of a BRCA2-DSS1-SSDNA complex that works in gene regulation and creating anti tumor proteins</li><li><strong>1MIU </strong>— a structure of a BRCA2-DSS1 complex that works in regulation and creating anti tumor proteins</li><li><strong>PyMOL</strong> — an open source molecular visualization system</li><li><strong>PDB</strong> — Protein Data Bank — An open-source database of various biological macromolecular structures for research</li><li><strong>NCBI VAST</strong> — a searching service that allows you to compare a newly resolved 3D structure against structures already in the PDB</li><li><strong>Protein Domains</strong> — regions of the protein that are self-stabilizing and fold independently — Note that proteins can have several domains and can show inherent structural functionalities within the protein.</li></ul><h3>NCBI VAST</h3><p>The NCBI VAST search can be used for analyzing these different structures in greater detail. This allows me to <strong>compare similarities in the tertiary structures</strong> of these different structures, which can allow me to look at related sequences to infer function of those structures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3fs_lrw-NJhIBPjGF3Waw.png" /><figcaption>Screenshot of taxonomic and general data about the structure for 1N0W. (<a href="https://www.ncbi.nlm.nih.gov/Structure/vastplus/vastplus.cgi">Image Source</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oDn_DtF9ns48rpeFAcU9wQ.png" /><figcaption>Screenshot of similar tertiary protein structures and their relevant information for 1N0W. (<a href="https://www.ncbi.nlm.nih.gov/Structure/vastplus/vastplus.cgi">Image Source</a>)</figcaption></figure><p>For instance, looking at the first structure of 6HQU can glean information about 1N0W’s function if not known. By clicking its link, I could see that 6HQU is similarly related to <strong>BRCA2 as well as DNA repair processes.</strong> This was useful for initial research about the protein and its various functions.</p><h3>PyMOL Visualization</h3><h4>1MJE</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*xsTxqTAhJMAGZ0BpFGm1Mw.png" /><figcaption>1MJE’s structure in PyMOL.</figcaption></figure><p>Note in certain parts of the protein, there exists the presence of <strong>single-stranded DNA (ssDNA)</strong>, which indicates a genetic defect in the creation of this protein. Additionally, by interacting with the object, it can be seen how the ssDNA slides through the groove of BRCA2 thus interacting with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*KAoye8EET6CnfrXyT6Uacw.png" /><figcaption>The sequence window for 1MJE.</figcaption></figure><p>Another part of PyMOL is its<strong> sequence window</strong> which allows for viewing the amino acid code for the protein. There are various distinctive factors, including the 6 oligo DTs, the various chains that can be seen in C &gt; by chain &gt; by chain, and various residues which can be selected with C &gt; reds &gt; red.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*Ivs-bxWNBOhxLiUcm0zX6g.png" /><figcaption>1MJE split into chains and different proteins.</figcaption></figure><p>Focusing on the chains, we can note that the<strong> DSS1 protein</strong> can be seen in the BRCA2 structure and can note that it is deeply embedded in the BRCA2 structure. <strong>PyMOL allows us to visualize the interaction of this protein</strong> with the BRCA2 structure but doesn’t show the products that result from interaction.</p><p>Lastly, note that there is a part of the DSS1 chain missing from the structure where certain amino acids, which is a point of study for a future article. A common feature throughout the gene,<strong> certain portions of the BRCA2 gene are missing as well</strong>, highlighting issues with the transcription of the protein.</p><h4>1MIU</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*NVSgd06f8_ME6mnfoIJDqA.png" /><figcaption>1MIU’s structure in PyMOL.</figcaption></figure><p>Next, note the 1MIU structure, which<strong> similarly has a DSS1 protein</strong> that interacts with BRCA2 in this simulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*i7Af0HA8iZ1mBc8zqsok7g.png" /><figcaption>The protein domains for BRCA2.</figcaption></figure><p><strong>The tower can be easily recognizable from the PyMOL visualization</strong>, and the domains, as well, after coloring in the various ones. Noting this, the function of the tower can be seen as causing proper binding of BRCA2 to DNA.</p><h4>1N0W</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*0bcU7Nc83qqySdXGnlaN9g.png" /><figcaption>1N0W’s structure in PyMOL.</figcaption></figure><p>Opening the 1N0W and splitting it into chains on PyMOL, it can be noted that <strong>the longest chain is with the interaction of the protein with a RAD51 subunit and a BRC repeat domain</strong>. By zooming into the BRC repeat, we can analyze the interaction region.</p><p>By using C &gt; by element &gt; CHNOS, we can note that there are 2 red oxygens in the carboxyl group of the glutamate (E) of the BRC repeat chain, and that it is located on the 1548th position of the chain.</p><p>With PyMOL, it is also <strong>possible to measure the distance between certain particles</strong>. For instance by selecting Wizard &gt; Measurement, the number of angstroms can be found between two hydrogen bonds or the two red oxygens that were aforementioned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*HMNxfUUlKWG1KKG-2oGRIQ.png" /><figcaption>An example measurement between two parts of the 1N0W structure.</figcaption></figure><p>Measurement yielded a hydrogen bond distance of 2.3 angstroms, which is well within the typical hydrogen bond range of 2.2 to 2.5 angstroms. Measurement of the bond between oxygen and nitrogen yielded 2.7 angstroms, which was also in the typical bond range of 2.5 to 3.5 angstroms.</p><h4>1PZN</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*CO6KTgwQ7pi-kZlYJuATRg.png" /><figcaption>1PZN’s structure in PyMOL.</figcaption></figure><p>A similar BRC interaction can be done to the 1PZN model. First, align the RAD51 and BRC interaction elements and then orient the screen to view all three at one time. From here, we can see that <strong>there are multiple interaction regions</strong>, showing redundancy for less genetic variation.</p><h3>Conclusion</h3><p>Through this experiment, I learned a lot about the Protein Data Bank and how to visualize using PyMOL. I chose these four proteins arbitrarily and was just experimenting around with PyMOL, but I hope to do more analysis into the BRCA2 gene and use my past knowledge of bioinformatics to run analysis on the genetic sequence as well.</p><h3>TL;DR</h3><ul><li>This article goes over how to use the Protein Data Bank and analyzing several protein interactions with BRCA2.</li><li>The Protein Data Bank is useful for finding various proteins and for ascertaining a certain protein’s structure.</li><li>PyMOL was heavily used for visualization and allows for the following: viewing the protein structure, align different structures, highlight various residues and structures, and measure inter-atom distances.</li></ul><h3>Further Resources</h3><ul><li>Download the PyMOL application <a href="http://sourceforge.net/projects/pymol/">here</a>.</li><li>Access the PDB website <a href="https://www.rcsb.org/">here</a>.</li><li>Book: <a href="https://www.sciencedirect.com/topics/chemistry/structure-function-relationship">Analyzing Structure-Function Relationship</a> (Chapter 14)</li></ul><p><em>If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! For information about projects that I am currently working on, consider subscribing to my </em><a href="https://preview.mailerlite.com/h4z4w7"><em>newsletter</em></a><em>! Here’s the link to </em><a href="https://forms.gle/pLWuNuBuJQokMk3N8"><em>subscribe</em></a><em>. If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd727a997fd9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/pymol-for-visualization-of-the-brca2-complex-and-1n0w-1pzn-1mje-1miu-structures-bd727a997fd9">PyMOL for Visualization of the BRCA2 Complex and 1N0W, 1PZN, 1MJE, 1MIU Structures</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sequence Alignment and the Needleman-Wunsch Algorithm]]></title>
            <link>https://medium.com/analytics-vidhya/sequence-alignment-and-the-needleman-wunsch-algorithm-710c7b1a23a4?source=rss-a5c97ff64879------2</link>
            <guid isPermaLink="false">https://medium.com/p/710c7b1a23a4</guid>
            <category><![CDATA[genomics]]></category>
            <category><![CDATA[bioinformatics]]></category>
            <category><![CDATA[dna]]></category>
            <category><![CDATA[sequence-alignment]]></category>
            <category><![CDATA[needleman]]></category>
            <dc:creator><![CDATA[Aditya Mittal]]></dc:creator>
            <pubDate>Mon, 22 Feb 2021 17:44:34 GMT</pubDate>
            <atom:updated>2024-03-12T15:07:34.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*ylCmXbbUC6QZCHgO.jpg" /><figcaption><a href="https://www.americangene.com/blog/the-gene-therapy-market-is-going-to-produce-a-microsoft-2/">Image Source</a></figcaption></figure><p>Did you know that human DNA and chimp DNA are <strong>98.8%</strong> the same? Although this number may sound small, humans and chimps are very different when we go into our DNA. Out of the roughly three billion base pairs that make up our genetic code, 1.2% of them equates to <strong>over 35 million</strong> genetic differences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*GqcEBIGyUp0WoJX5.gif" /><figcaption>An astonishing view into our similarities with chimps on a chromosomal level. (<a href="https://www.mun.ca/biology/scarr/Human_Ape_chromosomes.htm">Image Source</a>)</figcaption></figure><p>As a result, modeling how the evolution of chimps led to humans from the aspect of genomics is a monumental feat due to the number of different possibilities there could be for mutations. Mutations can consist of <strong>insertions</strong> (adding of base pairs), <strong>deletions</strong> (removing of base pairs), and <strong>alterations</strong> (changing of base pairs). When scaled to the billions of base pairs we have, the number becomes astronomical for the number of permutations that could’ve changed chimp DNA into human DNA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*Khc8G3qcamqWuPZj.jpg" /><figcaption>The three most common types of mutations. (<a href="https://www.singerinstruments.com/resource/what-are-genetic-mutation/">Image Source</a>)</figcaption></figure><p><strong>Sequence alignment</strong> has solved this problem by allowing us to compare two genetic strands and find the sequence of mutations that led from one to the other. The goal of sequence alignment is to find homologous/similar sequences in the genome, and then base mutations off of the gaps that emerge between these sequences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/0*r_fPoz7mGydNBmbp.png" /><figcaption>A simplistic representation of sequence alignment. (<a href="https://towardsdatascience.com/pairwise-sequence-alignment-using-biopython-d1a9d0ba861f">Image Source</a>)</figcaption></figure><p>Because of the number of different evolutionary events that are possible, common sequence alignment algorithms attempt to <strong>minimize the number of events</strong> to explain the differences between two genetic sequences. Additionally, they use the heuristic that alterations are more common than insertions and deletions are.</p><h4>Terminology</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*ZlzQHtKYE-gSDk0J.png" /><figcaption>Orthologs vs. paralogs vs. homologs (<a href="https://bitesizebio.com/26762/homology-terminology-never-say-wrong-word/">Image Source</a>)</figcaption></figure><ul><li><strong>Sequence alignment: </strong>process of comparing two nucleotide strands to find the series of mutations that created one from the other</li><li><strong>Orthologous:</strong> event that leads to two organisms having a copy of the same gene (can use to trace back evolutionary roots of organisms)</li><li><strong>Paralogous: </strong>duplication event within a species (two members of the same species have similar genes)</li><li><strong>Global alignment:</strong> alignment of every element in the genetic strand</li><li><strong>Local alignment:</strong> alignment of regions that contain similar sequences</li><li><strong>NBAs (non-boring alignments)</strong>: alignments where gaps are always paired with nucleotides (e.g. there isn’t a gap in both of the sequences)</li><li><strong>Gap penalty:</strong> penalty for creating a gap in one of the nucleotide sequences</li><li><strong>Substring: </strong>a continuous sequence of characters inside a string</li><li><strong>Subsequence: </strong>sequence that can be derived from a sequence by deleting some elements without changing the order of the remaining elements</li></ul><h3>Considerations</h3><h4>Minimizing Cost</h4><p>In the following procedures, we need to minimize the “cost” as well as the number of events. As mentioned above, things that will increase cost are using an insertion (since alterations are more common than insertions) or substituting a purine for a pyrimidine (because purines are more likely to be switched with their corresponding purine).</p><p>Therefore, our goal is altered to find the<strong> least expensive, least operation </strong><a href="https://www.analyticsvidhya.com/blog/2020/08/a-simple-introduction-to-sequence-to-sequence-models/?utm_source=Backlink&amp;utm_medium=SEO"><strong>sequence</strong></a> that transforms the initial sequence into the final sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*b9Z2wnvo6v6WRnx6.png" /><figcaption>Cost matrix for alterations in base pairs. (<a href="https://www.semanticscholar.org/paper/2-.-3-Formulation-1-%3A-Longest-Common-Substring-Fujiwara-Kruskall/1b6f2a01a8ed330c8fb7ec277a50924528df8fa0/figure/1">Image Source</a>)</figcaption></figure><h4>Gap Penalty Models</h4><p>In addition to accounting for mutations, there are extra considerations that must be made for gaps. For instance, biologically, the cost of creating a gap is much more expensive than that of extending an already created gap. There are a few different gap penalties currently used:</p><ul><li><strong>Linear gap penalty:</strong> This uses a fixed cost for all gaps, regardless of the current gap length it is extending.</li><li><strong>Affine gap penalty:</strong> This imposes a large initial cost for opening a gap, but then a small incremental cost for each gap extension.</li><li><strong>General gap penalty:</strong> This uses a variety of different polynomial and linear functions to see which provides the best sequence alignment. Note this may drastically affect runtime.</li><li><strong>Frame-aware gap penalty:</strong> This tailors the cost function to account for disruptions in the coding frame; for instance, changes in a certain amino acid can cause phenotypic modifications.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*eAJjS4yWVmywTM9Q.png" /><figcaption>Graph of different gap penalties over gap length. (<a href="https://www.wikiwand.com/en/Gap_penalty">Image Source</a>)</figcaption></figure><p>Let’s express the gap penalty mathematically. If we let <strong>w(k)</strong> be the gap penalty for <em>k</em> gaps, we can see that the following emerges:</p><ul><li>Linear gap penalty: w(k) = p</li><li>Affine gap penalty: w(k) = p + qk</li><li>General gap penalty: w(k) = p + qk or w(k) = p + qk + rk²</li></ul><h3>Longest Common Substring (Quadratic)</h3><p>The most simplistic method to find the number of mutations between two genetic sequences is to use the <strong>longest common substring</strong> between the two sequences. Then, you can put the substrings side-by-side in the two sequences, and explain the other nucleotides that are offset by insertions/alterations. However, this is clearly <strong>not the best solution</strong>, and it also runs very <strong>slowly</strong>, since you have to enumerate all possible alignments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*7hzOZxZvFi9354getRQ-Sg.png" /><figcaption>Example of the longest common substring in work. (<a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Image Source</a>)</figcaption></figure><p>As seen in the example above, 6 mutations have been shown to be found in between S1 and S2, even though that is clearly not the most optimal solution and doesn’t minimize the number of steps between the two sequences.</p><h3>Longest Common Subsequence (Exponential)</h3><p>One method to minimize the steps involves <strong>allowing gaps between subsequences </strong>and not just limiting it to substrings. Then, these substring parts can be aligned together, and mutations can be found in the gaps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*Ci0VaCMviiOLOU4M3-8LJQ.png" /><figcaption>Example of the longest common subsequence in work. (<a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Image Source</a>)</figcaption></figure><p>As seen in the example above, the mutations have been reduced from 6 mutations to 4, which means that our <a href="https://www.analyticsvidhya.com/blog/2022/01/machine-learning-algorithms/?utm_source=Backlink&amp;utm_medium=SEO"><strong>algorithm </strong></a>is getting better. However, the time complexity has greatly increased, from quadratic to <strong>exponential</strong>.</p><p>If considering NBAs (where gaps are always paired with nucleotides), and with sequences of length n and m where n &gt; m, the number of alignments comes out to be (n+m) choose m, which is approximately 2^n alignments.</p><h3>Dynamic Programming</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XZBOkj0v2hFtMY2w.png" /><figcaption>Basic components of dynamic programming. (<a href="https://www.geeksforgeeks.org/dynamic-programming-vs-divide-and-conquer/">Image Source</a>)</figcaption></figure><p>How can we reduce the runtime from exponential to quadratic once more while maintaining the same level of accuracy? The answer lies in <strong>dynamic programming</strong>, which allows us to utilize overlapping subproblems to solve a problem efficiently. For a dynamic programming problem, there are two major things to check for:</p><ul><li><strong>Optimal Substructure: </strong>The optimal solution to a problem contains optimal solutions to subproblems of the problem.</li><li><strong>Overlapping Subproblems:</strong> Subproblems are repeated many times, so storing the answers to these subproblems will reduce computational complexity when running the model.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2kJd5RpMC0E204mc.png" /><figcaption>Converting recursive trees into matrices with dynamic programming. (<a href="https://itnext.io/dynamic-programming-vs-divide-and-conquer-2fea680becbe?gi=cf98e9f00d45">Image Source</a>)</figcaption></figure><p>For dynamic programming, five major steps are needed:</p><ul><li>Find a <strong>parameterization</strong> of the problem, and determine the number of variables that are changing as the model is iterating.</li><li>Ensure the subproblem space has polynomial time complexity and that there is extensive subprogram <strong>reusal</strong>.</li><li>Determine an effective way to transverse through these variables.</li><li>Determine a <strong>recursive formula</strong>. This sets up the substructure mentioned above where the optimal solution relies on optimal solutions to subproblems.</li><li>Remember optimal solutions to subproblems, and make a polynomial representation of it.</li></ul><h4>Dynamic Programming in Sequence Alignment</h4><p>Dynamic programming can be used in sequence alignment by creating a matrix, where the column/row are the two sequences. The algorithm, in simple terms, systematically fills the table, finds optimal scores, and then traces back from the optimal score to find the optimal solution.</p><h3>Needleman-Wunsch Algorithm</h3><h4>Setup</h4><p>We now return back to the problem of the longest common subsequence between two sequences and how to reduce the time complexity from exponential to linear. Before doing, this a few variables need to be defined:</p><ul><li><strong>S = {S1, S2, …, Sm}</strong> and <strong>T = {T1, T2, … Tn}</strong>: the two sequences</li><li><strong>d</strong>: the gap penalty cost (as explained above)</li><li><strong>s(x; y)</strong>: the score of aligning a base x from S and a base y from T</li><li><strong>F</strong>: matrix where F (x, y) refers to the xth place in S and the yth place in T</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/0*daaOOSeg8q5785CT.gif" /><figcaption>How matrix F looks for S = ACTG and T = ACTG (<a href="https://www2.seas.gwu.edu/~simhaweb/cs151/lectures/module12/align.html">Image Source</a>)</figcaption></figure><p>This algorithm attempts to use a key part of dynamic programming: that you can keep track of the optimized sub-problems to solve the problem of finding the best subsequence. If there is an optimal alignment from F(0, 0) to F(m, n) (or the optimal alignment across both substrings), then this means that there is an optimal alignment between F(0, 0) to F(i, j) and F(i+1, j+1) and F(m, n) for any i in [0, m) and j in [0, n). <strong>This shows that every subpath in an optimal path has to also be optimal.</strong></p><p>Additionally, it also tells us that a (m + 1) * (n + 1) space matrix is necessary, since F(i, j) stores the score for the optimal alignment at that position.</p><h4>Filling the Matrix</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*x9FhuHbopwjkwbT11RJo6g.png" /><figcaption>Instantiation values for matrix F when running Needleman-Wunsch. (<a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Image Source</a>)</figcaption></figure><p>The first step is to <strong>initialize</strong> some rows and columns so that the algorithm can systematically fill data into other cells in the matrix. F(0, 0) is initialized with 0, because no alignments have been made yet. F(i, 0) = F(i-1, 0)-d, because a state change from F(i-1, 0) to F(i, 0) means that Sequence T had a gap, which contributes to a gap error penalty. Similarly, F(0, j) = F(0, j-1)-d, because a state change from F(0, j-1) to F(0, j) means that Sequence S had a gap.</p><p>The next step is to <strong>fill the matrix F </strong>with optimal scores. At each spot F(i, j), there are four possibilities that need to be considered:</p><ul><li>Sequence S has a gap at the current alignment: <strong>F(i, j-1)</strong></li><li>Sequence T has a gap at the current alignment:<strong> F(i-1, j)</strong></li><li>There is a nucleotide substitution at the current position: <strong>F (i-1, j-1)</strong></li><li>There is a match at the current position: <strong>F(i-1, j-1)</strong></li></ul><p>Each of these scenarios provide different scores. To maximize our final score and reduce our cost, we have to take the <strong>maximum</strong> from these scenarios.</p><p>The last step is our <strong>termination</strong> sequence, which ends at the bottom right or F(m, n). This is because this is the ending of both of the sequences, so there are no further changes to be made.</p><p><em>Note: It’s important when filling this matrix, that you remember how you got there (e.g. which cell gave you the maximum score). Therefore, along with storing the matrix F, pointers need to be stored showing which cells point to which.</em></p><h4>Traceback</h4><p>After initializing the matrix, the final step is to <strong>traceback through the matrix starting at the bottom right until you get to the top left</strong> (or from F(m, n) to F(0, 0)). This will provide the optimal alignment, and determining what the path means will give you the longest common substring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*X2Q72Oil8tYPwt0q.png" /><figcaption>Example of Needleman-Wunsch in action. (<a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FNeedleman%25E2%2580%2593Wunsch_algorithm&amp;psig=AOvVaw1fNy7w1sIYwWG7Yh9UUR4a&amp;ust=1614036936081000&amp;source=images&amp;cd=vfe&amp;ved=0CAIQjRxqFwoTCOCzgKSS_O4CFQAAAAAdAAAAABAl">Image Source</a>)</figcaption></figure><h4>Runtime</h4><p>This algorithm takes <strong>O(mn)</strong> for both time and space complexity. This is because the instantiation of the matrix takes longer than the traceback, but since each instantiation of a cell takes O(1) time, for (m+1)*(n+1) cells, it takes O(mn) time. The same logic can be applied for space complexity.</p><p><em>Note: For non-linear gap complexities, the runtime could extend to </em><strong><em>O(mn(m+n))</em></strong><em>.</em></p><h3>Optimizations</h3><h4>Bounded Dynamic Programming</h4><p>Even with an O(mn) time complexity, that number could still be large, considering the billions of base pairs in the genome. Is there any way to make the model <strong>linear complexity</strong>?</p><p>One realization that can be made is only the squares that are close to the diagonals are being used for the traceback feature. This means that there is no need to instantiate the other numbers in the matrix. Granted, there may be some sequences that stray heavily from the diagonal, but this algorithm will likely capture relatively optimal alignments while ignoring alignments with too many gaps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*9wAaixj5kAw_fHPuofStXA.jpeg" /><figcaption>Graphical representation of bounded dynamic programming. (<a href="https://slideplayer.com/slide/14104507/">Image Source</a>)</figcaption></figure><p>Mathematically, we can say that we limit the matrix to a distance W. This means that there will only be<strong> O((m+n) * W)</strong> time and space complexity, which means that there is now linear complexity. However, it’s important to remember that this will not guarantee optimal alignment anymore.</p><h4>Linear Space Alignment</h4><p>Another observation that can be made is seeing that only the last updated column is needed to create the next column, which costs only O(m). However, even though the update is O(m), how can we make the traceback linear?</p><p>This can be done using <strong>divide and conquer</strong>, where a forward (starting at top left) and reverse (starting at bottom right) pass can be made that will converge in the middle column. The steps are as follows:</p><ul><li>Find the optimal score in the middle column by <strong>adding the two alignment scores</strong> for the columns next to it.</li><li>Repeat the process by taking the two columns to the left and right of this.</li><li>Use the previous middle column as a pointer to compute the maximum score for the middle column.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*yeN8OfLO7FqDqFEQKSTZTA.png" /><figcaption>Step #1: Add the two alignment scores and find the optimal score. (<a href="https://slideplayer.com/slide/4837166/">Image Source</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*KCrBoVYEbrZ0PH6A2ZHwMQ.jpeg" /><figcaption>Recursively divide and conquer while iteratively repeating Step #1. (<a href="https://slideplayer.com/slide/5148425/">Image Source</a>)</figcaption></figure><p>Because tracebacks require more computation, the total running time is O(mn) + O (1/2 mn) + O(1/4 mn) + … = O(2mn) = <strong>O(mn)</strong>. However, this linear scalar of 2 pales in comparison to the polynomial reduction provided.</p><h3>Multiple Alignment</h3><h4>Three-Sequence Alignment</h4><p>Now that we’ve determined sequence alignment for two sequences, let’s see if we can extend the same logic to a series of <strong>three sequences S, T, and U</strong>. For these, there are seven different possibilities for each update of F:</p><ul><li>Three ways for two gaps in the alignment (3 choose 2 combinations)</li><li>Three ways for one gap in the alignment (3 choose 1 combinations)</li><li>One way for no gaps in the alignment (3 choose 0 combinations)</li></ul><p>As such, the update rule is changed to the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*OPBZo3pDQkE4OdXaIfItxQ.png" /><figcaption>Revised update rule for three sequence alignment. (<a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Image Source</a>)</figcaption></figure><p>Note that the time and space complexity expands accordingly to <strong>O(n^k) for k sequences of length n </strong>that need to be aligned. Consider using the various optimization algorithms discussed above to reduce this runtime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*-FJAgCseCBSgHzILhsAlnw.png" /><figcaption>Graphical representation of three-sequence alignment. (<a href="http://www.mi.fu-berlin.de/wiki/pub/ABI/MultipleAlignmentWS13/multal1.pdf">Image Source</a>)</figcaption></figure><h4>Progressive Multiple Alignment</h4><p>Looking at three-sequence alignments, we can see that aligning multiple sequences will soon become unfeasible due to exponential growth. How can we reduce the growth of O(n^k) to something like<strong> O(k*n^2)</strong>?</p><p>First, let’s make an assumption that we know the evolutionary tree relating to each of our sequences and that our first two-sequence alignment is with the most closely-related sequences (this process is called <strong>seed alignment</strong>). Next, continue to align the next closest sequences to the seed, and each new alignment replaces the seed. This process continues until the final alignment is produced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*kiREnzVJGSL_Jm1G.png" /><figcaption>Visual representation of progressive sequence alignment. (<a href="https://www.researchgate.net/figure/A-progressive-multiple-sequence-alignment-An-example-of-progressive-Multiple-Sequence_fig1_221865314">Image Source</a>)</figcaption></figure><p>One thing to note is that this final alignment <strong>isn’t optimal</strong>, but produces a <strong>drastically shorter runtime</strong> than the n-sequence alignment algorithm that was mentioned above.</p><h3>Local Alignment</h3><p>In this algorithm, we were considering how two sequences can have the longest common subsequence. This assumes that <strong>nucleotide groupings don’t switch places between mutations</strong>, and this can end up causing a huge number of mutations, when the actual result is much smaller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*sTy40ABE4P3d1W462rqWTQ.png" /><figcaption>Example of local alignment using Needleman-Wunsch. (<a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Image Source</a>)</figcaption></figure><p>As shown above, sequences of nucleotides in S and T can be switched around, even if there has been little to no mutations in between these two sequences. To code this up is relatively similar to the Needleman-Wunsch algorithm for global alignment. The initialization, iteration, and termination process are slightly altered:</p><ul><li><strong>Initialization:</strong> Rather than saying F(i, 0) = F(i-1, 0)-d, F(i, 0) = 0 because note that local alignment states that there can be a switch in nucleotide sequences at any point in S or T. The applies to F(j, 0), which is also initialized to 0.</li><li><strong>Termination:</strong> Termination can now occur anywhere, as shown in the diagram above.</li><li><strong>Iteration:</strong> Because termination can now occur anywhere, we want to penalize negative scores heavily. Therefore, we now add a new constraint, where if the maximum is negative, then we make F(i, j) = 0.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*9JyMNReB3qF4S1khbPrtpQ.png" /><figcaption>Instantiation values for matrix F for local alignment. (<a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Image Source</a>)</figcaption></figure><h3>Semi-Global Alignment</h3><p>Semi-global looks at an <strong>alignment of a substring s of sequence S with a substring of t of sequence T.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/1*ul79g5qzO13ae7DnifhH_A.png" /><figcaption>Example of local alignment using Needleman-Wunsch. (<a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Image Source</a>)</figcaption></figure><p>Similar to local alignment, there’s slight changes with the code from the Needleman-Wunsch algorithm that allow for this semi-global alignment:</p><ul><li><strong>Initialization: </strong>Same as local alignment</li><li><strong>Termination:</strong> Termination can happen on anything in the bottom row or the right column. This is because these are the places where one of the sequences, S or T, stops. Since we are looking for semi-global alignment, once the sequence stops, there’s no way to go further, similar to global alignment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*2zcuuq8m4LdYa6DbcuK9qA.png" /><figcaption>Instantiation values for matrix F for semi-global alignment. (<a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Image Source</a>)</figcaption></figure><h3>TL;DR</h3><ul><li>Sequence alignment allows us to compare two genetic strands and determine what mutations led one to another.</li><li>During sequence alignments, certain costs have to be placed on gap sizes and different nucleotide alterations so that the sequence alignment makes more sense probabilistically and biologically.</li><li>The most simplistic sequence alignment algorithm, the most common substring, has the least accuracy but one of the fastest runtimes (quadratic). The most common subsequence has a higher accuracy but an extremely slow runtime (exponential).</li><li>Dynamic programming allows us to use repeating optimal subsequences to reduce the computation runtime of the model. The Needleman-Wunsch algorithm creates a matrix of scores for each subalignment, and finds the optimal alignment by tracing back through the maximum scores. The time and space complexity for this algorithm is quadratic.</li><li>Optimizations, such as bounded space programing and linear space alignment, exist to make the runtime linear.</li><li>The Needleman-Wunsch algorithm can be extended to sequence alignment for multiple sequences.</li><li>Instead of matching whole sequences together, certain sections of the sequences can be matched together to increase accuracy of the model and provide a better view of the evolutionary pathway between the two sequences provided.</li></ul><h3>Additional Resources</h3><ul><li>Book: <a href="https://ocw.mit.edu/ans7870/6/6.047/f15/MIT6_047F15_Compiled.pdf">Computational Biology — Genomes, Networks, Evolution</a></li><li>Video: <a href="https://www.youtube.com/watch?v=AuXp5IZNq70">Sequence Alignment Using Dynamic Programming</a></li><li>Video: <a href="https://www.youtube.com/watch?v=pO3GCbmfUKQ">Local Alignment, Hashing, BLAST Algorithm</a></li><li>Page: <a href="https://en.wikipedia.org/wiki/Needleman%E2%80%93Wunsch_algorithm">Needleman-Wunsch Algorithm</a></li><li>Tool: <a href="https://www.ebi.ac.uk/Tools/psa/">Pairwise Sequence Alignment</a></li></ul><p><em>If you want to talk more, schedule a meeting: </em><a href="https://calendly.com/adityamittal307"><em>Calendly</em></a><em>! For information about projects that I am currently working on, consider subscribing to my </em><a href="https://preview.mailerlite.com/v5x5i6"><em>newsletter</em></a><em>! Here’s the link to </em><a href="https://forms.gle/pLWuNuBuJQokMk3N8"><em>subscribe</em></a><em>. If you’re interested in connecting, follow me on </em><a href="https://www.linkedin.com/in/adityamittal-/"><em>Linkedin</em></a><em>, </em><a href="https://github.com/adityamittal13"><em>Github</em></a><em>, and </em><a href="https://medium.com/@adityamittal307"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=710c7b1a23a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/sequence-alignment-and-the-needleman-wunsch-algorithm-710c7b1a23a4">Sequence Alignment and the Needleman-Wunsch Algorithm</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>