Update for the logicle data scale including operational code implementations
Wayne Moore, David R. Parks · Cytometry Part A · 2012
Since its introduction in the early 2000s, the logicle data scale (1, 2) has been widely adopted by the cytometry community. The characteristics of logicle displays and their use to facilitate interpretation of flow cytometry data have been discussed in several papers (3, 4). FlowJo software (Tree Star, Ashland, OR) offers the option of setting logicle transformation as the default for some data types. Diva software (BD Biosciences, San Jose, CA) offers logicle displays with scaling customized to the distribution of the data in each plot (called "Biexponential" but using the logicle constraints on the biexponential and logicle methods for selecting display parameters). In our experience with data from many different biological applications and a variety of instruments, logicle transformation provides good representation of all cytometry data for which direct linear presentation is not the most appropriate choice and has shown no tendency to generate artifactual features in displays. On this basis, we now recommend logicle as the appropriate default method for nonlinear transformation of cytometric data. In support of this recommendation, this communication provides (1) minor updates to the logicle specification, (2) a rigorously defined parameterization that should clarify questions that have come from people who were implementing logicle transformations in software, (3) technical details that were not considered suitable for the original publication but have become important for the standardization and consistent application of the method, (4) reference implementation code for both high-precision and routine calculations, and (5) a more detailed mathematical exposition on Biexponential Functions (Supporting Information). We expect that the formulas presented here will be the normative definition for the logicle transformation included in the ISAC Standards Committee's recommendation in Gating-ML (Analytical Cytometry Standard (ACS)—Gating-ML Component, http://flowcyt.sourceforge.net/gating/). Implementations of the logicle scale in the Java, C++, and C programming languages are provided in the Supporting Information and are released under the Revised Berkeley Software Distribution open source license for free use in cytometry software. A module for integrating the logicle scale into the R statistical programming environment is available in the Bioconductor repository (http://www.bioconductor.org/). Several algorithms and computational methods used in this work were adopted or modified from Ref.5 (NR3, www.cambridge.org/numericalrecipes and www.nr.com). The objective in developing the logicle transform was to avoid the problems encountered with logarithmic scaling of cytometric data, when primary measurements and/or compensated data includes very low and negative values (illustrated in Fig. 1B). The inverse hyperbolic sine function (sinh−1) offers attractive features as a scaling function in that it gives a near-linear region above and below data zero, near-logarithmic behavior at high data values and a narrow but very smooth transition from one to the other. Transformations of this sort have been used for various kinds of data (6, 7). However, we found that sinh−1 and similar formulations do not provide enough flexibility to maintain consistent near-log behavior for high data values while adjusting the width and slope of the near-linear region to optimally display different data sets. Therefore, we adopted a more generalized biexponential form and constrained that so that a single width parameter (W in the mathematical expression below) sets the negative end of the scale and the width and slope of the near-linear region. This single parameter is used to tune the display for a particular data set. The only really comparable transform we are aware of is the HyperLog (8). Truncating a power series expansion of the negative exponential in a logicle formula to just the first-order term generates a HyperLog function. The full exponential function in the logicle version makes the near-linear region closer to linear and the near-log region closer to logarithmic compared to a corresponding HyperLog. Also, at least as originally formulated, HyperLog does not provide a single adjustable parameter comparable to the logicle width for matching to specific data sets. Appropriate and inappropriate selection of display types and display parameters. The lower histograms show events in the boxed region of the corresponding upper bivariate plots. In each of the logicle histograms, the left end of the integration bar approximates the median of the distribution. (A) Uncompensated logicle display of mouse spleen cells stained for only CD19 using a PE-Cy5.5 conjugated reagent and showing spectral overlap onto the PE-Cy7 channel. (B) A 4.5-decade logarithmic display of the same data compensated. The medians of both the CD19+ and the CD19− populations are near zero and below the minimum of the logarithmic scale. The apparent peak in the gated population at about data value 90 is actually at the 81st percentile of the distribution. This effect is sometimes referred to as a "log artifact." (C) Logicle display of the same data with a width value that is inappropriately low for the data. The median of the CD19+ population is on scale near zero but appears as a low point in the histogram display. Most of the negative value data points pile up at the baseline. (D) Adding 1.5 decades negative display space (A = 1.5) with the same 4.5-decade base and 0.25-decade width as in (C) brings the whole distribution on scale but with the CD19+ population looking bimodal in the PE-Cy7 dimension. (E) A logicle display of the same data with an appropriate choice of parameters: A = 0 and a higher value of W than in (C). The CD19+ population is well defined with no indication of bimodality, and all but a few data points are displayed on scale. Data details: Cells from the spleen of an 8-week-old BALB/c mouse were stained with antibod
Cited by 36 works. doi:10.1002/cyto.a.22030
Authors
References
- Numerical recipes: The art of scientific computing
- A variance-stabilizing transformation for gene-expression microarray data
- A Modified Magnitude System that Produces Well-Behaved Magnitudes, Colors, and Errors Even for Low Signal-to-Noise Ratio Measurements
- Interpreting flow cytometry data: a guide for the perplexed
- A new “Logicle” display method avoids deceptive effects of logarithmic scaling for low signals and compensated data
- Modern Flow Cytometry: A Practical Approach
- Hyperlog—A flexible log‐like transform for negative, zero, and positive valued data
- Automatic Clustering of Flow Cytometry Data with Density-Based Merging