<?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 Jingyi Jessica Li on Medium]]></title>
        <description><![CDATA[Stories by Jingyi Jessica Li on Medium]]></description>
        <link>https://medium.com/@jsb.ucla?source=rss-75697d40942e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1_PISPkzSovzvOwQoXGSGA.jpeg</url>
            <title>Stories by Jingyi Jessica Li on Medium</title>
            <link>https://medium.com/@jsb.ucla?source=rss-75697d40942e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:01:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jsb.ucla/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[Bridging Cells and Space: The Journey of scDesign3 Exploration]]></title>
            <link>https://medium.com/@jsb.ucla/bridging-cells-and-space-the-journey-of-scdesign3-exploration-834f58a89e64?source=rss-75697d40942e------2</link>
            <guid isPermaLink="false">https://medium.com/p/834f58a89e64</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[genomics]]></category>
            <category><![CDATA[synthetic-data]]></category>
            <category><![CDATA[single-cell-sequencing]]></category>
            <dc:creator><![CDATA[Jingyi Jessica Li]]></dc:creator>
            <pubDate>Sat, 06 Apr 2024 05:17:11 GMT</pubDate>
            <atom:updated>2024-04-06T05:17:11.880Z</atom:updated>
            <content:encoded><![CDATA[<p>An interview of Jingyi Jessica Li by statsupai.com</p><p><em>This interview was invited by Dr. Hongtu Zhu (Professor of Biostatistics at University of North Carolinia at Chapel Hill) for StatsUpAI and originally posted at </em><a href="https://statsupai.com/quarto_web/site/posts/S3_interview.html"><em>https://statsupai.com/quarto_web/site/posts/S3_interview.html</em></a><em>. I quoted the interview here with Dr. Zhu’s permission.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ANgobw7h-PNf9iXW" /><figcaption>Photo by <a href="https://unsplash.com/@halacious?utm_source=medium&amp;utm_medium=referral">Hal Gatewood</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This interview was for the article</p><p>Song, D., Wang, Q., Yan, G. <em>et al.</em> scDesign3 generates realistic in silico data for multimodal single-cell and spatial omics. <em>Nat Biotechnol</em> <strong>42</strong>, 247–252 (2024). <a href="https://doi.org/10.1038/s41587-023-01772-1">https://doi.org/10.1038/s41587-023-01772-1</a></p><p>Below is the Q&amp;A.</p><p><strong>Regarding the research background and significance, does this work discover new knowledge or solve existing problems within the field? Please elaborate in detail.</strong></p><p>Our work aimed to provide a unified solution to the problems of method benchmarking and parameter inference in the single-cell and spatial omics field. As breakthrough technologies, single-cell and spatial omics can unprecedentedly provide a multimodal view of the molecular biology phenomena (such as genome-wide gene expression and open chromatin regions) in individual cells. The excitement about these new technologies and the generated massive data has propelled a rapid development of computational methods, leading to thousands of computational methods being developed in less than a decade. As a result, the availability of numerous computational methods makes method benchmarking a pressing challenge. Fair benchmarking demands synthetic data that contain ground truths and mimic real data, thus calling for realistic simulators.</p><p>Motivated by the critical need for method benchmarking and other tasks (e.g., power analysis) requiring ground truths, my group has developed a series of mode-based single-cell simulators: scDesign (Li and Li, Bioinformatics 2019) and scDesign2 (Sun et al., Genome Biology 2021), with scDesign3 being the latest version. For each simulator, we propose a statistical model to be fitted to real data to describe a multi-variate distribution of cells; then we simulate synthetic cells by sampling from the fitted distribution. For example, for gene expression data, genes are the variables in the multi-variate distribution; for chromatin accessibility data, genomic regions are the variables. The advance of our simulators was based on the improvement of our proposed model. From scDesign to scDesign2, we added the consideration of variable correlations to make the model fit better to real data; as a result, the synthetic data become more realistic. From scDesign2 to the latest scDesign3, the most comprehensive simulator to our knowledge at the time of publication, we enlarged the model to account for comprehensive scenarios, including various cell latent states (discrete cell types or continuous cell trajectories), omics types, spatial locations, and experimental designs (Figure 1 Left).</p><p>An advantage of scDesign3 is that its probabilistic model unifies the generation and inference for single-cell and spatial omics data. The model’s interpretable parameters and likelihood enable scDesign3 to generate customized synthetic data and unsupervisedly assess the goodness-of-fit of cell latent states inferred by a computational method (Figure 1 Right). Hence, scDesign3 is not only a simulator that can generate realistic synthetic data but also a statistical model that can help interpret real experimental data. By inferring the parameters of the scDesign3 model, we can perform hypothesis testing tasks such as identifying the genes whose expression changes between cell types or along a cell trajectory, as well as comparing gene correlations between cell types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2BWGdc66ysRWao2wxTC3ng.png" /></figure><p><strong>How did the reviewers evaluate (praise) it?</strong></p><p>The reviewers acknowledged the timeliness and significance of our work. Their quotes include “Overall, this simulator is timely and invaluable for benchmarking computational methods and interpreting single-cell and spatial omics data.” “The current manuscript scDesign3 proposed a substantial extension from the author’s previous work and addressed some of the key concerns with many current simulation studies; in particular, the capturing of the correlation structure between genes. This manuscript has two key components. The first is the focus on the creation of a generalizable simulation framework and the second component illustrates how the scDesign3 can be applied in three different modelling settings, (i) parameter estimation and inference, (ii) model selection, and (iii) perturbation).”</p><p><strong>If this achievement has potential applications, what are some specific applications it might have in a few years?</strong></p><p>I think realistic synthetic data generation holds promise for critical applications in the single-cell and spatial omics field. First, I have been advocating the inclusion of synthetic negative control data to help users discern spurious discoveries made from a complex analysis pipeline. Such discoveries often arise from artifacts generated by the pipeline due to the “double-dipping” issue, which leads to the confirmatory bias. Second, synthetic data can potentially help alleviate the data imbalance issue, which can negatively affect tasks such as data integration and supervised learning. Third, synthetic data with added perturbations can be used for evaluating the stability of computational results. Given the increasing complexity of data analysis pipelines, involving many user-specified heuristic thresholds across multiple steps, it is essential to ensure the robustness of computational results.</p><p><strong>Can you recount the specific steps or stages from setting the research topic to the successful completion of the research?</strong></p><p>I will answer this question based on the way we generally conduct research. Before setting a research topic, we always think about three aspects: significance and novelty, validation approaches, and target user base. Given the competitive nature and widespread interest in single-cell and spatial omics, a comprehensive literature review is the cornerstone to justify the novelty and significance of the research topic. Equally important is the deliberation on how to validate the efficacy of our proposed method, whether through computational analysis or experimental verification. We must assess the availability of resources for validation and identify potential collaborators if such resources are lacking. Moreover, we must consider the prospective end-users of our method: will our method be useful for biologists who generate single-cell and spatial omics data, or will it only be interesting to method developers like ourselves? Importantly, how can we persuade biologists, who typically rely on visualization and empirical data, of the utility of our method? In general, I think answering these questions is essential to advocate a computational method to the biomedical scientists.</p><p><strong>Were there any memorable events during the research? You can tell a story about anything related to people, events, or objects.</strong></p><p>An interesting story is about the term “real data,” used by statisticians in almost every methodology paper. As the scDesign projects were all about “synthetic data,” a term juxtaposed with “real data,” I initially used the term “real data” when introducing our scDesign work to biologists. Surprisingly, some biologists did not understand the concept of “real data,” asking questions such as “What defines real data?” and “Is there such a thing as fake data?” This confusion stemmed from the presumption that all data were generated from experiments and hence qualify as real. Aligned with this confusion, many biologists cannot appreciate the utility of simulation, considering simulation as purely a decoration of a computational method because simulation always works. I think realizing and recognizing these differences in mindsets (e.g., abstract thinking vs. empirical thinking) is an essential first step in fostering collaborations with biomedical scientists.</p><p><strong>Is there a follow-up plan based on this research? If so, please elaborate.</strong></p><p>We plan to develop an interactive software package for real-data-based synthetic data generation and applications. We will make the package compatible with the state-of-the-art single-cell analysis pipelines Seurat in R and Scanpy in Python. By providing users with the capability to generate customized synthetic data, we hope our software will enable users to benchmark computational methods on their specific datasets, leading to more rigorous and trustworthy discoveries.</p><p><strong>Without a doubt, AI is one of the hot topics of 2023, requiring extensive data support in its development. What assistance can biostatistics offer to the development of AI?</strong></p><p>I view AI as a technology advance, similar to the advent of computers in the previous century. Statistics transitioned from its pre-computer era, where mathematical methods were the sole tools, to the computer era, where statistical analyses leveraged computing power to tackle previously impossible missions. Regardless of the tool — from mathematics to computers — the core of statistics, how to infer hidden truths from observed data, remains a timeless pursuit. Therefore, I am optimistic that the ongoing development of AI will pave the way for unprecedented advancements in statistical methodologies. I envision a synergy between the feature extraction capabilities of AI and the inferential toolkits of statistics, which can together propel data-driven scientific discovery.</p><p><strong>Besides the above questions, is there anything else about this achievement that you would like to add? If so, please add it below.</strong></p><p>I believe statisticians can play a pivotal role in elucidating the impact of proper versus improper use of statistics on scientific discoveries. Demonstrating the impact on concrete examples could significantly enhance the perceived value and influence of statistics within the scientific community.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=834f58a89e64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Statistical Method scDEED Detects Dubious t-SNE and UMAP Embeddings and Optimizes Hyperparameters]]></title>
            <link>https://medium.com/data-science/statistical-method-scdeed-detects-dubious-t-sne-and-umap-embeddings-and-optimizes-hyperparameters-470fb9cb606f?source=rss-75697d40942e------2</link>
            <guid isPermaLink="false">https://medium.com/p/470fb9cb606f</guid>
            <category><![CDATA[thoughts-and-theory]]></category>
            <category><![CDATA[umap]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[embedding]]></category>
            <dc:creator><![CDATA[Jingyi Jessica Li]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 05:36:22 GMT</pubDate>
            <atom:updated>2024-03-07T07:04:27.338Z</atom:updated>
            <content:encoded><![CDATA[<h4>scDEED assigns a reliability score to each 2D embedding to indicate how much the data point’s mid-range neighbors change in the 2D space</h4><p><em>The article was written by Christy Lee, Ph.D. student of Statistics and Data Science at UCLA. Christy is the co-first author of the scDEED Nature Communications article.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ywQjRVOW7UocDd7-" /><figcaption>Photo by <a href="https://unsplash.com/@sonance?utm_source=medium&amp;utm_medium=referral">Viktor Forgacs</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>t-SNE (t-Distributed Stochastic Neighbor Embedding) and UMAP (Uniform Manifold Approximation and Projection) are non-linear dimensionality reduction techniques for visualizing high-dimensional data, particularly in the context of single-cell analysis for visualizing cell clusters. However, it is important to note that t-SNE and UMAP may not always produce trustworthy representations of the relative distances between cell clusters.</p><p>In our <em>Nature Communications</em> paper [1], we provide a framework for (1) identifying data distortions in projection from a high-dimensional to two-dimensional (2D) space and (2) optimizing hyperparameter settings in a 2D dimension-reduction method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tLxLRAzWISSOD2yxts6_g.png" /><figcaption>Xia, L., Lee, C. &amp; Li, J.J. Statistical method scDEED for detecting dubious 2D single-cell embeddings and optimizing t-SNE and UMAP hyperparameters. <em>Nat Commun</em> <strong>15</strong>, 1753 (2024). <a href="https://doi.org/10.1038/s41467-024-45891-y">https://doi.org/10.1038/s41467-024-45891-y</a></figcaption></figure><p>Consider a 3-dimensional (3D) globe vs a 2-dimensional (2D) map. It is impossible to represent an entire globe accurately in only 2D; distance may not be accurate, and the size of some countries may be distorted. Typically, land masses at the edge of the map, like Antarctica, are the most changed. Despite these distortions, 2D maps are useful for everyday use; students or the common traveler to the main continents will not be affected by the distortion in Antarctica, but an intrepid traveler to the poles will certainly require a different map.</p><p>Similarly, the representation of single-cell genomics data often requires moving from a high-dimensional to 2D space, so-called 2D embedding. As with the conversion of the globe, this can induce distortions. The 2D post-embedding space may not accurately represent the pre-embedding space. Adding to the problem, popular 2D embedding methods, like t-SNE and UMAP, are sensitive to hyperparameter selection. While general guidelines exist to tailor hyperparameters like perplexity and n.neighbors to the size of the dataset, these guidelines do not help answer the underlying question– what parts of the visualization are misleading?</p><p>Similar to cartographers selecting which landmasses to recreate faithfully and which to distort, researchers must prioritize which aspects of the pre-embedding space are most important to preserve post-embedding. Common uses of 2D visualization include annotation and analysis of cell trajectories and clusters. Although cell trajectories and clusters are generally calculated in the high-dimensional space, their results are often visualized through 2D embeddings, in which cells with similar gene expression are expected to be close to each other. Therefore, we concluded that the most important aspect of preservation is the position of cells relative to each other.</p><p>These ideas formed the motivation for scDEED, a single-cell dubious embedding detector (Fig. 1). The key idea is that a cell’s pre- and post-embedding neighbors should be similar. It is worth noting that the pre-embedding space is typically 20- to 50-dimensional in single-cell data analysis, usually the principal component space. For each cell, we calculate a <strong>reliability score</strong> that reflects the visual agreement between the neighbors found in the 2D-embedding space and the pre-embedding space. Cells whose 2D embedding neighbors have been drastically changed through the embedding process are called <strong>‘dubious’</strong>; the cell’s relative location is misleading and does not reflect where the cell should be based on the pre-embedding space. Identification of these cells provides a mechanism to optimize hyperparameters by selecting the settings that result in the least amount of dubious cell embeddings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E6cbv9V-lRxExrmu" /><figcaption><strong>Fig. 1. Illustration of the two functionalities of scDEED. </strong>Functionality I decides whether each cell has a <em>trustworthy</em> or <em>dubious</em> embedding by calculating a <em>reliability score</em>, which is defined as the Pearson correlation between the cell’s distances to its closest 50% neighboring cells in the 2D-embedding space and the same cell’s distances to its closest 50% neighboring cells in the pre-embedding space. Enabled by functionality I, functionality II optimizes the hyperparameter setting of an embedding method (e.g. t-SNE and UMAP) by minimizing the number of dubious embeddings. The image was created by the authors.</figcaption></figure><p>In our paper [1], we use a variety of datasets to show how the identification of dubious cells and optimization of hyperparameters can aid analysis. For example, in the original visualization of the single-cell RNA-seq Hydra dataset [2], the neuron ectodermal 1 (neuron ec1) cells are split into two clusters, one that scDEED marked as dubious and the other trustworthy (Fig. 2a). As confirmed by the similarity in gene expression (Fig. 2c) and the singular cell type assigned by the authors, these two clusters are not biologically distinct, making their separation in the t-SNE misleading. Further, if we compare the neuron ec1 cells to its neighboring clusters, like the highlighted ectodermal epithelial cells (ecEP_sc), the gene expression is very different, which is counterintuitive given their proximity in the visualization. However, under the optimized perplexity found by scDEED (Fig. 2b), the neuron ec1 cell type is now unified, further supporting that the original split of the cell type into clusters was a result of hyperparameter settings. Additionally, the neuron ec1 and ecEP_sc cells are now far apart, which is more appropriate given their differences in gene expression. This highlights two uses for scDEED: identification of dubious cells can help discern cells whose embedding positions are misleading, and optimization of hyperparameters can result in a more trustworthy visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2c9ckx-fwgW3g-bO" /><figcaption><strong>Fig. 2. Evaluation of t-SNE embeddings optimized by scDEED on the Hydra dataset. a–b,</strong> Comparative t-SNE plots with the <em>ecEP_sc (ectodermal epithelial_single cell)</em>, <em>trustworthy cell embeddings in neuron ec1</em>, and <em>dubious cell embeddings in neuron ec1 </em>highlighted, at the original perplexity 40 (<strong>a</strong>) and the perplexity 230 optimized by scDEED (<strong>b</strong>). <strong>C, </strong>Gene expression heatmap of the highlighted cells in <strong>a</strong> and <strong>b</strong>, where the cells are ordered by the default hierarchical clustering found by the R function heatmap.2(). The image was created by the authors and is in the article.</figcaption></figure><p>An interesting application is RNA velocity [3], a downstream analysis task that relies on visualization. RNA velocity uses the amount of unspliced and spliced mRNA to estimate gene velocity– the change in gene expression. The estimated gene velocity can be used to calculate predicted gene expression for a future time point, which can be visualized with an arrow from the cell to the cell’s predicted state. For large datasets, it is not reasonable to plot each cell’s velocity vector; rather, cells are grouped based on their 2D embeddings, and their velocity vectors are aggregated. Changes to the 2D embedding will not affect the estimated gene velocities or predicted expression for the individual cells, but it will change the cell grouping for vector field calculations, and therefore affect the visualized RNA velocities and analysis. Using scDEED to optimize the hyperparameter perplexity of t-SNE (Fig. 3a) greatly enhanced the agreement among neighboring cells, and provided clearer RNA velocity results than using the default hyperparameter value (Fig. 3b). Additionally, the vectors are not exaggerated for the mature granules, an expected result because the cells are fully differentiated. Optimization of the hyperparameter enhanced only existing cell trajectories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5ww4S6Tc9AJiWIj7" /><figcaption><strong>Fig. 3. Velocity analysis of the dentate gyrus dataset [4]. a-b </strong>Velocity visualization using the embeddings at the original t-SNE perplexity of 30 (<strong>a</strong>) and the perplexity 450 optimized by scDEED (<strong>b</strong>) with the default Velocyto [3] settings.<strong> </strong>Abbreviations for cell types are as follows: Neuro1: Neuroblast1; Neuro2: Neuroblast 2; nIPC: neuronal intermediate progenitor cells.</figcaption></figure><p>Recent work [5,6] has highlighted geometric qualities, like geodesics, manifolds, and distance, that cannot be fully recreated because the pre- and post-embedding spaces are not homeomorphic. scDEED can help reduce the inconsistencies by finding hyperparameter settings that accurately capture mid-range cell-cell relationships for the most number of possible cells and identifying cells whose mid-range neighbors have drastically changed. We hope that scDEED can be used as an add-on to existing analysis pipelines to provide a more trustworthy 2D visualization. It is worth pointing out that scDEED does not measure the preservation of all aspects of data; as cartographers deemed it most important to preserve the 5 main continents, we chose to prioritize the relative location of cells. With some adjustments to the definition of the reliability score (one per cell embedding), researchers interested in preserving other qualities of the pre-embedding space may still find the framework of scDEED useful.</p><p><strong>References</strong></p><p>1. Xia L, Lee C, Li JJ. Statistical method scDEED for detecting dubious 2D single-cell embeddings and optimizing t-SNE and UMAP hyperparameters. Nat Commun. 2024;15: 1753. doi:10.1038/s41467-024-45891-y</p><p>2. Siebert S, Farrell JA, Cazet JF, Abeykoon Y, Primack AS, Schnitzler CE, et al. Stem cell differentiation trajectories in Hydra resolved at single-cell resolution. Science. 2019;365. doi:10.1126/science.aav9314</p><p>3. La Manno G, Soldatov R, Zeisel A, Braun E, Hochgerner H, Petukhov V, et al. RNA velocity of single cells. Nature. 2018;560: 494–498.</p><p>4. Hochgerner H, Zeisel A, Lönnerberg P, Linnarsson S. Conserved properties of dentate gyrus neurogenesis across postnatal development revealed by single-cell RNA sequencing. Nat Neurosci. 2018;21: 290–299.</p><p>5. Wang S, Sontag ED, Lauffenburger DA. What cannot be seen correctly in 2D visualizations of single-cell ’omics data? Cell Syst. 2023;14: 723–731.</p><p>6. Chari T, Pachter L. The specious art of single-cell genomics. PLoS Comput Biol. 2023;19: e1011288.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=470fb9cb606f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/statistical-method-scdeed-detects-dubious-t-sne-and-umap-embeddings-and-optimizes-hyperparameters-470fb9cb606f">Statistical Method scDEED Detects Dubious t-SNE and UMAP Embeddings and Optimizes Hyperparameters</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PCA outperforms popular hidden variable inference methods for molecular QTL mapping]]></title>
            <link>https://medium.com/@jsb.ucla/pca-outperforms-popular-hidden-variable-inference-methods-for-molecular-qtl-mapping-200c41243288?source=rss-75697d40942e------2</link>
            <guid isPermaLink="false">https://medium.com/p/200c41243288</guid>
            <dc:creator><![CDATA[Jingyi Jessica Li]]></dc:creator>
            <pubDate>Sat, 05 Nov 2022 04:09:39 GMT</pubDate>
            <atom:updated>2022-11-05T04:09:39.693Z</atom:updated>
            <content:encoded><![CDATA[<h4>It is also orders of magnitude faster and much easier to interpret and use</h4><p>Written by Heather Zhou (UCLA).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtnNkvPi-dGpwq9sPqtMoQ.png" /></figure><p>Estimating and accounting for hidden variables is widely practiced as an important step in molecular quantitative trait locus (molecular QTL, henceforth “QTL”) analysis for improving the power of QTL identification [1]. However, few benchmark studies have been performed to evaluate the efficacy of the various methods developed for this purpose.</p><p>In their recent paper published in <em>Genome Biology</em> titled “PCA outperforms popular hidden variable inference methods for molecular QTL mapping” [2], researchers from UCLA, Shenzhen Bay Laboratory, and UCI benchmarked popular hidden variable inference methods including surrogate variable analysis (SVA) [3–4], probabilistic estimation of expression residuals (PEER) [5–6], and hidden covariates with prior (HCP) [7] against principal component analysis (PCA) — a well-established dimension reduction and factor discovery method. They found that PCA not only underlies the statistical methodology behind the popular methods but is also orders of magnitude faster, better performing, and much easier to interpret and use. To help researchers use PCA in their QTL analysis, they provide an R package PCAForQTL along with a detailed guide, both of which are freely available at <a href="https://github.com/heatherjzhou/PCAForQTL.">https://github.com/heatherjzhou/PCAForQTL.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4kMDL_qCwiPrgCK9-idghg.png" /></figure><p>The main ideas in the paper can be summarized as follows:</p><p>1. In simulation studies, PCA outperforms SVA, PEER, and HCP and is one of the fastest.</p><p>2. While PCs are always uncorrelated, PEER factors and HCPs are not. In the three prime untranslated region alternative polyadenylation QTL (3′aQTL) data published by Li et al. [8], the researchers found that PEER factors can be highly correlated with each other to the extent that many or all of them are practically identical, leading to potential loss of power in QTL identification.</p><p>3. In the gene expression QTL (eQTL) and alternative splicing QTL (sQTL) data published by GTEx [1], PEER factors are almost identical to PCs but take at least three orders of magnitude longer to compute.</p><p>4. From a methodological perspective, SVA, PEER, and HCP can all be considered extensions or more complex versions of PCA.</p><p>5. PCA offers convenient ways of choosing <em>K</em>, the number of inferred covariates. In contrast, PEER and HCP do not offer such methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZFMaRzLCWLRIxJ1yCu6wA.jpeg" /><figcaption>Overall comparison of PCA, SVA, PEER, and HCP and summary of their inputs and outputs. The fully processed molecular phenotype matrix is a required input for all four methods and is thus omitted in (b). Image from <a href="https://doi.org/10.1186/s13059-022-02761-4">https://doi.org/10.1186/s13059-022-02761-4</a>.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yn2FVD4BLIRO-72o2Kb1rA.jpeg" /><figcaption>Runtime and performance comparison of Ideal, Unadjusted, and 13 variants of PCA, SVA, PEER, and HCP. Image from <a href="https://doi.org/10.1186/s13059-022-02761-4">https://doi.org/10.1186/s13059-022-02761-4</a>.</figcaption></figure><p>The corresponding author of this paper is Dr. Jingyi Jessica Li from the Department of Statistics at UCLA. The first author is Heather Zhou, Dr. Jingyi Jessica Li’s PhD student.</p><p>Link to the original paper:<a href="https://doi.org/10.1186/s13059-022-02761-4"> https://doi.org/10.1186/s13059-022-02761-4</a></p><p><strong>References:</strong></p><p>[1] GTEx Consortium. The GTEx Consortium atlas of genetic regulatory effects across human tissues. Science, 369(6509):1318–1330, 2020.</p><p>[2] Heather J. Zhou, Lei Li, Yumei Li, Wei Li, and Jingyi Jessica Li. PCA outperforms popular hidden variable inference methods for molecular QTL mapping. Genome Biology, 23(1):210, 2022.</p><p>[3] Jeffrey T. Leek and John D. Storey. Capturing heterogeneity in gene expression studies by surrogate variable analysis. PLoS Genetics, 3(9):e161, 2007.</p><p>[4] Jefferey T. Leek and John D. Storey. A general framework for multiple testing dependence. Proceedings of the National Academy of Sciences, 105(48):18718–18723, 2008.</p><p>[5] Oliver Stegle, Leopold Parts, Richard Durbin, and John Winn. A Bayesian framework to account for complex non-genetic factors in gene expression levels greatly increases power in eQTL studies. PLoS Computational Biology, 6(5):e1000770, 2010.</p><p>[6] Oliver Stegle, Leopold Parts, Matias Piipari, John Winn, and Richard Durbin. Using probabilistic estimation of expression residuals (PEER) to obtain increased power and interpretability of gene expression analyses. Nature Protocols, 7(3):500–507, 2012.</p><p>[7] Sara Mostafavi, Alexis Battle, Xiaowei Zhu, Alexander E. Urban, Douglas Levinson, Stephen B. Montgomery, and Daphne Koller. Normalizing RNA-sequencing data by modeling hidden covariates with prior knowledge. PLoS ONE, 8(7):e68141, 2013.</p><p>[8] Lei Li, Kai-Lieh Huang, Yipeng Gao, Ya Cui, Gao Wang, Nathan D. Elrod, Yumei Li, Yiling Elaine Chen, Ping Ji, Fanglue Peng, William K. Russell, Eric J. Wagner, and Wei Li. An atlas of alternative polyadenylation quantitative trait loci contributing to complex trait and disease heritability. Nature Genetics, 53(7):994–1005, 2021.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=200c41243288" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DESeq2 and edgeR should no longer be the default choices for large-sample differential gene…]]></title>
            <link>https://medium.com/data-science/deseq2-and-edger-should-no-longer-be-the-default-choice-for-large-sample-differential-gene-8fdf008deae9?source=rss-75697d40942e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fdf008deae9</guid>
            <category><![CDATA[non-parametric-test]]></category>
            <category><![CDATA[rna-seq]]></category>
            <category><![CDATA[differential-expression]]></category>
            <dc:creator><![CDATA[Jingyi Jessica Li]]></dc:creator>
            <pubDate>Fri, 25 Mar 2022 17:35:51 GMT</pubDate>
            <atom:updated>2022-03-26T19:34:13.864Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>DESeq2 and edgeR should no longer be the default choices for large-sample differential gene expression analysis</strong></h3><h4>Complexities should not be added unless necessary.</h4><p>Assumptions may not be needed for large-sample data.</p><p><strong>Author: </strong>fei.zhao (思考问题的熊)</p><p><strong>Original post: </strong><a href="https://kaopubear.top/blog/2022-03-20-donot-use-deseq2-edger-in-human-population-samples">https://kaopubear.top/blog/2022-03-20-donot-use-deseq2-edger-in-human-population-samples</a></p><p><strong>Translated by</strong> Xinzhou Ge and Jingyi Jessica Li (UCLA) with the author’s permission</p><p>For our shorter introduction to our <em>Genome Biology</em> article, please see <a href="https://towardsdatascience.com/a-large-sample-crisis-or-not-640224020757">https://towardsdatascience.com/a-large-sample-crisis-or-not-640224020757</a></p><p>During my Ph.D. years, I enjoyed evaluating and comparing various bioinformatics software packages when I was not busy. Sometimes I would apply two or three differential analysis methods to transcriptome samples. When I wanted to be rigorous, I would take the intersection of these methods’ identified differentially expressed genes (DEGs); when I wanted to be “savvy,” I would pick the method whose results seemed to be the “best” (presumably you did the same).</p><p>In the year 2021, after I switched my research field from plants to cancer, when I analyzed large-sample datasets such as the TCGA data, I often directly used the Wilcoxon rank-sum test to compare tumor samples with normal samples to find DEGs. The reason was nothing but this classic test’s indefectible computational efficiency. Of course, for most of the time, I would use both the Wilcoxon rank-sum test and DESeq2, the advantage of which was that I could keep DESeq2 running for large-sample data and leave my seat for some rest.</p><p>In the year 2022, a few days ago, a paper published in <em>Genome Biology</em> used relatively rigorous arguments to suggest that the simple Wilcoxon rank-sum test should replace DESeq2 and edgeR in large-sample RNA-seq differential expression analyses, even when computational time is not a concern.</p><p>Here is the paper link (<a href="https://doi.org/10.1186/s13059-022-02648-4">https://doi.org/10.1186/s13059-022-02648-4</a>). You may read the original paper directly or continue reading my article.</p><blockquote><em>Li, Yumei, Xinzhou Ge, Fanglue Peng, Wei Li, and Jingyi Jessica Li. “Exaggerated False Positives by Popular Differential Expression Methods When Analyzing Human Population Samples.” </em>Genome Biology<em> 23, no. 1 (March 15, 2022): 79.</em></blockquote><p><strong>How many replicates are needed for RNA-seq experiments?</strong></p><p>Since the advent of RNA-seq, the most basic but critical application has been the identification of DEGs by comparing two groups (and sometimes multiple groups): tumor and normal tissue samples, cell lines under different treatment conditions, etc.</p><p>In practice, we usually measure only 3 replicates of high-throughput transcriptome data, and the “replicates” here refer to biological replicates rather than technical replicates. Sometimes 2 replicates would do, or even 1 replicate can be handled by some software.</p><p>Why 3 replicates? The reason is that “the third time is the charm,” and that material and budget are limited. Years ago, several research papers discussed how many replicates would be sufficient; however, they did not reach a consensus: some said at least 6 replicates, some said 4 replicates would be sufficient, and some said that finding all DEGs would require at least 12 replicates (see screenshot below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*WzJCySHWAeqPa4zZScUxsg.png" /><figcaption>Screenshot from <a href="https://rnajournal.cshlp.org/content/22/6/839.short">https://rnajournal.cshlp.org/content/22/6/839.short</a></figcaption></figure><p>In 2016, a <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-016-0881-8">highly cited review paper</a> about RNA-seq analysis, which was also published in <em>Genome Biology</em>, gave the following table with sample size recommendations. In short, at least 3 replicates are needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*1IpvFLaCk7-2C92WyuUG9Q.png" /><figcaption>Screenshot from <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-016-0881-8">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-016-0881-8</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*btiX-67IVWVETRRFuwOXPg.png" /><figcaption>Screenshot from <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-016-0881-8">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-016-0881-8</a></figcaption></figure><p>In fact, most of the previous analyses on the number of replicates were conducted based on popular software such as DEseq2 and edgeR. Now it is interesting to see that DESeq2 and edgeR are not recommended for large-sample analysis.</p><p><strong>DEseq2 and edgeR are not suitable for large samples</strong></p><p>From the above discussion on sample size, we can see that the biggest challenge of transcriptome differential analysis has always been the small sample size: are three replicates the charm?</p><p>Facing this small-sample problem, statistical methods and software were developed based on various parametric distributional assumptions about RNA-seq data. The two most popular methods are DEseq2 and edgeR, whose core assumption is that every gene’s sequence read counts follow the <strong>negative binomial distribution</strong> under one condition. Based on this assumption, they normalize the raw read counts according to their own set of logic. Another method DEGseq assumes the Poisson distribution instead of the negative binomial distribution, and it may be used when there is only one replicate per condition.</p><p>Moreover, software such as DEseq2 and edgeR inherently assume that samples under the two conditions are largely the same: most genes are not differentially expressed. This brings up the first question: in population-level RNA-seq studies where the sample sizes are from tens to thousands, can we still believe that most genes are not differentially expressed?</p><p>To evaluate the ability of DESeq2 and edgeR to identify DEGs, Li <em>et al.</em> (the authors of this new <em>Genome Biology</em> paper) tested DESeq2 and edgeR on 13 population-level RNA-seq datasets with total sample sizes ranging from 100 to 1376. The analysis revealed that DESeq2 and edgeR identified vastly different DEGs on these datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*tyqENwX4yDTk9_DgRvWbVw.png" /><figcaption>Supplementary Figure from <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4</a></figcaption></figure><p>From the results in the above figure, it can be seen that on the immunotherapy dataset only 8% of the DEGs identified by DESeq2 or edgeR were consistent (identified by both methods). On the other population-level RNA-seq datasets, DESeq2 identified a lot more DEGs than edgeR did.</p><p>When things go wrong, there must be demons. To see what the problem is, we need to conduct an in-depth investigation from the perspective of false discovery rate (FDR) control. Large samples have an inherent advantage for FDR evaluation: they can be permuted to generate negative-control samples, on which FDR can be estimated.</p><p>Hence, Li <em>et al.</em> permuted the two groups of samples, so that each new group contained samples from the two original groups. By repeating the random permutation 1000 times, Li <em>et al.</em> generated 1000 permuted datasets from the original dataset.</p><p>The results are thrilling.</p><p>First, DESeq2 and edgeR had 84.88% and 78.89% probabilities, respectively, to identify more DEGs from the permuted datasets than from the original dataset.</p><p>Second, of the 144 and 319 DEGs identified by DESeq2 and edgeR respectively from the original dataset, 22 (15.3%) and 194 (60.8%) were identified from at least 50% of the permuted datasets and thus spurious. That is, DESeq2 and edgeR had too many false positives.</p><p>Most importantly, Li <em>et al.</em> found that the genes with larger fold changes were more likely identified by DESeq2 and edgeR from the permuted datasets. In practice, we all tend to think that the genes with larger fold changes are more likely important, but the truth is that these genes are not necessarily differentially expressed.</p><p>One more thing here. If you are curious about what biological functions are enriched in those false-positive DEGs? Hmm… immune-related.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*EO_d6ev8i7Tnt4hTXMxUZw.png" /><figcaption>Figure 1 from <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4</a></figcaption></figure><p><strong>Why are DEseq2 and edgeR not working?</strong></p><p>Why did DESeq2 and edgeR find so many false-positive DEGs from this immunotherapy dataset? The most immediate guess is that gene counts in this dataset no longer fit the negative binomial distribution assumed by DESeq2 and edgeR.</p><p>To test this hypothesis, Li <em>et al.</em> chose two sets of genes. One set contained the genes identified as DEGs from ≥20% permuted datasets; the other set consisted of genes identified as DEGs from ≤0.1% permuted datasets. Evaluating the goodness-of-fit of the negative binomial model to each set of genes, Li <em>et al.</em> revealed that the model fit was indeed worse for the first set of genes, consistent with the fact that these genes were false positives.</p><p>Further, why did the negative binomial model fit poorly? The authors examined all genes that were misidentified as DEGs in at least 10% of the permuted datasets. All these genes had outlier measurements relative to the negative binomial models fitted by DESeq2 or edgeR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*HGpTUsq1FIp8NSXN9c1juA.png" /><figcaption>Supplementary Figure from <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4</a></figcaption></figure><p>In parametric testing methods like edgeR and DESeq2, the null hypothesis is that a gene has the same mean expression under two conditions. Therefore, their analysis results would be seriously affected by the presence of outliers. In contrast, the Wilcoxon rank-sum test performs better in the presence of outliers because its null hypothesis is that a gene under one condition has an equal probability to have higher or lower expression than under another condition. That is, the Wilcoxon rank-sum test concerns more about the gene expression ranks than the actual gene expression levels.</p><p>Beyond DESeq2 and edgeR, on the immunotherapy dataset, Li <em>et al.</em> also compared several other representative methods, among which limma-voom is a parametric test like DESeq2 and edgeR; NOISeq and dearseq (a recently published method designed for large samples) are nonparametric tests like the Wilcoxon rank-sum test.</p><p>In terms of what methods found fewer false-positive DEGs, DESeq2 and edgeR clearly lost the competition, and the other methods performed well on this immunotherapy dataset. What if we compare these methods in terms of their power for finding true DEGs?</p><p>Li <em>et al.</em> generated 50 semi-synthetic datasets (with known true DEGs and non-DEGs) from each of the 12 GTEx and TCGA datasets. As shown in the figure below, only the Wilcoxon rank-sum test could consistently control the FDR in the FDR threshold range from 0.001% to 5%. Furthermore, in terms of power at the actual FDR, the Wilcoxon rank-sum test outperformed the other five methods. In the figure below, the blue line shows the Wilcoxon rank-sum test, and the yellow and purple dashed lines correspond to DEseq2 and edgeR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*FR-A-CRlF04QaiLuZ3yjfw.png" /><figcaption>Figure 2A from <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4</a></figcaption></figure><p><strong>When to use the Wilcoxon rank-sum test?</strong></p><p>Since the Wilcoxon rank-sum test is suitable for DEG analysis of large samples, the key question is what sample size can be considered large?</p><p>To investigate how sample size affects the performance of the six DEG identification methods, Li <em>et al.</em> down-sampled each dataset to obtain datasets with sample sizes ranging from 2 to 100 per condition.</p><p>From the figure below, at the 1% FDR threshold, we should not use the Wilcoxon rank-sum test when the sample size per condition is less than 8. Meanwhile, when the sample size for each condition exceeded 8, the Wilcoxon rank-sum test achieved comparable or better power performance compared to the three parametric testing methods (DESeq2, edgeR, and limma-voom) and the other two nonparametric testing methods.</p><p>Considering that the proportion of DEGs among all genes might have an impact on the results, Li <em>et al.</em> also generated datasets with 5 DEG proportions (1%, 3%, 5%, 9%, and 20%), and the evaluation results showed that the Wilcoxon rank-sum test remained to have good FDR control and power.</p><p>Therefore, from Li <em>et al.</em>’s analysis results, <strong>when the sample size of each condition is greater than 8, do not hesitate to use the Wilcoxon rank-sum test.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*oW6_nYKRCJqg4HNAY8D55A.png" /><figcaption>Figure 2B from <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4</a></figcaption></figure><p><strong>How to use the Wilcoxon rank-sum test?</strong></p><p>Everyone knows that the three parametric testing methods — DESeq2, edgeR, and limma — have long dominated transcriptome research. Essentially all large-scale studies have used them to find DEGs. However, all three methods were originally designed to solve the small-sample-size problem.</p><p>In population-level studies with larger sample sizes (at least a few dozens), parametric assumptions are often no longer necessary. At the same time, the larger the sample size, the more likely the presence of outliers, which would violate the parametric assumptions and invalidate the p-value calculation, making FDR control problematic.</p><p>The last question is how to use the Wilcoxon rank-sum test reasonably for differential expression analysis.</p><p>Unlike DESeq2, edgeR, and limma, the Wilcoxon rank-sum test is not a regression-based method and thus cannot adjust for possible confounding factors (such as differences in sequencing depths). Hence, before using the Wilcoxon rank-sum test, researchers are recommended to normalize RNA-seq samples to remove possible batch effects.</p><p>Regarding the data scale, I personally do not think it is a big problem whether we use the Relative Log Expression of DESeq2, the Trimmed Mean of M-values of edgeR, or the TPM. (If you are savvy, you will definitely be willing to try them all.)</p><p>Finally, Li <em>et al.</em> provided an <a href="https://rpubs.com/LiYumei/806213">R code example</a> that used edgeR TMM + wilcox.test() for DEG analysis.</p><pre># read data</pre><pre>readCount &lt;- read.table(file = &quot;examples/examples.countMatrix.tsv&quot;, header = T, row.names = 1, stringsAsFactors = F, check.names = F)</pre><pre>conditions &lt;- read.table(file = &quot;examples/examples.conditions.tsv&quot;, header = F)</pre><pre>conditions &lt;- factor(t(conditions))</pre><pre># edgeR TMM normalize</pre><pre>y &lt;- DGEList(counts = readCount, group = conditions)</pre><pre>## Remove rows conssitently have zero or very low counts</pre><pre>keep &lt;- filterByExpr(y)</pre><pre>y &lt;- y[keep, keep.lib.sizes = FALSE]</pre><pre>## Perform TMM normalization and convert to CPM (Counts Per Million)</pre><pre>y &lt;- calcNormFactors(y, method = &quot;TMM&quot;)</pre><pre>count_norm &lt;- cpm(y)</pre><pre>count_norm &lt;- as.data.frame(count_norm)</pre><pre># Run the Wilcoxon rank-sum test for each gene</pre><pre>pvalues &lt;- sapply(1:nrow(count_norm), function(i){</pre><pre>data &lt;- cbind.data.frame(gene = as.numeric(t(count_norm[i,])), conditions)</pre><pre>p &lt;- wilcox.test(gene~conditions, data)$p.value</pre><pre>return(p)</pre><pre>})</pre><pre>fdr &lt;- p.adjust(pvalues, method = &quot;fdr&quot;)</pre><pre># Calculate the fold-change for each gene</pre><pre>conditionsLevel &lt;- levels(conditions)</pre><pre>dataCon1 &lt;- count_norm[,c(which(conditions==conditionsLevel[1]))]</pre><pre>dataCon2 &lt;- count_norm[,c(which(conditions==conditionsLevel[2]))]</pre><pre>foldChanges &lt;- log2(rowMeans(dataCon2)/rowMeans(dataCon1))</pre><pre># Output results based on the FDR threshold 0.05</pre><pre>outRst &lt;- data.frame(log2foldChange = foldChanges, pValues = pvalues, FDR = fdr)</pre><pre>rownames(outRst) &lt;- rownames(count_norm)</pre><pre>outRst &lt;- na.omit(outRst)</pre><pre>fdrThres &lt;- 0.05</pre><pre>write.table(outRst[outRst$FDR&lt;fdrThres,], file = &quot;examples/examples.WilcoxonTest.rst.tsv&quot;, sep=&quot;\t&quot;, quote = F, row.names = T, col.names = T)</pre><p><strong>Last words</strong></p><p>After all, I feel that there is no need to have too much self-doubt about the analyses we have done before. But in the future, when doing differential analysis with more than 8 samples in each group, let’s not forget to also try the Wilcoxon rank-sum test. If someone asks why you don’t use the DESseq2 and edgeR specifically designed for differential analysis, just show this paper and, of course, this picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*OvOsKVTI6-GX5WTOh8nTMA.png" /><figcaption>Image from <a href="https://kaopubear.top/blog/2022-03-20-donot-use-deseq2-edger-in-human-population-samples">https://kaopubear.top/blog/2022-03-20-donot-use-deseq2-edger-in-human-population-samples</a>; modified by fei.zhao from the meme at <a href="https://knowyourmeme.com/memes/distracted-boyfriend">https://knowyourmeme.com/memes/distracted-boyfriend</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fdf008deae9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/deseq2-and-edger-should-no-longer-be-the-default-choice-for-large-sample-differential-gene-8fdf008deae9">DESeq2 and edgeR should no longer be the default choices for large-sample differential gene…</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A large-sample crisis or not?]]></title>
            <link>https://medium.com/data-science/a-large-sample-crisis-or-not-640224020757?source=rss-75697d40942e------2</link>
            <guid isPermaLink="false">https://medium.com/p/640224020757</guid>
            <category><![CDATA[fdr]]></category>
            <category><![CDATA[differential-expression]]></category>
            <category><![CDATA[non-parametric]]></category>
            <category><![CDATA[permutations]]></category>
            <category><![CDATA[rna-seq]]></category>
            <dc:creator><![CDATA[Jingyi Jessica Li]]></dc:creator>
            <pubDate>Wed, 16 Mar 2022 01:49:40 GMT</pubDate>
            <atom:updated>2022-03-25T19:19:08.076Z</atom:updated>
            <content:encoded><![CDATA[<h3>A large-sample crisis or not? Exaggerated false positives by popular differential expression methods on human population RNA-seq samples</h3><h4><strong>Sanity check by permutation should be done for large samples</strong></h4><p>Written by Dr. Yumei Li (UC Irvine) and Jingyi Jessica Li (UCLA)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HfI1xMyZAFt7FrKu1gBGQ.jpeg" /><figcaption>Image from <a href="https://unsplash.com/photos/I23WeOTsA8M">https://unsplash.com/photos/I23WeOTsA8M</a></figcaption></figure><p>In biological studies, identifying biological features that are significantly different under different experimental conditions or disease states is important to understand the biological mechanisms behind phenotypes. Among these features, gene expression is the most commonly studied one. And the development of RNA-seq technology has made it easier and faster to identify differentially expressed genes (DEGs) at the genome-wide level. However, the generally small sample size of RNA-seq data (usually only 2–4 biological replicates per condition) makes it difficult to identify DEGs accurately. Previous researchers have developed statistical methods based on parametric distributional assumptions and the empirical Bayes approach to improve statistical power in small samples, such as the two popular methods, DESeq2 [1] and edgeR [2]. As the cost of sequencing has declined, the sample size of RNA-seq data has gradually increased, reaching hundreds or even thousands in some population-level studies. This raises a natural question of whether methods like DESeq2 and edgeR designed for small-sample-size data are still applicable to population-level RNA-seq datasets.</p><p>To answer this question, recently, researchers from UCLA and UCI published a paper entitled “Exaggerated false positives by popular differential expression methods when analyzing human population samples” in <em>Genome Biology</em>. Through permutation analysis, the researchers found that DESeq2 and edgeR have extremely high false discovery rates (FDRs), far exceeding the target FDR threshold. By further evaluating multiple DEG analysis methods — including another popular method limma-voom, the nonparametric method NOISeq adopted by the GTEx consortium, the recent nonparametric method dearseq, and the classic nonparametric Wilcoxon rank-sum test (also known as the Mann-Whitney test) — they found that only the Wilcoxon rank-sum test could control the FDR and achieve good power. Therefore, for population-level RNA-seq studies, the researchers recommend the Wilcoxon rank-sum test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*LPtMXjP1nn3COxjmlMOJqg.png" /><figcaption>Image from <a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4</a></figcaption></figure><p>In this study, the researchers first generated negative-control datasets by randomly permuting the two-condition labels of all samples and found DESeq2 and edgeR have unexpectedly high FDRs. Surprisingly, when analyzing the RNA-seq dataset from an immunotherapy study [3], they found that DESeq2 and edgeR even identified more DEGs from the permuted data than the original data. In particular, some genes were mistakenly identified as DEGs in multiple permuted datasets and were enriched in immune-related biological pathways, which could easily mislead researchers. Further, the researchers benchmarked DESeq2 and edgeR along with four other DEG identification methods on more datasets (GTEx [4] and TCGA [5]) through semi-synthetic data analysis. The results showed the classic nonparametric Wilcoxon rank-sum test consistently controlled the FDR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*8hHiNH86fIgIiLBVvJchQg.png" /><figcaption><strong>Results of permutation analysis based on RNA-seq data from an immunotherapy study. </strong>Image from<strong> </strong><a href="https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4">https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02648-4</a></figcaption></figure><p>Through a more in-depth analysis, the authors found that one reason why methods based on parametric distributional assumptions (e.g., DESeq2 and edgeR) cannot control the FDR is the violation of the parametric distributions assumed by these methods. When the sample size is large enough, parametric assumptions are no longer necessary. That is why the nonparametric Wilcoxon rank-sum test performed best in the evaluation. Therefore, the researchers conclude that for population-level studies with large sample sizes, classic nonparametric statistical methods should be considered as the baseline for data analysis and new method benchmarking.</p><p>Professor Jingyi Jessica Li from the Department of Statistics of UCLA and professor Wei Li from the Department of Biological Chemistry of UCI are the corresponding authors of this paper. This work was mainly done by Dr. Yumei Li (postdoc from Wei Li’s lab) and Dr. Xinzhou Ge (postdoc from Jingyi Jessica Li’s lab).</p><p>Link to the original paper: <a href="https://doi.org/10.1186/s13059-022-02648-4">https://doi.org/10.1186/s13059-022-02648-4</a></p><p>For small-sample-size data, if users would like valid FDR control but find it difficult to obtain high-resolution p-values, Jingyi Jessica Li’s lab developed the statistical method <strong>Clipper </strong>[6], for which Dr. Xinzhou Ge was also a leading author: <a href="https://www.physicalsciences.ucla.edu/new-statistical-framework-to-increase-the-reliability-of-data-driven-biomedical-research-on-biomolecules/">https://www.physicalsciences.ucla.edu/new-statistical-framework-to-increase-the-reliability-of-data-driven-biomedical-research-on-biomolecules/</a></p><p><strong>References</strong></p><p>1. Love MI, Huber W, Anders S: <strong>Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2.</strong> <em>Genome Biol </em>2014, <strong>15:</strong>550.</p><p>2. Robinson MD, McCarthy DJ, Smyth GK: <strong>edgeR: a Bioconductor package for differential expression analysis of digital gene expression data.</strong> <em>Bioinformatics </em>2010, <strong>26:</strong>139–140.</p><p>3. Riaz N, Havel JJ, Makarov V, Desrichard A, Urba WJ, Sims JS, Hodi FS, Martin-Algarra S, Mandal R, Sharfman WH, et al: <strong>Tumor and Microenvironment Evolution during Immunotherapy with Nivolumab.</strong> <em>Cell </em>2017, <strong>171:</strong>934–949 e916.</p><p>4. Consortium GT: <strong>The GTEx Consortium atlas of genetic regulatory effects across human tissues.</strong> <em>Science </em>2020, <strong>369:</strong>1318–1330.</p><p>5. Cancer Genome Atlas Research N, Weinstein JN, Collisson EA, Mills GB, Shaw KR, Ozenberger BA, Ellrott K, Shmulevich I, Sander C, Stuart JM: <strong>The Cancer Genome Atlas Pan-Cancer analysis project.</strong> <em>Nat Genet </em>2013, <strong>45:</strong>1113–1120.</p><p>6. Ge X, Chen YE, Song D, McDermott M, Woyshner K, Manousopoulou A, Wang N, Li W, Wang LD, Li JJ: <strong>Clipper: p-value-free FDR control on high-throughput data from two conditions.</strong> <em>Genome Biol </em>2021, <strong>22:</strong>288.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=640224020757" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/a-large-sample-crisis-or-not-640224020757">A large-sample crisis or not?</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>