<?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 Arkarachai (Chai) Fungtammasan, PhD on Medium]]></title>
        <description><![CDATA[Stories by Arkarachai (Chai) Fungtammasan, PhD on Medium]]></description>
        <link>https://medium.com/@arkarachai.af?source=rss-653473140ef4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*w0pfrxInFuCmWhTe</url>
            <title>Stories by Arkarachai (Chai) Fungtammasan, PhD on Medium</title>
            <link>https://medium.com/@arkarachai.af?source=rss-653473140ef4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:27:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arkarachai.af/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[How to Perform Large-scale Data Processing in Bioinformatics]]></title>
            <link>https://medium.com/dnanexus/how-to-perform-large-scale-data-processing-in-bioinformatics-4006e8088af2?source=rss-653473140ef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4006e8088af2</guid>
            <category><![CDATA[biomedical-research]]></category>
            <category><![CDATA[biotechnology]]></category>
            <category><![CDATA[bioinformatics]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[bioinformatics-tools]]></category>
            <dc:creator><![CDATA[Arkarachai (Chai) Fungtammasan, PhD]]></dc:creator>
            <pubDate>Mon, 18 Apr 2022 16:01:33 GMT</pubDate>
            <atom:updated>2022-04-18T16:01:33.571Z</atom:updated>
            <content:encoded><![CDATA[<p>A Complementary Discussion for “Ten Simple Rules for Large-scale Data Processing”</p><p>Contributors: Arkarachai Fungtammasan, <a href="https://medium.com/@YihChii">Yih-Chii Hwang</a>, <a href="https://infoecho.medium.com/">Jason Chin</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iqD6ryeHxKXgRuMOqVWE0A.png" /></figure><p>Most biomedical students and early career professionals might think that large-scale data processing belongs to the realm of computer engineering, and they do not have to worry about it. However, at some point, many scientists find that they need to perform large-scale data analysis. In this article, we provide useful guidelines to help you run that analysis with fewer problems.</p><p>Recently, we published an article “<a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009757">Ten Simple Rules for Large-scale Data Processing</a>” in <em>PLOS computational Biology</em> in collaboration with members from the <a href="https://greenelab.com/">Greene lab</a>, <a href="https://www.alexslemonade.org/">Alex’s Lemonade Stand Foundation</a>, and the Center for Health AI at the University of Colorado School of Medicine. This article builds on that work and describes a technical planning process that scientists can apply to both high-performance computing and the cloud. Although it was written using examples from genomics, these rules are applicable to other data analysis scenarios.</p><p>While it is conventional for articles in this series to have only 10 rules, there are additional rules that scientists should take into consideration. In this blog post, we discuss some of those important supplemental rules.</p><h3>Recap of 10 simple rules for large-scale data processing</h3><p>To start, let’s quickly summarize the <a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009757">10 rules</a> that we published earlier this year. For those who are interested, the full manuscript is open access and takes about 10 minutes to read.</p><p>Rule 1: Don’t reinvent the wheel: Check for published or pre-processed data that could be useful.</p><p>Rule 2: Document everything: Track all rationale and decisions used in your work and make it easy for others to track what you have done.</p><p>Rule 3: Understand hardware and regulatory limitations and tradeoffs: Be aware of the regulations and standards that govern the platforms and data you are working with. Simply put, know where you “can” and “should” analyze your data.</p><p>Rule 4: Automate your workflows: Set up a system that supports repeated analysis of your data. There are various workflow tools available that can be helpful in this regard.</p><p>Rule 5: Design for testing: Plan multiple test input sets and expected outcomes to identify problem areas and sources of error.</p><p>Rule 6: Version both software and data: Use version control for all related software, workflows, and data in your pipelines.</p><p>Rule 7: Continuously measure and optimize performance: Measure the performance of your workflows and algorithms at intervals to identify areas that can be optimized to reduce costs and save time; change the tool option if needed.</p><p>Rule 8: Manage compute, memory, and disk resources at scale: Consider trade-offs in memory, storage, and computing resource use. Depending on what is available, you may need to make different choices about data management and analyses.</p><p>Rule 9: Learn to recover from failures: The more data you analyze, the greater the risk of errors. This is why it is important to include error handling in workflow.</p><p>Rule 10: Monitor execution: Keep track of potential production issues, and scale up your analysis gradually.</p><p>In the next section, we will discuss other rules that are crucial for large-scale data analysis. We will use the rule number with the suffix “.5” for a new rule to indicate where it would be inserted in the ordered list above. For example, Rule 2.5 should be considered after Rule 2 and before Rule 3. Note that even though we tried to write down all these rules in a particular order, in reality, scientists may jump back and forth between rules in many scenarios.</p><h3>Rule 2.5: Understand where the burden is and design around it</h3><p>It is best to first understand the analysis type and its major requirements. Performing large-scale data analysis could require large quantities of computing power, memory, and storage, or involve a lot of files, or some combination of these issues. A good understanding of where the burden comes from could guide scientists to viable solutions. For example, performing classical molecular dynamics simulations requires large quantities of compute power, but the input and output are usually small. Therefore, it is possible to perform this type of analysis on various settings relatively easily and find the consensus among results later. Processing next-generation sequencing data requires a different approach. The input data is sizable, so scientists have to consider their data storage and transfer requirements as well.</p><p>The type of analysis also impacts how scientists distribute the work to speed up their analysis. For example, when calling variants in a large number of samples, the first step is to detect variants independently in each sample using the same process. Therefore, distributing one sample per analysis is the most natural way to approach the analysis. The next step might be to use the known variants for each sample to perform joint variant calling to improve the accuracy of the calls. To do so, the scientists would need to combine all samples. In this step, it would make more sense to distribute analysis per chromosome or per region in chromosomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qgud59U_9gMQj5DE" /></figure><p>Figure 1: Slicing data for distributed computing in variant calling and joint calling application</p><p>One way to think about the problem is to think of it as a computational graph, a directed acyclic graph that lays out all the required computing tasks and any associated dependencies. If you use <a href="https://techvidvan.com/tutorials/apache-spark-dag-directed-acyclic-graph/">Spark</a> or <a href="https://docs.dask.org/en/stable/graphviz.html">DASK</a>, these tools already use computational graphs natively. The image below is designed to help you visualize which components could be analyzed in parallel even though they may not have a clear parallel computing structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/0*r4UeLIHyBK4AdnpL" /></figure><p>Figure 2: An example of a computational graph. Each box represents the processing that needs to be done. Each path to the merging point can be computed separately. The ability to perform computing separately is required for parallel or distributed computing.</p><h3>Rule 3.5: Forecast the cost and time</h3><p>After selecting a deployment platform, the next step is to set up your end-to-end pipeline and automate it (<a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009757#sec005">Rule 4</a>) to prove that your analysis can be done. Part of the setup process involves checking the estimated time and resources required to complete your analysis on a small scale. Try to extrapolate from this information if the whole project is feasible in terms of cost and timeline. Look to gain an early understanding of how the computing and resource requirements scale (linear, quadratic, etc.) with the amount of data would greatly help with cost predictions. Make sure a reasonable margin of error is included in the calculation.</p><p>Remember that this is an estimate and that your costs will change over time. This early in the project, the end-to-end pipeline is not finished and optimized; there may be additional costs to consider as development continues. Also, the margin of error depends heavily on the error rate of your tools of choice, the reliability of your system, and the quality of data. Such information would only be available later on in the process. Therefore, it is important to frequently revisit and reevaluate your estimated costs and time to ensure they remain within an acceptable range as the project progresses.</p><h3>Rule 4.5: Organize files and analyses with metadata</h3><p>Metadata — data or information associated with the data of interest — is crucial in analysis as it provides important context and meaning to the data. Aside from improving data interpretation, metadata is also useful for organizing execution plans for large-scale analysis. For example, when grouping data into multiple batches for analyses, you can add tags that make it easier to identify which data belongs to a certain batch. This tagging system makes it simpler to quickly gather and verify related data. Such a system is also helpful to track down related files if there is an issue with a particular batch of analysis. Depending on your chosen system (<a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009757#sec004">Rule 3</a>), there could be multiple metadata options. These metadata could be mutable/immutable, structured/unstructured, and have different access mechanisms. Each type has pros and cons. The best approach may be to use multiple metadata types to meet your requirements.</p><p>Some platforms (e.g. <a href="https://ukbiobank.dnanexus.com/">UK Biobank Research Analysis Platform</a>) support attaching metadata to each analysis jobs. This is particularly powerful for managing overall data analysis and reanalyzing certain batches when necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IpGxPs2wouURWLdQ" /></figure><p>Figure 3: Using metadata to tag analyses with experiment name, number of analysis batch, and whether the analysis is the original or a rerun of a failed analysis. See more <a href="https://dnanexus.gitbook.io/uk-biobank-rap/science-corner/guide-to-analyzing-large-sample-sets">info</a>.</p><p>Even if you perform your analysis on a platform with no metadata management system, this principle still applies. Two of the most under-appreciated kinds of metadata are the data filename and analysis name which are possible to implement in almost all systems. It is a good practice to have a patterned and self-explanatory name so that users can quickly identify samples and related analyses. In addition, the filename should be unique to the project. Do not rely on a file path to make distinctions. Although both file names and file paths are mutable, paths are more likely to change because files might be reorganized or transferred to other locations.</p><p>For example, the filename could have the pattern <em>&lt;sampleID&gt;_&lt;replicate_or_other_identifier_if_any&gt;_&lt;previous_and_overall_processing&gt;.&lt;file format extension&gt;</em> such as SRR1234_rep1_rawReadQCProtocol1.html.</p><p>At the same time, the analysis could have comparable pattern <em>&lt;analysis_protocol&gt;_&lt;sampleID&gt;_&lt;replicate_or_other_identifier_if_any&gt;_&lt;attempt&gt;</em> such as rawReadQCProtocol1_SRR1234_rep1_rerun3.</p><p>Having the patterned name is also helpful for communicating with collaborators, and it is helpful for not getting mixed up about which files to use in the future when you revisit your analysis. If you currently use filenames such as test1.txt or foo.txt, this would be a good time to make a change.</p><p>As we mentioned earlier, each type of metadata has pros and cons. The filename, in particular, has several limitations including low character limit, mutability, and it is limited to only text format. These limitations can be compensated for with manifest files that record the filename, file path, file signature (e.g. md5), and a description of abbreviation that might be used in the filename. It is a lot of work to set up a system like this from scratch but the time investment will pay off in the long run. It will be much simpler to keep track of the files and analyses needed for your work.</p><h3>Rule 10.5: Sharing data</h3><p>Finally, you got the results that you need! It took a lot to get to this point so it would be good if other researchers do not have to repeat all the work you just did. In fact, it would violate <a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009757#sec002">Rule 1 on using existing resources in the publication</a> if we do not share research results.</p><p>Simply sharing data is not immediately useful. Others who want to reuse the resources need to know detailed information about the data including how it was processed and by what software. In bioinformatics, most software programs have several versions and there is no guarantee that all the versions are properly maintained. <a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009757#sec003">Rule 2</a> on documentation and <a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009757#sec007">Rule 6</a> on versioning greatly impact the usefulness of data sharing.</p><p>A set of good practices around data sharing is worth another blog post by itself. There are several standards around today such as <a href="https://www.go-fair.org/fair-principles">FAIR principles</a> to make your data Findable, Accessible, Interoperable, and Reusable. Another recent publication “<a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009768">Ten simple rules for improving research data discovery</a>” provided a full suite of recommendations on data sharing that covered some important technical &amp; ethical considerations.</p><p>Sharing data benefits the community but is also useful for building a strong research portfolio to support your career. First, having detailed documentation about your work in a sharable condition is helpful for drafting publications, auditing, and expanding the work you have done. Secondly, it increases the impact of your work. Many citations do not come from the main conclusion of the paper, but from auxiliary data points or resources provided as an addendum.</p><h3>Conclusions</h3><p>Working with big data does not have to be scary. The guidelines in this article and our previous paper provide the foundation to help you get started. As you launch your pipelines and begin analyzing data, you will identify the shortcomings in your process, refine your workflows, and develop your own set of rules that benefit our communities. We look forward to reading about your experiences and suggestions.</p><h3>Related article</h3><p><a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009757">Ten simple rules for large-scale data processing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4006e8088af2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dnanexus/how-to-perform-large-scale-data-processing-in-bioinformatics-4006e8088af2">How to Perform Large-scale Data Processing in Bioinformatics</a> was originally published in <a href="https://medium.com/dnanexus">DNAnexus Science Frontiers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Towards a Truly “Personalized” Genome Part 2:]]></title>
            <link>https://medium.com/dnanexus/towards-a-truly-personalized-genome-part-2-848d00116c8e?source=rss-653473140ef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/848d00116c8e</guid>
            <category><![CDATA[long-reads]]></category>
            <category><![CDATA[genome-assembly]]></category>
            <category><![CDATA[phasing]]></category>
            <category><![CDATA[personalized-medicine]]></category>
            <dc:creator><![CDATA[Arkarachai (Chai) Fungtammasan, PhD]]></dc:creator>
            <pubDate>Tue, 12 Jan 2021 00:00:39 GMT</pubDate>
            <atom:updated>2021-01-14T03:15:30.377Z</atom:updated>
            <content:encoded><![CDATA[<h3>De novo assembly and haplotype phasing of diploid human genomes using long High-fidelity reads and non-trio phasing approaches</h3><p>DNAnexus Research Lab</p><p>Contributors: Arkarachai Fungtammasan, Jason Chin</p><figure><img alt="De novo assembly and haplotype phasing of diploid human genomes" src="https://cdn-images-1.medium.com/max/1024/1*IqLY6ptOTCTuBSkGtsqsqA.png" /></figure><p>The world of genome assembly has moved into a new frontier since our <a href="https://medium.com/dnanexus/toward-true-personalized-genome-1-3d4b8c454466">last blog post</a>. Two recent publications in Nature Biotechnology (<a href="https://www.nature.com/articles/s41587-020-0711-0">Chromosome-scale, haplotype-resolved assembly of human genomes</a> &amp; <a href="https://www.nature.com/articles/s41587-020-0719-5">Fully phased human genome assembly without parental data using single-cell strand sequencing and long reads</a>) demonstrate how to assemble and fully phase human genomes. In this blog post, we would like to discuss some of the progress that the community has made in recent months along these lines. Specifically, we provide a high level intuition about why the read properties (length and accuracy) and non-trio-based phasing methods are important for genome assembly and can ultimately lead to high resolution human genomes for precision medicine. We discuss the methods used in both the Garg et al (2020) and Porubsky, Ebert et al (2020) publications, but emphasize the background knowledge related to Garg et al since we were involved in the research.</p><h3>High Fidelity Long Reads and Repeats</h3><p>High accuracy medium sized reads such as Circular Consensus Read (CCS) were introduced at the similar time as Continuous Long Reads (CLR) by Pacific Biosciences when the company debuted the first single molecule DNA sequencer in 2011. However, the first CCS reads were not very long and their utility was limited. As a result, CLR data has been the major workhorse for genome assembly. It works by generating intramolecular consensus through the hierarchical genome assembly process (e.g., <a href="https://www.nature.com/articles/nmeth.2474">Falcon</a>, <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5411767">Canu</a>). It was only recently when PacBio began generating much longer CCS reads (around ~15kbp) that they are now being widely adopted for genome assembly under new branding — High Fidelity Long reads (<a href="https://www.nature.com/articles/s41587-019-0217-9">HiFi</a>). The initial promise of HiFi reads for genome assembly is that they offer an order of magnitude lower compute cost due to a reduced need for error correction prior to the assembly, and for polishing the draft genome after the assembly is complete. These tasks account for roughly 80–90% of the total compute requirement.</p><p>In our <a href="https://medium.com/dnanexus/toward-true-personalized-genome-1-3d4b8c454466">previous blog post</a>, we mentioned that read length is crucial for resolving repeats in genome assemblies by anchoring or bridging with the non-repetitive flanking regions of the repeats. However, it is possible to correctly assemble repeats that are not 100% identical if the reads are long and accurate enough to span multiple markers (different sites between repeats) (Figure 1). Depending on the repeat structure, there are regions that could be resolved by either noisy ultra-long reads or long and high accurate reads. Both technologies are good complements for creating more complete genome assemblies.</p><figure><img alt="Figure 1: The interplay of read length and accuracy to resolve repeats." src="https://cdn-images-1.medium.com/max/1024/0*7CiE-VCr4tDMtuqW" /><figcaption>Figure 1: The interplay of read length and accuracy to resolve repeats. (Source: Adam Phillippy, Plant and Animal Genomics conference, 2020)</figcaption></figure><p>In the figure above, the arrows R1, 2, 3 denote high similarity repeats in the genome with vertical marks denoting marker mutations found in some, but not all three repeats. The markers at the same position on the repeats are the same in this example. The horizontal lines with colors are non-repetitive flanking regions. The vertical bars in raw reads denote the mixture of true marker mutations and sequencing errors. Ultra-long Nanopore reads can resolve repeats by anchoring with flanking regions. HiFi data could also resolve the repeats if the marker mutations could be spanned by the read length. Illumina and CLR data, however, could not fully resolve these three repeats because they are too short to span multiple marker mutations and too noisy to confidently detect the marker mutations respectively.</p><p>The higher accuracy of HiFi data enables the application of various algorithmic decision procedures used in new assemblers like <a href="https://www.biorxiv.org/content/10.1101/705616v1">Peregrine</a>, <a href="https://arxiv.org/abs/2008.01237">Hifiasm</a>, <a href="https://genome.cshlp.org/content/early/2020/08/14/gr.263566.120">HiCanu</a>, and <a href="https://github.com/PacificBiosciences/pbipa">IPA</a>, which is not feasible with high error reads. Using these algorithms further lowers computing costs, supports greater continuity of the assembled genome, and improves the ability to phase large regions of low heterozygosity.</p><h3>Non-trio-based Phasing</h3><p>Diploid organisms like humans inherit one set of homologous chromosomes each from both parents. Phasing is used to determine which variants come from the same physical chromosome, and hence from the same parent. Using parental information to bin the reads prior to assembly (<a href="https://www.nature.com/articles/nbt.4277">trio-binning</a>) is convenient and can indicate which haplotype came from the father and which came from the mother. The challenge, however, is that parental information is not always available or may not be accessible in future clinical applications.</p><p>An early breakthrough in algorithms for non-trio phasing is the <a href="https://www.nature.com/articles/nmeth.4035">Falcon-Unzip</a> method which profiles local variants and then aligns long reads to those variants to phase them. This framework is also adopted by the <a href="https://www.biorxiv.org/content/10.1101/327064v1">Falcon-Phase</a> methodology which expands the phasing block size by using Hi-C data to sort the local phasing block from the same parent into the same groups. These tools were designed to work with the PacBio CLR dataset, and both assembly and initial phasing are handled by the same tool. In addition, there are newer tools that jointly perform phasing and assembly using HiFi data such as IPA, Hifiasm, and HiCanu. We will reserve our discussion about these methods for another blog post.</p><h3>Recent research on phased genome assemblies</h3><figure><img alt="Recent publications on phased genome assemblies" src="https://cdn-images-1.medium.com/max/1024/0*A4bN2D0BG1L4EBxE" /><figcaption>Figure 2: Recent publications by Garg et al (2020) and Porubsky, Ebert et al (2020) describing research on phased genome assemblies</figcaption></figure><p>Two recent publications (Figure 2; <a href="https://www.nature.com/articles/s41587-020-0711-0">Garg et al (2020)</a> and <a href="https://www.nature.com/articles/s41587-020-0719-5">Porubsky, Ebert et al (2020)</a>) describe new methods for creating high continuity, high accuracy, and fully phased human genome assemblies. The methods described in both papers share one interesting algorithmic decision, a procedure that we refer to as assemble-phase-assemble. First, an unphased assembled genome is created, so that the reference genome is not required. Second, reads are mapped to this unphased (“squashed”) assembly and binned based on haplotype. In both publications, the authors reported that they could also bin the reads by chromosome and phase haplotypes along entire chromosomes. These are both major advantages over previous methods such as Falcon-Unzip. The final assembly is created from each group of binned reads. The two main benefits of this paradigm are: <br> <br> 1) The phasing is performed on the de novo assembled genome rather than a typical <a href="https://www.biorxiv.org/content/10.1101/660605v2">reference-guided assembly</a>.</p><p>2) The phasing algorithm is independent of the assembly algorithm. This lets the user choose which algorithms they want to use. They could even pick different algorithms for unphased and phased assemblies.</p><p>Decoupling these two steps also simplifies the job of algorithm developers. There are, of course, risks to decoupling these steps as incorrect binning could lead to a misassembled genome in the final step (<a href="https://arxiv.org/abs/2008.01237">See discussion by Haoyu Cheng and Heng Li</a>), but the benchmarks reported in these two publications show that the results of phasing using this approach are highly accurate.</p><p>In Garg et al (2020), the authors used Hi-C data to scaffold the assembly into 23/24 chromosomes. This way, mapped reads to these chromosomes could be processed independently. Then phasing is done using <a href="https://www.biorxiv.org/content/10.1101/085050v2">WhatsHap</a> and a combination of <a href="http://dx.doi.org/10.1038/s41467-017-01389-4">local phasing signals and long-distance phasing information</a> from Hi-C + <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5411775/">HapCUT2</a>.</p><p>The usage of Hi-C data is an interesting choice. <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4772016">The data is not too complicated to generate</a> and could be used for both scaffolding and phasing. The scaffolding of the unphased assembly is also important for this data type since the assembly is performed on each cluster of reads. Without this step, the cluster would not represent the whole chromosome. Thus, it would not be whole chromosome phasing unless we use the reference genome to guide which clusters belong to the same chromosome. It is also important to note that the heterogametic sex chromosomes are not properly phased at this moment, but this is something can be solved in future studies.</p><p>In Porubsky, Ebert et al (2020), the segregation of reads into haplotype and phasing is enabled by a special sequencing protocol called <a href="https://www.nature.com/articles/nprot.2017.029">Strand-seq</a>. This method tracks the template strand after mitotic cell division by using a thymidine analog. By using the patterns of the inherited strand among multiple single-cell sequencing, a separate tool, <a href="https://github.com/daewoooo/SaaRclust">SaaRclust</a>, bins them into chromosomes. Then a combination of Whatshap and information from Strand-seq are used to phase the reads. The major challenge of this method is the difficulty of generating Strand-seq data, which is not yet commercially available. However, since phasing is guided by Strand-seq, the initial assembly contigs do not have to be ordered into complete chromosomes. Furthermore, the method has been shown to work for all types of long read sequencing data (Oxford Nanopore data, PacBio CLR, and PacBio HiFi).</p><figure><img alt="HLA and KIR3DL3 assembled genes (screenshot)" src="https://cdn-images-1.medium.com/max/768/0*V9BolKG6eS7b9FYu" /><figcaption>Figure 3: A screenshot from Garg et al 2020 showing assembled HLA and KIR3DL3 genes</figcaption></figure><h3>The Impact</h3><p>High-quality phased assembled genomes allow us to study complex human genes at unprecedented resolution. Figure 3 above from Garg et al., shows fully phased HLA (the first trigger for innate and adaptive immune response) and KIR3DL3 (an important receptor of killer T cell) genes. These genes are not only <a href="https://www.nature.com/articles/s41467-020-18564-9">complicated to assemble</a>, but also very <a href="https://www.nature.com/articles/s41588-020-0646-x">diverse</a>. Thus, phasing is a <a href="https://www.nature.com/articles/nrg2950">crucial tool for properly characterizing them for functional studies or clinical diagnosis</a>.</p><p>Both Garg et al (2020) and Porubsky, Ebert et al (2020) are important landmarks in deciphering human genome diversity. In an ideal world, we would be able assemble and phase every base on all chromosomes in the human genome. Currently, there are initiatives that are working on making this vision a reality. The Telomere-to-Telomere (T2T) consortium, for example, is working on the <a href="https://www.nature.com/articles/s41586-020-2547-7">Telomere-to-Telomere haploid CHM13 genome</a> semi-manually that could lead to <a href="https://genomeinformatics.github.io/CHM13v1/">a more completed reference genome</a>. As part of this work, they are developing new automatic methods of assembling the genome. We are optimistic that the Telomere-to-Telomere phased and assembled diploid genome should be coming soon. We think it will have equivalent or bigger impacts than the current genome sequencing model that only identifies small variants from a common reference.</p><p>Assembling the genome in the right way is not quite simple and economical yet. But we get much <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-019-1707-2">more resolution with phasing for complex genes than short-read technology offers</a>. Easier data generation, active algorithm development, and the benefits that accrue from knowing the sequences of these complex and diverse genes would help accelerate new paradigms in the genomics and biomedicine.</p><p>Consortiums like Human Genome Structural Variation Consortium and Human Pangenome Reference Consortium are major driving forces in this regard but there are ample opportunities for research and development. Some of the questions that still need to be answered are what kind of data/algorithms are needed to create personalized assembled genomes in future? When might these become a reality? Could we understand the implications of all variants and make this information available to people through <a href="https://www.nature.com/articles/s41586-020-2817-4">smartphones</a>? We invite you to join our community and help us make this vision happen.</p><p>We would like to thank Tobias Marschall and Heng Li for their comments and suggestions to improve this blog post. Thanks to Adam Phillippy for Figure 1.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=848d00116c8e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dnanexus/towards-a-truly-personalized-genome-part-2-848d00116c8e">Towards a Truly “Personalized” Genome Part 2:</a> was originally published in <a href="https://medium.com/dnanexus">DNAnexus Science Frontiers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Towards a Truly “Personalized” Genome]]></title>
            <link>https://medium.com/dnanexus/toward-true-personalized-genome-1-3d4b8c454466?source=rss-653473140ef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d4b8c454466</guid>
            <category><![CDATA[trio-binning]]></category>
            <category><![CDATA[genome-assembly]]></category>
            <category><![CDATA[long-read-sequencing]]></category>
            <category><![CDATA[phasing]]></category>
            <dc:creator><![CDATA[Arkarachai (Chai) Fungtammasan, PhD]]></dc:creator>
            <pubDate>Wed, 10 Jun 2020 15:21:14 GMT</pubDate>
            <atom:updated>2020-06-10T15:30:27.691Z</atom:updated>
            <content:encoded><![CDATA[<h3>Towards a Truly “Personalized” Genome:</h3><h4>Part 1: De novo assembly and haplotype phasing diploid of human genome using noisy ultra-long read and trio-binning approach</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r0ozEAwkwN_jxvnrG5dyFQ.png" /></figure><p>Contributors: Arkarachai Fungtammasan, Junzhou Wang, Chiao-Feng Lin, Naina Thangaraj, Jason Chin</p><p>We plan to have a series of scientific blog posts about the personalized genome. This concept has been around for decades, so why do we want to discuss this again? As opposed to personalized genomes based on whole-genome shotgun sequencing and variant calling using a reference genome, we will focus on de novo assembly of an individual human genome which just became economically feasible recently. This approach is more suitable to discover large and novel structural variants or avoid bias from the reference genome.</p><p>The challenge of variant calling from the assembled genome is the heterozygous regions, which are usually collapsed during the assembly and obscures the variant calls. Falcon-unzip (<a href="https://www.nature.com/articles/nmeth.4035">https://www.nature.com/articles/nmeth.4035</a>) is one of the first tools that has been developed to report the primary contig and haplotype contig assemblies on high heterozygous regions. The variants on haplotype contigs are also phased, determining alleles assortment of multiple heterozygous loci on the same haplotype contig. Besides calling variants, genomic phasing is also critical to study allele-specific regulation, compound heterozygous mutations, or population genomics. For these reasons, the de novo assembly and phasing have become increasingly important in the study of personalized genomics and uncover human large scale structural variation.</p><p>In this series of blog posts, we will explore several sequencing technologies and assembly &amp; haplotype phasing methods that we have experimented with.</p><h3>Trio-binning using ultra-long reads</h3><p>In this first blog post, we are interested in the ultra-long <a href="https://nanoporetech.com/">Oxford Nanopore Technology (ONT)</a> data. These are ONT data that were generated using <a href="https://www.nature.com/articles/nbt.4060">special sequencing</a> <a href="https://www.protocols.io/view/hmw-gdna-purification-and-ont-ultra-long-read-data-bchhit36">protocol</a> [1,2] to increase the read length. In general, the longer read length is helpful in spanning across repetitive regions of the genome which would increase the assembly continuity. For this particular work, we are interested in using ultra-long reads to increase phasable read percentage with a trio-binning approach. The trio-binning approach for long read phasing and genome assembly was <a href="https://www.biorxiv.org/content/10.1101/271486v1">first described in 2018</a> [3] to use parental specific k-mer to separate long reads data into paternal, maternal, and unknown prior to the assembly. This method has been widely used for de novo genome assemblies of many vertebrate species using either <a href="https://www.biorxiv.org/content/10.1101/737171v1">PacBio Continuous Long Read (CLR)</a> [4] or <a href="https://www.nature.com/articles/s41587-019-0217-9">Circular Consensus Sequencing (CCS) mode</a> [5]. In the human genome, the heterozygosity is low, so the percentage of reads that overlap with parental specific k-mer and can be classified as paternal and maternal reads are about 60–70% [<a href="https://www.biorxiv.org/content/10.1101/271486v1">3</a>,<a href="https://www.nature.com/articles/s41587-019-0217-9">5</a>].</p><p>Our main interest is to increase phasable read percentage by using ultra long reads which would increase the probability of matching with parental specific k-mer. In particular, could we create fully phased assembled genomes if the reads are ultra-long?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nmEwCsR0M8Eyor5A" /></figure><p>Figure 1: The trio-binning and assembly of ultra-long ONT reads</p><p>We gathered ultra-long ONT data from UCSC ( <a href="https://s3-us-west-2.amazonaws.com/human-pangenomics/agbt2019/fastq/GM24385.fastq)">https://s3-us-west-2.amazonaws.com/human-pangenomics/agbt2019/fastq/GM24385.fastq)</a> and <a href="https://jimb.stanford.edu/giab">Genome In A Bottle consortium (GIAB)</a> [6] of HG002 individual and filtered to retain only reads that are at least 40 kbp (Figure 1). Using the parental specific17-mer to classify data, we could phase almost 100% of the reads (See Supplemental Note).</p><p>We assembled paternal and maternal reads into two 3 Gbp genomes using WTDBG2 with NG50 at 6.08 Mbp for paternal assembly and 8.69 Mbp for maternal assembly. As a quick check for phasing accuracy, we use the informative SNPs from our <a href="https://www.biorxiv.org/content/10.1101/262196v1.abstract">earlier work</a> [7] to determine if the phased SNPs are accurate (Figure 2). We found that the phasing accuracies of long assembled contigs are slightly higher than the trio-binning assembled genome using shorter but higher accuracy PacBio CCS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SAUnuvQjZprNiVzW" /></figure><p>Figure 2: Phasing accuracy inferring from ratio of parsimoniously assigned SNVs using trio information. Blue plus symbol is this study, while red cross symbol is Wenger 2019 study</p><h3>Polishing Benchmarking</h3><p>We further improved the quality of assembled genomes by aligning paternal and maternal ultra-long ONT reads back to assembled genomes and polishing with various algorithms. Our polishing strategies include WTDBG2-POA v.2.4, Medaka v.0.7.1, MarginPolish+HELEN v.1.1.0, and combinations of these three tools on both assembled paternal and maternal genomes. We evaluated these polishing results in terms of continuity (NG50 and number of contigs), completeness (complete Vertebrate BUSCO percentage), and accuracy (Qualimap2 mappability and error rate).</p><p>Overall, the WTDBG2-POA followed by the HELEN has the highest quality across all three categories (Figure 3 and Table 1). Other interesting observation includes:</p><ul><li>All the polished genomes are smaller than the original assemblies with the median of 2.8 Gbp (Table 1).</li><li>The WTDBG2-POA tool does not affect the total number of contig, while the rest alters the contig number (Table 1).</li><li>Both Medaka and HELEN can significantly increase the BUSCO score from 62–63% to 82–83% in one round of polishing (Figure 3B)</li><li>The Medaka tool significantly reduces contig continuity (Figure 3A). The quality of assembled genome also gets worse when combined with WTDBG2-POA either before or after Medaka polishing (Figure 3C)</li></ul><h3>A</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f9KKErjcG1lc1mZf" /></figure><h3><strong>B</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EhTqEgdm0WjU8raI" /></figure><h3><strong>C</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lLkapKrD22InYSxy" /></figure><p>Figure 3 Benchmarking polishing tools in terms of continuity, completeness, and accuracy. A) The assembly continuity measured by NG50 B) The assembly completeness measured by complete BUSCO of Vertebrate C) The assembly accuracy measured by mappability and error rate of parental specific trio-binned CCS reads. The higher mappability and lower error rate are considered higher accuracy.</p><p>We also inspected the WTDBG2-POA + HELEN using the K-mer Analysis Toolkit using both trio-binned CCS reads for paternal and maternal polished assemblies and unpartitioned HG002 Illumina reads (Figure 4). In both cases we found a large proportion of k-mer are not included in the final assemblies. Although our initial assemblies look promising, and the polished assemblies have reasonable BUSCO scores, we need more work to create higher quality genomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xg6Weon939BclIB-J3HDNQ.png" /></figure><p>Figure 4: KAT plot of maternal haplotype assemblies and both assembles against partitioned maternal CCS and unpartitioned Illumina reads respectively.</p><h3>Caveats</h3><p>Our work here demonstrates an interesting opportunity to get a personalized genome utilizing the latest sequencing technology. However, as these technologies and approaches are relatively new, we think it will help the community to look at our current approach critically. These haplotype phasing and assembled genomes look promising, but still far from high quality assembled genomes. What could we improve to create higher quality assembled genomes?</p><h4>Binning</h4><p>Although we were able to partition almost all the ultra-long reads and the long contigs in assembled genomes have high phasing accuracy, this does not guarantee that the phased reads are correctly partitioned. In the human genome, there are long stretches of homozygous regions over 50 kbp or even 500 kbp. Reads that came from those regions should be classified into neither paternal nor maternal reads. Theoretically, the ultra-long reads we used in this study should increase the phasable reads percentage, but a certain percentage of reads should remain in unknown due to the homozygous region in the human genome. The bigger concern is how many reads were classified into the incorrect parents of origin. We suspect that the sequencing error is one of the main reasons for misclassification, and we would need a better algorithm to accurately classify the noisy data.</p><h4>Assembly</h4><p>We chose WTDBG2 in this study because it was an economical choice and popular assembler when this project started. However, other assemblers including Flye, Shasta and a newer version of Canu are now available. It would be interesting to test if we can improve the assemblies further.</p><h4>Polishing</h4><p>The main concern about the polishing results is whether the reads after partitioning have sufficient sequencing depth to be optimally utilized by the polishing algorithm. Usually, the recommended sequencing depth is 50X for noisy reads. In this experiment, we have around 30X sequencing depth for each haploid after binning. It may be interesting to start with higher sequencing depth data and downsampling to test performances of each polishing tool with different sequencing depth.</p><p>These issues would need further investigation in the up-coming blog post which we will deep dive into some of those issues and explore other sequencing technologies and algorithms that might provide higher quality assembled genomes. Stay tuned!</p><h3>Final Note About the Project</h3><p>This project is part of the science frontiers program at DNAnexus which we allocate 10% of time for our scientists and engineers to collaborate in various scientific and technological fields outside the primary responsibility. These blog posts are personal opinions and experiments. The DNAnexus company disclaims responsibility for any analyses, interpretations, or conclusions.</p><h3>Supplemental Note</h3><h4>Binning and Assembly</h4><p>We retrieved the <a href="https://s3-us-west-2.amazonaws.com/human-pangenomics/agbt2019/fastq/GM24385.fastq">ultra-long ONT data from UCSC</a> [8] and Genome In A Bottle consortium (GIAB) [6] for a HG002 individual on<em> </em>21 May 2019 and filtered to retain only reads that are at least 40 kbp. Assuming a human estimated genome size of 3 Gbp, we have 67x sequencing depth with N50 at 85 kbp after filtering by length. The trio-binning was performed using the example code from <a href="https://github.com/skoren/triobinningScripts">https://github.com/skoren/triobinningScripts</a>. The 51x and 49x sequencing depth Illumina data of father and mother of HG002 were retrieved from GIAB repository [6]. The 17-mer sequence for these two Illumina datasets were quantified using meryl. The two sets of 17-mer were subtracted from each other and then the 17-mers that were present less than 5 times were removed. This leaves 9.8M and 12.7M paternal and maternal specific 17-mer respectively. Each ONT read was evaluated for the ratio of matched k-mer over the overall parental specific and classified based on majority voted into paternal, maternal, and unknown reads. Using the described parameters, we were able to phase almost all reads with 56.65% paternal reads, 43.34% maternal reads, and &lt;0.01% unknown reads. There are 6 unknown reads in total and they all consist of more than 40kbp near perfect repeat of either (A)n or (GT)n repeat. Overall, we concluded that the phasable read percentage is very high at almost 100%</p><h4>Qualimap2 analysis</h4><p>Note that rather than the Illumina reads, the mapped reads for Qualimap2 analysis came from the paternal and maternal PacBio CCS reads for HG002, which are generated from the same protocol as described above except that the 18-mer were used. The long CCS reads have higher accuracy than the noisy CLR or ONT reads and are also long enough to be segregated using 18-mer from trio-binning. We classified reads into 40.44% paternal reads, 40.89% maternal reads, and 18.66% unknown reads.</p><p>Table 1 Assembly contig length statistics from different polished results. The order of tools in each experiment reflects the order that the polishing tools were used. The NG50 for WTDBG2-POA followed by Medaka could not be estimated because the assembled genome size is smaller than half of the estimated genome size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWaHyBGPxJ1isw_Y6hAddQ.png" /></figure><h3><strong>References</strong></h3><p>1 <a href="https://www.nature.com/articles/nbt.4060">https://www.nature.com/articles/nbt.4060</a></p><p>2 <a href="https://www.protocols.io/view/hmw-gdna-purification-and-ont-ultra-long-read-data-bchhit36">https://www.protocols.io/view/hmw-gdna-purification-and-ont-ultra-long-read-data-bchhit36</a></p><p>3 <a href="https://www.biorxiv.org/content/10.1101/271486v1">https://www.biorxiv.org/content/10.1101/271486v1</a></p><p>4 <a href="https://www.biorxiv.org/content/10.1101/737171v1">https://www.biorxiv.org/content/10.1101/737171v1</a></p><p>5 <a href="https://www.nature.com/articles/s41587-019-0217-9">https://www.nature.com/articles/s41587-019-0217-9</a></p><p>6 ftp://ftp-trace.ncbi.nih.gov/giab/ftp/data/AshkenazimTrio</p><p>7 <a href="https://www.biorxiv.org/content/10.1101/262196v1.abstract">https://www.biorxiv.org/content/10.1101/262196v1.abstract</a></p><p>8 <a href="https://s3-us-west-2.amazonaws.com/human-pangenomics/agbt2019/fastq/GM24385.fastq">https://s3-us-west-2.amazonaws.com/human-pangenomics/agbt2019/fastq/GM24385.fastq</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d4b8c454466" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dnanexus/toward-true-personalized-genome-1-3d4b8c454466">Towards a Truly “Personalized” Genome</a> was originally published in <a href="https://medium.com/dnanexus">DNAnexus Science Frontiers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>