<?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 Katriona Goldmann on Medium]]></title>
        <description><![CDATA[Stories by Katriona Goldmann on Medium]]></description>
        <link>https://medium.com/@katrionagoldmann?source=rss-c94b1e99ee26------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DG9zoOfwmCacAfNWDnnYSQ.jpeg</url>
            <title>Stories by Katriona Goldmann on Medium</title>
            <link>https://medium.com/@katrionagoldmann?source=rss-c94b1e99ee26------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:57:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@katrionagoldmann/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[Interactive differential expression analysis with volcano3D]]></title>
            <link>https://medium.com/data-science/interactive-differential-expression-analysis-with-volcano3d-cf6c37b5aa6a?source=rss-c94b1e99ee26------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf6c37b5aa6a</guid>
            <category><![CDATA[plotly]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[bioinformatics]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[r]]></category>
            <dc:creator><![CDATA[Katriona Goldmann]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 10:17:20 GMT</pubDate>
            <atom:updated>2020-07-12T15:18:38.965Z</atom:updated>
            <content:encoded><![CDATA[<p>I am pleased to present volcano3D, an R package which is now available on <a href="https://cran.r-project.org/web/packages/volcano3D/index.html">CRAN</a>! The volcano3D package enables exploration of probes differentially expressed between three groups. Its main purpose is for the visualisation of differentially expressed genes in a three-dimensional volcano plot. These plots can be converted to interactive visualisations using <a href="https://plotly.com/r/">plotly</a>:</p><figure><img alt="Gif showing interactive volcano3D plot" src="https://cdn-images-1.medium.com/max/600/1*_MPlw6IQi_DNQGsqwkBEUQ.gif" /></figure><p>Here I will explore a case study from the PEAC rheumatoid arthritis trial (Pathobiology of Early Arthritis Cohort). The methodology has been published in <a href="https://doi.org/10.1016/j.celrep.2019.07.091">Lewis, Myles J., et al. <em>Molecular portraits of early rheumatoid arthritis identify clinical and treatment response phenotypes</em>. Cell reports 28.9 (2019): 2455–2470. (DOI: 10.1016/j.celrep.2019.07.091)</a> with an accompanying interactive website available at <a href="https://peac.hpc.qmul.ac.uk/">https://peac.hpc.qmul.ac.uk</a>:</p><figure><img alt="PEAC RNAseq Shiny website" src="https://cdn-images-1.medium.com/max/1024/1*sactB_p4uH829p52tPAVUw.png" /><figcaption>PEAC RNAseq website hosted using R Shiny and featuring volcano3D plots</figcaption></figure><p>This tool acts as a searchable interface to examine relationships between individual synovial and blood gene transcript levels and histological, clinical, and radiographic parameters, and clinical response at 6 months. An interactive interface allows the gene module analysis to be explored for relationships between modules and clinical parameters. The PEAC interactive web tool was creating as an <a href="https://shiny.rstudio.com/">R Shiny app</a> and deployed to the web using a server.</p><h3>Getting Started</h3><h4>Prerequisites</h4><ul><li><a href="https://www.r-project.org/">R (&gt;= 3.5)</a></li><li><a href="https://cran.r-project.org/web/packages/ggplot2/index.html">ggplot2</a></li><li><a href="https://cran.r-project.org/web/packages/ggpubr/index.html">ggpubr</a></li><li><a href="https://cran.r-project.org/web/packages/ggrepel/index.html">ggrepel</a></li><li><a href="https://cran.r-project.org/web/packages/plotly/index.html">plotly</a></li></ul><h4>Install from CRAN</h4><pre>install.packages(&quot;volcano3D&quot;)<br>library(volcano3D)</pre><h4>Install from Github</h4><pre>library(devtools)<br>install_github(&quot;KatrionaGoldmann/volcano3D&quot;)<br>library(volcano3D)</pre><h3>volcano3D data</h3><p>The sample data can then also be installed either from <a href="https://github.com/KatrionaGoldmann/volcano3Ddata">source</a> or using:</p><pre>install_github(&quot;KatrionaGoldmann/volcano3Ddata&quot;)<br><a href="https://rdrr.io/r/base/library.html">library</a>(volcano3Ddata)<br><a href="https://rdrr.io/r/utils/data.html">data</a>(&quot;syn_data&quot;)</pre><p>Samples in this cohort fall into three pathotype groups:</p><pre><a href="https://rdrr.io/r/base/table.html">table</a>(syn_metadata$Pathotype)</pre><pre>╔═══════════╦═══════╗<br>║ Pathotype ║ Count ║ <br>╠═══════════╬═══════╣<br>║ Fibroid   ║ 16    ║<br>║ Lymphoid  ║ 45    ║<br>║ Myeloid   ║ 20    ║<br>╚═══════════╩═══════╝</pre><p>In this example we are interested in genes that are differentially expressed between each of these groups.</p><p>First we will map the expression data to cartesian coordinates, using the polar_coords function. This calculates <em>x</em> and <em>y</em> from the mean scaled z-score, Z, for each group:</p><figure><img alt="Equation to convert expression data to x and y" src="https://cdn-images-1.medium.com/max/272/1*NLJmavehAAthO0qFehGxKQ.png" /></figure><p>and then converts to polar coordinates by:</p><figure><img alt="conversion from cartesian coordinates to polar coordinates" src="https://cdn-images-1.medium.com/max/188/1*APgHIyPAPDn39g9DwEBrgQ.png" /></figure><p>This function uses inputs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ecLEEMUFXqNqkG5XaPtZA.png" /></figure><p>For more information on how to create these p-value data frames see the <a href="https://katrionagoldmann.github.io/volcano3D/articles/pvalues_generator.html">pvalue generator vignette</a>. The polar_coords function is implemented by:</p><pre>syn_polar &lt;- <a href="https://katrionagoldmann.github.io/volcano3D/reference/polar_coords.html">polar_coords</a>(sampledata = syn_metadata,<br>                          contrast = &quot;Pathotype&quot;,<br>                          pvalues = syn_pvalues,<br>                          expression = syn_rld,<br>                          p_col_suffix = &quot;pvalue&quot;,<br>                          padj_col_suffix = &quot;padj&quot;,<br>                          fc_col_suffix = &quot;log2FoldChange&quot;,<br>                          multi_group_prefix = &quot;LRT&quot;,<br>                          non_sig_name = &quot;Not Significant&quot;,<br>                          significance_cutoff = 0.01,<br>                          label_column = NULL,<br>                          fc_cutoff = 0.1)</pre><p>and outputs an S4 polar class object with slots for: sampledata, contrast, pvalues, multi_group_test, expression, polar and non_sig_name. The pvalues slot which should have a data frame with at least two statistics for each comparison — p-value and adjusted p-value — and an optional logarithmic fold change statistic.</p><p>If there is a fold change column previously provided, we can now investigate the comparisons between pathotypes using the volcano_trio function. This creates three <a href="https://ggplot2.tidyverse.org/reference/ggplot.html">ggplot</a> outputs:</p><pre>syn_plots &lt;- <br>     <a href="https://katrionagoldmann.github.io/volcano3D/reference/volcano_trio.html">volcano_trio</a>(<br>                  polar = syn_polar,<br>                  sig_names = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;not significant&quot;,&quot;significant&quot;,<br>                                &quot;not significant&quot;,&quot;significant&quot;),<br>                  colours = <a href="https://rdrr.io/r/base/rep.html">rep</a>(<a href="https://rdrr.io/r/base/c.html">c</a>(&quot;grey60&quot;,  &quot;slateblue1&quot;), 2),<br>                  text_size = 9,<br>                  marker_size=1,<br>                  shared_legend_size = 0.9,<br>                  label_rows = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;SLAMF6&quot;, &quot;PARP16&quot;, &quot;ITM2C&quot;),<br>                  fc_line = FALSE,<br>                  share_axes = FALSE)</pre><pre><br>syn_plots$All</pre><figure><img alt="volcano plots for each comparison" src="https://cdn-images-1.medium.com/max/1024/0*wY06k5ffLwjvEtKx.png" /><figcaption>volcano plots showing differential expression for each comparison</figcaption></figure><h3>Radial Plots</h3><p>The differential expression can now be visualised on an interactive radar plot using radial_plotly. The labelRows variable allows any markers of interest to be labelled.</p><pre><a href="https://katrionagoldmann.github.io/volcano3D/reference/radial_plotly.html">radial_plotly</a>(polar = syn_polar,<br>              label_rows = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;SLAMF6&quot;, &quot;PARP16&quot;, &quot;ITM2C&quot;))</pre><figure><img alt="Gif of interactive radial plot showing the differential expression of probes between all three groups." src="https://cdn-images-1.medium.com/max/600/1*Pb8XrBioznPrOYcoCVkdcA.gif" /><figcaption>Interactive radial plot showing the differential expression of probes between all three groups.</figcaption></figure><p>By hovering over certain points you can also determine genes for future interrogation.</p><p>Similarly we can create a static ggplot image using radial_ggplot:</p><pre><a href="https://katrionagoldmann.github.io/volcano3D/reference/radial_ggplot.html">radial_ggplot</a>(polar = syn_polar,<br>              label_rows = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;SLAMF6&quot;, &quot;FMOD&quot;),<br>              marker_size = 2.3,<br>              legend_size = 10) +<br>  theme(legend.position = &quot;right&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ewpDVYeEgakAVz_A.png" /><figcaption>Using ggplot2 for a static radial plot</figcaption></figure><h3>Boxplots</h3><p>We can then interrogate any one specific variable as a boxplot, to investigate these differences. This is built using either ggplot2 or plotly so can easily be edited by the user to add features.</p><pre>plot1 &lt;- <a href="https://katrionagoldmann.github.io/volcano3D/reference/boxplot_trio.html">boxplot_trio</a>(syn_polar,<br>                      value = &quot;FAM92B&quot;,<br>                      text_size = 7,<br>                      test = &quot;polar_padj&quot;,<br>                      levels_order = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;Lymphoid&quot;, &quot;Myeloid&quot;, &quot;Fibroid&quot;),<br>                      box_colours = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;blue&quot;, &quot;red&quot;, &quot;green3&quot;),<br>                      step_increase = 0.1)<br><br>plot2 &lt;- <a href="https://katrionagoldmann.github.io/volcano3D/reference/boxplot_trio.html">boxplot_trio</a>(syn_polar,<br>                      value = &quot;SLAMF6&quot;,<br>                      text_size = 7,<br>                      test = &quot;polar_multi_padj&quot;,<br>                      levels_order = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;Lymphoid&quot;, &quot;Myeloid&quot;, &quot;Fibroid&quot;),<br>                      box_colours = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;blue&quot;, &quot;red&quot;, &quot;green3&quot;))<br><br>plot3 &lt;- <a href="https://katrionagoldmann.github.io/volcano3D/reference/boxplot_trio.html">boxplot_trio</a>(syn_polar,<br>                      value = &quot;PARP16&quot;,<br>                      text_size = 7,<br>                      stat_size=2.5,<br>                      test = &quot;t.test&quot;,<br>                      levels_order = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;Myeloid&quot;, &quot;Fibroid&quot;),<br>                      box_colours = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;pink&quot;, &quot;gold&quot;))<br><br>ggarrange(plot1, plot2, plot3, ncol=3)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kgFfypJk1NMRiw_E.png" /><figcaption>Boxplots showing the differential expression for a specific probe or gene</figcaption></figure><h3>Three Dimensional Volcano Plots</h3><p>The final thing we can look at is the 3D volcano plot which projects differential gene expression onto cylindrical coordinates.</p><pre>p &lt;- <a href="https://katrionagoldmann.github.io/volcano3D/reference/volcano3D.html">volcano3D</a>(syn_polar,<br>               label_rows = <a href="https://rdrr.io/r/base/c.html">c</a>(&quot;SLAMF6&quot;, &quot;PARP16&quot;, &quot;ITM2C&quot;),<br>               label_size = 10,<br>               colour_code_labels = F,<br>               label_colour = &quot;black&quot;,<br>               xy_aspectratio = 1,<br>               z_aspectratio = 0.9,<br>               plot_height = 800)</pre><pre>p</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*i-L1PT7AvNV4pdvNbGJ8_g.gif" /><figcaption>Interactive volcano3D showing differential expression between points</figcaption></figure><p>There are also supplementary vignettes for further information on:</p><ul><li><a href="https://katrionagoldmann.github.io/volcano3D/articles/pvalues_generator.html">setting up the input pvalues data frame</a></li><li><a href="https://katrionagoldmann.github.io/volcano3D/articles/shiny_builder.html">using the volcano3D package to create and deploy a shiny app</a></li></ul><h4>References</h4><p>If you use this package please cite as:</p><pre>citation(&quot;volcano3D&quot;)</pre><pre>## <br>## To cite package &#39;volcano3D&#39; in publications use:<br>## <br>##   Katriona Goldmann and Myles Lewis (2020). volcano3D: Interactive<br>##   Plotting of Three-Way Differential Expression Analysis.<br>##   https://katrionagoldmann.github.io/volcano3D/index.html,<br>##   https://github.com/KatrionaGoldmann/volcano3D.<br>## <br>## A BibTeX entry for LaTeX users is<br>## <br>##   @Manual{,<br>##     title = {volcano3D: Interactive Plotting of Three-Way Differential Expression<br>## Analysis},<br>##     author = {Katriona Goldmann and Myles Lewis},<br>##     year = {2020},<br>##     note = {https://katrionagoldmann.github.io/volcano3D/index.html,<br>## https://github.com/KatrionaGoldmann/volcano3D},<br>##   }</pre><p>or:</p><blockquote><em>Lewis, Myles J., et al. </em>Molecular portraits of early rheumatoid arthritis identify clinical and treatment response phenotypes<em>. Cell reports 28.9 (2019): 2455–2470.</em></blockquote><h4>Links</h4><p>💻 The source code can be found at: <a href="https://github.com/KatrionaGoldmann/volcano3D">KatrionaGoldmann/volcano3D</a></p><p>🐛 To report a bugs or make suggestions visit: <a href="https://github.com/KatrionaGoldmann/volcano3D/issues">volcano3D/issues</a></p><p>⬇️ Download from <a href="https://cran.r-project.org/web/packages/volcano3D/index.html">CRAN</a></p><p>📖 For similar R posts visit <a href="https://www.r-bloggers.com/">r-bloggers</a></p><h4>Developers</h4><p>volcano3D was developed by the bioinformatics team from the <a href="https://www.qmul.ac.uk/whri/emr/">Experimental Medicine &amp; Rheumatology department</a> and <a href="https://www.qmul.ac.uk/c4tb/">Centre for Translational Bioinformatics</a> at Queen Mary University London:</p><ul><li>Katriona Goldmann: <a href="https://twitter.com/_katriona">🐦 Twitter</a> , <a href="https://github.com/KatrionaGoldmann">💻 GitHub</a> , 👤 <a href="https://www.qmul.ac.uk/c4tb/our-team/profiles/goldmann-katriona.html">QMUL</a></li><li>Myles Lewis: 👤<a href="https://www.qmul.ac.uk/whri/people/academic-staff/items/lewismyles.html">QMUL</a></li></ul><p>Thanks for reading, I hope you enjoy! 🌋</p><figure><img alt="logo" src="https://cdn-images-1.medium.com/max/180/1*AhrevnoUlMZVXxnNc-nSpQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf6c37b5aa6a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/interactive-differential-expression-analysis-with-volcano3d-cf6c37b5aa6a">Interactive differential expression analysis with volcano3D</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>