Literature DB >> 26714840

EntropyExplorer: an R package for computing and comparing differential Shannon entropy, differential coefficient of variation and differential expression.

Kai Wang1, Charles A Phillips2, Arnold M Saxton3, Michael A Langston4.   

Abstract

BACKGROUND: Differential Shannon entropy (DSE) and differential coefficient of variation (DCV) are effective metrics for the study of gene expression data. They can serve to augment differential expression (DE), and be applied in numerous settings whenever one seeks to measure differences in variability rather than mere differences in magnitude. A general purpose, easily accessible tool for DSE and DCV would help make these two metrics available to data scientists. Automated p value computations would additionally be useful, and are often easier to interpret than raw test statistic values alone.
RESULTS: EntropyExplorer is an R package for calculating DSE, DCV and DE. It also computes corresponding p values for each metric. All features are available through a single R function call. Based on extensive investigations in the literature, the Fligner-Killeen test was chosen to compute DCV p values. No standard method was found to be appropriate for DSE, and so permutation testing is used to calculate DSE p values.
CONCLUSIONS: EntropyExplorer provides a convenient resource for calculating DSE, DCV, DE and associated p values. The package, along with its source code and reference manual, are freely available from the CRAN public repository at http://cran.r-project.org/web/packages/EntropyExplorer/index.html.

Entities:  

Mesh:

Year:  2015        PMID: 26714840      PMCID: PMC4696313          DOI: 10.1186/s13104-015-1786-4

Source DB:  PubMed          Journal:  BMC Res Notes        ISSN: 1756-0500


Background

Shannon entropy (SE) and coefficient of variation (CV) are used to measure the variability or dispersion of numerical data. Such variability has potential utility in numerous application domains, perhaps most notably in the analysis of high throughput biological data. Variability has been applied, for example, to study gene expression data in the context of human disease [1]. Increased entropy in particular, in both gene expression and protein interaction data, has been observed to be a characteristic of cancer [2]. Numerous other examples typify the utility of entropy [3-8] and coefficient of variation [9-12]. Shannon entropy is famously rooted in information theory [13]. To avoid confusion, we emphasize that we use the term “differential entropy” to denote a difference between two Shannon entropy values. This is distinct from information-theoretic terminology, in which “differential entropy” often means the entropy of a continuous, rather than a discrete, random variable [14]. We are particularly interested in differential analysis. In [15], we studied differential Shannon entropy (DSE) and differential coefficient of variation (DCV), and found them highly effective in identifying genes of potential interest not found by differential expression (DE) alone. DSE and DCV are applicable to other types of biological data as well, such as that produced by RNA-Seq technologies, although the usual caveats about careful interpretation apply. The usefulness of DSE and DCV is of course not limited to biological data. They may be applied to any numerical data for which normalized measures of differential variability are relevant.

Implementation

EntropyExplorer is implemented in R [16]. All features are wrapped into a single function call, which takes as input up to eight arguments. Two of these arguments are numerical matrices, with identical labels for each row. The output is a matrix with two, three or five columns that contains in each row two SE, CV or mean values; a DSE, DCV or DE value; and/or two p values, one raw and one adjusted. Output rows can be sorted by value, raw p value or adjusted p value, and can be filtered to show only the top-ranked rows. Permutation testing for DSE is accomplished with the help of the R function sample.int. The default number of tests to be employed is set to 1000, which the user can override. The p value for DCV is calculated by applying the Fligner-Killeen test for homogeneity of variances, implemented via the R function fligner.test, to the log-transform of the input data. The R function t.test is used to find a p value for DE. Adjusted p values are calculated using the p.adjust function in R, which provides false discovery rate and multiple testing corrections. A more thorough explanation of p value calculations is provided in the discussion section. EntropyExplorer checks that all matrix entries are positive. This is because calculations of a DSE value/p value and a DCV p value involve taking logarithms, which are undefined on data containing zeros or negative values. Also, CV becomes less meaningful when means approach zero or are negative. Experimental data may be noisy, however, and so EntropyExplorer provides mechanisms to handle non-positive values. An optional two-value argument permits the user to add a positive bias to all elements of one or both matrices prior to performing any other calculations. The argument can also be set to make this adjustment automatically, based on the least non-positive value in each matrix.

Metrics

Let represent a list of n positive numbers, and let denote their sum. The Shannon entropy of this list is The coefficient of variation iswhere is the sample mean and is the sample standard deviation. Given two such lists of positive numbers with Shannon entropies and , coefficients of variation and , and means and , , , and . Shannon entropy falls in the range [0, 1]; DSE therefore also falls in the range [0, 1]. Lower (higher) SE corresponds to more (less) variability. CV falls in the range [0, ∞); DCV therefore also has a range of [0, ∞).

Application

EntropyExplorer is invoked as follows: EntropyExplorer(expm1, expm2, dmetric, otype, ntop, nperm, shift, padjustmethod) We refer the reader to the reference manual, included as Additional file 1 and available on the project webpage, for a detailed description of all arguments and options. Included with the package is a sample mRNA microarray dataset, consisting of a few rows from a dataset obtained from the Gene Expression Omnibus (GEO) [17]. This dataset, GSE10810, contains case/control data on breast cancer [18]. Figures 1 and 2 provide example uses of EntropyExplorer on the full data.
Fig. 1

The output of EntropyExplorer on breast cancer data. The numerical matrices m1 and m2 have been read into R. The function call has specified “dse” for differential Shannon entropy, “v” for value, and 10 to return the top 10 values

Fig. 2

Another use of EntropyExplorer on breast cancer data. The function call has specified “dcv” for differential coefficient of variation, “bv” to specify both value and p value, and to sort by value, and 12 to return the top 12 rows

The output of EntropyExplorer on breast cancer data. The numerical matrices m1 and m2 have been read into R. The function call has specified “dse” for differential Shannon entropy, “v” for value, and 10 to return the top 10 values Another use of EntropyExplorer on breast cancer data. The function call has specified “dcv” for differential coefficient of variation, “bv” to specify both value and p value, and to sort by value, and 12 to return the top 12 rows

Discussion

In addition to calculating DSE, DCV and DE, EntropyExplorer can calculate both raw and adjusted p values for each. ANOVA-based tests are the standard way to obtain differential expression p values. We therefore use a t-test for this purpose. Certainly more sophisticated methods exist. See, for example, [19, 20]. Thus, we emphasize that EntropyExplorer includes DE only as a simple, convenient and straightforward point of comparison with the other two metrics. For DCV p values, we observe that 11 tests of equal relative variation were compared in [21], with the conclusion that the Fligner-Killeen test [22] is usually the most appropriate. It strikes a balance between type I and type II errors, and is robust to non-normal distributions. Obtaining reliable p values for DSE proved much more challenging. We found no known method in the literature specific to DSE p values. We therefore investigated the extent to which SE is correlated to variance. A high correlation would suggest that they may be proxies for each other, in which case the p value of an F-test or some derivation thereof might serve as suitable estimate of the DSE p value. Unfortunately, correlations between SE and variance, or between SE and a function of variance, were not high enough to justify using one as a surrogate for the other. Table 1 shows the correlation between SE and variance V, and between SE and the function as an attempt to linearize the relationship, using the 16 datasets from [15]. The only notably high correlation is found in the obesity dataset. The obesity data, however, contains a large number of missing values, rendering the high correlation less reliable. We conclude that standard statistical tests related to variance do not appear suitable for testing DSE.
Table 1

Correlations between SE and variance, and between SE and , on 16 microarray gene expression datasets

DatasetsCorrelation Between SE and VarianceCorrelation between SE and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$ \frac{1}{2}\ln \left( {2\pi eV} \right) $$\end{document}12ln2πeV
CaseControlCaseControl
Allergic Rhinitis−0.5515−0.5769−0.9703−0.9658
Asthma_GSE4302−0.4272−0.4677−0.1924−0.2004
BreastCancer_GSE10810−0.3942−0.3378−0.1810−0.1265
CLL_GSE88350.22510.2522−0.0806−0.0624
ColorectalCancer_GSE93480.31220.4454−0.00860.0206
CrohnsDisease_GSE6731−0.2826−0.2380−0.1664−0.4020
LungAdenocarcinoma_GSE76700.07250.3360−0.01730.0105
MS_GDS3920−0.3615−0.3320−0.0515−0.0559
Obesity_GSE120500.99980.99900.15840.5420
Pancreas_GDS4102−0.4137−0.4455−0.1331−0.0890
ParkinsonsDisease_GSE20141−0.1732−0.2554−0.0024−0.0155
ProstateCancer_GSE6919_GPL83000.21180.1552−0.0562−0.0699
Psoriasis_GSE13355−0.6386−0.6554−0.5200−0.6779
Schizophrenia_GSE176120.36320.39100.01700.0235
T2D_GSE20966−0.6006−0.5550−0.4356−0.4663
UlcerativeColitis_GSE6731−0.3112−0.2555−0.1799−0.1451
Correlations between SE and variance, and between SE and , on 16 microarray gene expression datasets We also examined the distribution of DSE on the 16 datasets, with the goal of empirically determining a suitable reference distribution for DSE. From this, we could then estimate p values analytically. We applied the Kolmogorov–Smirnov (KS) test to compare the DSE distribution of each dataset to some of the more common reference distributions, such as normal, F, t, and Chi square. When performing a KS test, p values can be overly sensitive to deviations from the reference distribution [23], so a D-statistic value below 0.1 was used to identify matching distributions. In our experiments, only the Parkinson’s dataset produced a D-statistic below 0.1 when tested against a normal or standardized t distribution (Table 2). Figure 3 shows a sample distribution of DSE, in this case using prostate cancer data.
Table 2

KS test D-statistic results comparing the DSE distribution against several common distributions

DatasetDistribution
NormalChi-squareFtt (standardized DSE)*
Allergic Rhinitis0.3109110.49910.3526
Asthma_GSE43020.2795110.48950.3117
BreastCancer_GSE108100.2115110.47970.3944
CLL_GSE88350.150610.99750.45190.1596
ColorectalCancer_GSE93480.123210.99940.45140.2142
CrohnsDisease_GSE67310.213110.9870.46910.2392
LungAdenocarcinoma_GSE76700.1910.99990.46630.332
MS_GDS39200.270310.99940.48130.3397
Obesity_GSE120500.235210.99910.4840.287
Pancreas_GDS41020.260610.99370.45320.3254
ParkinsonsDisease_GSE201410.062810.93610.38160.0582
ProstateCancer_GSE6919_GPL83000.1575110.47390.2522
Psoriasis_GSE133550.332710.99990.49320.4195
Schizophrenia_GSE176120.18310.99980.47050.2138
T2D_GSE209660.327110.99990.49360.3562
UlcerativeColitis_GSE67310.239710.9980.48310.3608

* The last column shows the results after first standardizing DSE by dividing each DSE by the standard deviation of all DSEs

Fig. 3

The distribution of differential Shannon entropy. The observed distribution of differential Shannon entropy in sample prostate cancer data is shown. Similar patterns were seen in all 16 data sets. None of the standard distributions tested matched the observed distributions closely enough to be considered as a reference distribution for obtaining p values

KS test D-statistic results comparing the DSE distribution against several common distributions * The last column shows the results after first standardizing DSE by dividing each DSE by the standard deviation of all DSEs The distribution of differential Shannon entropy. The observed distribution of differential Shannon entropy in sample prostate cancer data is shown. Similar patterns were seen in all 16 data sets. None of the standard distributions tested matched the observed distributions closely enough to be considered as a reference distribution for obtaining p values We conclude from this that none of the distributions tested are close enough approximations to the observed DSE distribution to be used as a proxy for obtaining p values. Thus, without a known distribution function or suitable surrogate, we resort to resampling in order to obtain reliable DSE p values. While computationally demanding, the following permutation test makes no assumptions about the underlying distribution of the data. Given two lists of numbers, containing n1 and n2 numerical elements respectively, we first calculate their DSE and then create a new list A containing all numbers from the two lists. Next we randomly permute the elements of A, then recalculate DSE, treating the first elements of A as one list and the last elements of A as a second list. The resultant p value is simply the proportion of all recalculated DSEs that are at least as extreme as the original DSE. In addition to raw p values, EntropyExplorer also calculates p values adjusted for multiple testing. A user can choose to adjust based on FDR, Holm or another multiple-testing adjustment.

Conclusions

We have produced EntropyExplorer, an R package for calculating differential Shannon entropy, differential coefficient of variation and differential expression. This package also calculates raw and adjusted p values for each metric. These measures have been shown to complement one another [15], making this package an effective tool for users in search of more expansive suites of differential analysis methods.

Availability and requirements

Project name: EntropyExplorer. Project home page: http://cran.r-project.org/web/packages/EntropyExplorer/index.html. Operating system(s): Platform independent. Programming language: R. Other requirements: R version 3.0 or later is recommended. License: GNU General Public License version 3.0 (GPLv3). Any restrictions to use by non-academics: None. Additional availability: EntropyExplorer is integrated into the GrAPPA toolkit at http://grappa.eecs.utk.edu/.
  14 in total

1.  Significance analysis of microarrays applied to the ionizing radiation response.

Authors:  V G Tusher; R Tibshirani; G Chu
Journal:  Proc Natl Acad Sci U S A       Date:  2001-04-17       Impact factor: 11.205

2.  Testing for multiple species in fossil samples: an evaluation and comparison of tests for equal relative variation.

Authors:  S M Donnelly; A Kramer
Journal:  Am J Phys Anthropol       Date:  1999-04       Impact factor: 2.868

3.  Gene Expression Omnibus: NCBI gene expression and hybridization array data repository.

Authors:  Ron Edgar; Michael Domrachev; Alex E Lash
Journal:  Nucleic Acids Res       Date:  2002-01-01       Impact factor: 16.971

4.  Use of coefficient of variation in assessing variability of quantitative assays.

Authors:  George F Reed; Freyja Lynn; Bruce D Meade
Journal:  Clin Diagn Lab Immunol       Date:  2002-11

5.  Applicability of the coefficient of variation method for analyzing synaptic plasticity.

Authors:  D S Faber; H Korn
Journal:  Biophys J       Date:  1991-11       Impact factor: 4.033

6.  Cancer biomarker discovery: the entropic hallmark.

Authors:  Regina Berretta; Pablo Moscato
Journal:  PLoS One       Date:  2010-08-18       Impact factor: 3.240

7.  Differential variability analysis of gene expression and its application to human diseases.

Authors:  Joshua W K Ho; Maurizio Stefani; Cristobal G dos Remedios; Michael A Charleston
Journal:  Bioinformatics       Date:  2008-07-01       Impact factor: 6.937

8.  Normality tests for statistical analysis: a guide for non-statisticians.

Authors:  Asghar Ghasemi; Saleh Zahediasl
Journal:  Int J Endocrinol Metab       Date:  2012-04-20

9.  Differential network entropy reveals cancer system hallmarks.

Authors:  James West; Ginestra Bianconi; Simone Severini; Andrew E Teschendorff
Journal:  Sci Rep       Date:  2012-11-13       Impact factor: 4.379

10.  Entropy-based gene ranking without selection bias for the predictive classification of microarray data.

Authors:  Cesare Furlanello; Maria Serafini; Stefano Merler; Giuseppe Jurman
Journal:  BMC Bioinformatics       Date:  2003-11-06       Impact factor: 3.169

View more
  7 in total

1.  Artificial Intelligence-Driven Structurization of Diagnostic Information in Free-Text Pathology Reports.

Authors:  Pericles S Giannaris; Zainab Al-Taie; Mikhail Kovalenko; Nattapon Thanintorn; Olha Kholod; Yulia Innokenteva; Emily Coberly; Shellaine Frazier; Katsiarina Laziuk; Mihail Popescu; Chi-Ren Shyu; Dong Xu; Richard D Hammer; Dmitriy Shin
Journal:  J Pathol Inform       Date:  2020-02-11

2.  epihet for intra-tumoral epigenetic heterogeneity analysis and visualization.

Authors:  Xiaowen Chen; Haitham Ashoor; Ryan Musich; Jiahui Wang; Mingsheng Zhang; Chao Zhang; Mingyang Lu; Sheng Li
Journal:  Sci Rep       Date:  2021-01-11       Impact factor: 4.996

3.  Application of Bayesian Decision Tree in Hematology Research: Differential Diagnosis of β-Thalassemia Trait from Iron Deficiency Anemia.

Authors:  Mina Jahangiri; Fakher Rahim; Najmaldin Saki; Amal Saki Malehi
Journal:  Comput Math Methods Med       Date:  2021-11-09       Impact factor: 2.238

4.  Molecular Subtyping and Outlier Detection in Human Disease Using the Paraclique Algorithm.

Authors:  Ronald D Hagan; Michael A Langston
Journal:  Algorithms       Date:  2021-02-19

5.  Somatic Mutations Drive Specific, but Reversible, Epigenetic Heterogeneity States in AML.

Authors:  Sheng Li; Xiaowen Chen; Jiahui Wang; Cem Meydan; Jacob L Glass; Alan H Shih; Ruud Delwel; Ross L Levine; Christopher E Mason; Ari M Melnick
Journal:  Cancer Discov       Date:  2020-09-16       Impact factor: 38.272

6.  Quantifying the value of surveillance data for improving model predictions of lymphatic filariasis elimination.

Authors:  Edwin Michael; Swarnali Sharma; Morgan E Smith; Panayiota Touloupou; Federica Giardina; Joaquin M Prada; Wilma A Stolk; Deirdre Hollingsworth; Sake J de Vlas
Journal:  PLoS Negl Trop Dis       Date:  2018-10-08

7.  Drugs modulating stochastic gene expression affect the erythroid differentiation process.

Authors:  Anissa Guillemin; Ronan Duchesne; Fabien Crauste; Sandrine Gonin-Giraud; Olivier Gandrillon
Journal:  PLoS One       Date:  2019-11-21       Impact factor: 3.240

  7 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.