{"id":112,"date":"2012-01-10T13:52:08","date_gmt":"2012-01-10T18:52:08","guid":{"rendered":"https:\/\/my.vanderbilt.edu\/irishlab\/?page_id=112"},"modified":"2012-01-10T13:52:08","modified_gmt":"2012-01-10T18:52:08","slug":"scales-and-transformation","status":"publish","type":"page","link":"https:\/\/www.irishlab.org\/index.php\/protocols\/scales-and-transformation\/","title":{"rendered":"Scales and Transformation"},"content":{"rendered":"<h3>Notes on Scales and Transformation<\/h3>\n<p>This page discusses the concept of the &#8220;Transformed Ratio&#8221; and why we use it to compare signaling in flow cytometry experiments.<\/p>\n<h3>Calculating Distance<\/h3>\n<p>Scale transformation is important for making quantitative comparisons of distance in flow cytometry. \u00a0If you&#8217;re just quantifying &#8220;percent positive&#8221; or calculating median fluorescence intensity (MFI), scale transformations are less important because both of those metrics are scale independent. \u00a0However, if you want to compare\u00a0<span style=\"text-decoration: underline\">distance<\/span> between two MFIs (e.g. fold change of stimulated vs. unstimulated, a graph of basal MFIs for two sample sets), then the scale becomes important.<\/p>\n<p>The main rule to keep in mind is that you want one scale for everything: statistical comparisons of distance, plotting data in a histogram, and graphs. \u00a0You don&#8217;t want to have a biexponential or <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/pubmed\/16604519\">Logicle<\/a> scale for the display and then calculate distance on a linear scale. \u00a0This is because the distance between two fluorescence intensity values will be different on those two scales. \u00a0Much of the time this disconnect does not have a large impact on the perceived result, but when it does it can generate some surprising artifacts.<\/p>\n<p>To get an intuitive sense for this, imagine using a ruler to measure the distance between three fluorescence intensity values on a plot: 2, 200, and 20,000. \u00a0On a log<sub>10<\/sub> scale, these three values would be evenly spaced. \u00a0However, on a biexponential or arcsinh scale, it is likely that 2 and 200 would be much closer together than 200 and 20,000. \u00a0Thus, the biexponential and arcsinh scales are often used to de-emphasize the distance between points near zero that have a large numerical difference (2 vs. 200) but are not significantly different in the experimental context.<\/p>\n<p>What is the right scale transformation? \u00a0Usually the scale used for visualization of your data in plots is being correctly selected for you by the analysis software and should also be used for statistical comparisons, graphing, and modeling. \u00a0This may not always be the case. \u00a0It is critical to get to know your data well, so that you can ensure statistical analysis and modeling results reflect what is apparent when you look at plots.<\/p>\n<p>It is therefore important to be aware of the scale being used for each channel in your plots and to make sure that the scales selected for visualization are appropriate. \u00a0If it looks wrong &#8212; common artifacts are spikes and holes in the graph near zero &#8212; it probably is wrong. \u00a0This is another reason why it is extremely important to have all of your data &#8220;on scale&#8221; and not cut off the data display at 1 or 0 if you have a lot of values below these numbers. \u00a0When too many events pile up on the left of your plot you cannot tell whether the scale around zero is appropriate (and often in these cases it is not).<\/p>\n<h3>What is Transformed Ratio?<\/h3>\n<p><span style=\"text-decoration: underline\">Transformed Ratio<\/span> is shorthand for calculating fold change on the scale displayed in the plot.\u00a0 <strong>The fold change equation used for transformed ratio depends on each channel&#8217;s scale settings<\/strong>.<\/p>\n<p>In flow cytometry, display scales are usually linear, log<sub>10<\/sub>,\u00a0<a href=\"http:\/\/mathworld.wolfram.com\/InverseHyperbolicSine.html\">arcsinh<\/a>, or biexponential (a modified form of arcsinh based on the\u00a0<a href=\"http:\/\/www.ncbi.nlm.nih.gov\/pubmed\/16604519\">Logicle<\/a> display). \u00a0The key benefit of using a transformed ratio is that distance calculations on each scale will always reflect the appearance of the data when looking at figures. \u00a0It is important to match the statistical comparisons with the visualization of the data, so that figures and statistics match.<\/p>\n<p>Where this can get tricky is when channels within the same data file have different scale settings (e.g. FITC vs. PE-Cy7 typicaly have different scale transformations near zero). \u00a0This case is increasingly the norm for newer, digital cytometers which store the raw data in linear format and then transform the display for visualization.<\/p>\n<p><span style=\"text-decoration: underline\">Linear<\/span><\/p>\n<p>If the scale type is linear (x) for a channel (e.g. Forward Scatter), the Transformed Ratio is the fold change with no scale transformation:<\/p>\n<p>x \/ control<\/p>\n<p>On this scale, &#8220;\u00b11.0&#8221; is no change, a shift from 1,000 to 100,000 is &#8220;+100.0&#8221;, and a shift from 100,000 to 1,000 is &#8220;+0.01&#8221; (sometimes written as &#8220;-100.0&#8221;).\u00a0 Linear fold change is not appropriate for channels with values below 1.<\/p>\n<p>Issues with this scale: the fold change scale is not continuous across zero &#8212; there is a &#8220;gap&#8221; in the scale between +1 and -1. \u00a0Sometimes values are written differently (e.g. &#8220;0.5&#8221; fold change can be written as &#8220;-2&#8221;).<\/p>\n<p><span style=\"text-decoration: underline\">Log10<\/span><\/p>\n<p>If the scale type is log<sub>10<\/sub>(x) for a channel (e.g. CD3 on a FACSCalibur), the Transformed Ratio is fold change on the log<sub>10<\/sub> scale:<\/p>\n<p>log<sub>10<\/sub>(x) &#8211; log<sub>10<\/sub>(control)<\/p>\n<p>On this scale, &#8220;0.0&#8221; is no change, a shift from 1,000 to 100,000 is &#8220;+2.0&#8221;, and a shift from 100,000 to 1,000 is &#8220;-2.0&#8221;.<\/p>\n<p>Issues with this scale: Log<sub>10<\/sub> fold change is not appropriate for channels whose raw values are below 1.<\/p>\n<p><span style=\"text-decoration: underline\">Arcsinh and biexponential<\/span><\/p>\n<p>If the scale type is arcsinh(x) or biexponential(x) for a channel (e.g. CD3 on an LSRII), the Transformed Ratio is fold change on the <a href=\"http:\/\/mathworld.wolfram.com\/InverseHyperbolicSine.html\">arcsinh<\/a> or biexponential scale:<\/p>\n<p>arcsinh(x) &#8211; arcsinh(control)<\/p>\n<p>biexponential(x) &#8211; biexponential(control)<\/p>\n<p>On an arcsinh scale with a cofactor of 150, &#8220;0.0&#8221; is no change, a shift from 1,000 to 100,000 is &#8220;+4.6&#8221;, and a shift from 100,000 to 1,000 is &#8220;-4.6&#8221;.<\/p>\n<p>Note that both biexponential and arcsinh are versions of the <a href=\"http:\/\/mathworld.wolfram.com\/InverseHyperbolicSine.html\">inverse hyperbolic sine<\/a> function (arcsinh).\u00a0 Arcsinh scaling uses 1 cofactor and biexponential uses 5 cofactors.\u00a0 In both cases, the cofactors are used in a channel-specific manner to correct for spread in peaks near zero that can occur due to fluorophore spectral properties, autofluorescence, cytometer settings, and compensation.<\/p>\n<p>Issues with this scale: the cofactor can emphasize or deemphasize changes near zero. \u00a0This scale is typically used to deemphasize noise near zero, but setting the cofactor &#8220;too high&#8221; can result in a spike of data near zero. \u00a0Setting the cofactor &#8220;too low&#8221; can create an artificial &#8220;hole in the data&#8221; near zero.<\/p>\n<p>Because of these issues, biexponential scale implementations usually look at the structure of your data in one plot and use that information to set cofactors.<\/p>\n<h3>Why Use Transformed Ratio?<\/h3>\n<p>Fold change values returned by the Transformed Ratio are scaled to match the plots &#8212; what you see is what you get.\u00a0 If you printed out your data and measured the distance between two peaks with a ruler, the ruler measured distance values would be directly comparable to the Transformed Ratio distance values.\u00a0 When is this not the case?\u00a0 If you did not use the Transformed Ratio and instead calculated linear fold change (x\/control) for a scale where your plots displayed the data on a biexponential scale, the distance between peaks measured with a ruler (or by your eye) would not match the linear fold change values, especially near the axis.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Notes on Scales and Transformation This page discusses the concept of the &#8220;Transformed Ratio&#8221; and why we use it to compare signaling in flow cytometry experiments. Calculating Distance Scale transformation is important for making quantitative comparisons of distance in flow cytometry. \u00a0If you&#8217;re just quantifying &#8220;percent positive&#8221; or calculating median fluorescence intensity (MFI), scale transformations [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":71,"menu_order":90,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-112","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.irishlab.org\/index.php\/wp-json\/wp\/v2\/pages\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.irishlab.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.irishlab.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.irishlab.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.irishlab.org\/index.php\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":0,"href":"https:\/\/www.irishlab.org\/index.php\/wp-json\/wp\/v2\/pages\/112\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.irishlab.org\/index.php\/wp-json\/wp\/v2\/pages\/71"}],"wp:attachment":[{"href":"https:\/\/www.irishlab.org\/index.php\/wp-json\/wp\/v2\/media?parent=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}