 Methodology Article
 Open Access
 Published:
Statistical analysis of variability in TnSeq data across conditions using zeroinflated negative binomial regression
BMC Bioinformatics volume 20, Article number: 603 (2019)
Abstract
Background
Deep sequencing of transposon mutant libraries (or TnSeq) is a powerful method for probing essentiality of genomic loci under different environmental conditions. Various analytical methods have been described for identifying conditionally essential genes whose tolerance for insertions varies between two conditions. However, for largescale experiments involving many conditions, a method is needed for identifying genes that exhibit significant variability in insertions across multiple conditions.
Results
In this paper, we introduce a novel statistical method for identifying genes with significant variability of insertion counts across multiple conditions based on ZeroInflated Negative Binomial (ZINB) regression. Using likelihood ratio tests, we show that the ZINB distribution fits TnSeq data better than either ANOVA or a Negative Binomial (in a generalized linear model). We use ZINB regression to identify genes required for infection of M. tuberculosis H37Rv in C57BL/6 mice. We also use ZINB to perform a analysis of genes conditionally essential in H37Rv cultures exposed to multiple antibiotics.
Conclusions
Our results show that, not only does ZINB generally identify most of the genes found by pairwise resampling (and vastly outperforms ANOVA), but it also identifies additional genes where variability is detectable only when the magnitudes of insertion counts are treated separately from local differences in saturation, as in the ZINB model.
Background
Deep sequencing of transposon mutant libraries (or TnSeq) is a powerful method for probing the essentiality of genomic loci under different environmental conditions [1]. In a transposon (Tn) mutant library made with a transposon in the mariner family, like Himar1, insertions generally occur at approximately random locations throughout the genome, restricted to TA dinucleotides [2]. The absence of insertions in a locus is used to infer conditional essentiality, reflecting depletion of those clones from the population due to inability to survive the loss of function in such conditions. If loss of function leads to a significant growth impairment, these genes are typically referred to as ‘growthdefect’ genes instead. While the abundance of clones with insertions at different sites can be profiled efficiently through deep sequencing [3], there are a number of sources of noise that induce a high degree of variability in insertion counts at each site, including: variations in mutant abundance during library construction [4], stochastic differences among replicates [5], biases due to sample preparation protocol and sequencing technology [6], and other effects. Previous statistical methods have been developed for quantitative assessment of essential genes in single conditions, as well as pairwise comparisons of conditional essentiality. Statistical methods for characterizing essential regions in a genome include those based on tests of sums of insertion counts in genes [7], gaps [8], bimodality of empirical distributions [9], nonparametric tests of counts [10], Poisson distributions [11], and Hidden Markov Models [12, 13]. Statistical methods for evaluating conditional essentiality between two conditions include: estimation of fitness differences [14], permutation tests on distribution of counts at individual TA sites (resampling in TRANSIT [15]), MannWhitney Utest [16], and linear modeling of conditionspecific effects (i.e. logfoldchanges in insertion counts) at individual sites, followed by combining sitelevel confidence distributions on the parameters into genelevel confidence distributions (TnseqDiff [17]).
Recently, more complex TnSeq experiments are being conducted involving larger collections of conditions (such as assessment of a library under multiple nutrient sources, exposure to different stresses like a panel of antibiotics, or passaging through multiple animal models with different genetic backgrounds) [18–21]. Yang et al. [22] has also looked at temporal patterns of changes in insertion counts over a timecourse. A fundamental question in such largescale experiments is to determine which genes exhibit statistically significant variability across the panel of conditions. A candidate approach might be to perform an ANOVA analysis of the insertion counts to determine whether there is a conditiondependent effect on the means. However, ANOVA analyses rely on the assumption of normality [23], and Tn insertion counts are clearly not Normally distributed. First, readcounts are nonnegative integers; second, there are frequently sporadic sites with high counts that influence the means; third, most Tn libraries are subsaturated, with a high fraction of TA sites not being represented, even in nonessential regions. This creates an excess of zeros in the data (sites were no insertion was observed), and this makes it ambiguous whether sites with a count of 0 are biologically essential (i.e. depleted during growth/selection) or simply missing from the library. Monte Carlo simulations show that applying ANOVA to data with nonnormally distributed residuals can result in an increased risk of type I or type II errors, depending on degree and type of nonnormality [23]. An alternative method for assessing variability might be to use a nonparametric test of the differences between means by permuting the counts and generating a null distribution (as in the “resampling test” in TRANSIT [15]). However, this is limited to pairwise comparisons, and attempting to run resampling for all pairwise comparisons between conditions to identify genes that show some variation does not scale up well as the number of conditions grows.
In this paper, we introduce a new statistical method for identifying genes with significant variability of insertion counts across multiple conditions based on ZeroInflated Negative Binomial (ZINB) regression. The ZINB distribution is a mixture model of a Negative Binomial distribution (for the magnitudes of insertion counts at sites with insertions) combined with a “zero” component (for representing the proportion of sites without insertions). ZINB regression fits a model for each gene that can be used to test whether there is a conditiondependent effect on the magnitudes of insertion counts or on the local level of saturation in each gene. Separating these factors increases the statistical power that ZINB regression has over resampling for identifying varying genes (since resampling just tests the differences in the means between conditions  zeros included). Importantly, our model includes terms to accommodate differences in saturation among the datasets to prevent detecting false positives due to differences between libraries.
Another advantage of the ZINB regression framework is that it allows incorporation of additional factors as covariates in analyzing variability across multiple conditions, to account for effects dependent on relationships among the conditions, such as similar treatments, timepoints, host genotypes, etc.
Using several TnSeq datasets from M. tuberculosis H37Rv, we show that, in pairwise tests (between two conditions), the genes detected by ZINB regression are typically a superset of those detected by resampling and hence is more sensitive. More importantly, ZINB regression can be used to identify varying genes across multiple (≥3) conditions, which contains most of the genes identified by pairwise resampling between all pairs (and is more convenient and scalable). Furthermore, ZINB regression vastly outperforms ANOVA, which often identifies only around half as many genes with significant variability in insertion counts.
Methods
ZINB model
Essential genes are likely to have no insertions or very few counts (because mutants with transposon insertions in those regions are not viable), while nonessential genes are likely to have counts near the global average for the dataset. Insertion counts at TA sites in nonessential regions are typically expected to approximate a Poisson distribution. This expectation is based on a null model in which the expected fraction of insertions at a site is determined by the relative abundance of those clones in the library, and the observed counts in a sequencing experiment come from a stochastic sampling process. This process is expected to follow a multinomial distribution [24], which is approximated by the Poisson for sufficiently large numbers of reads (total dataset size) [25].
Let Y={y_{g,c,i,j}} represent the set of observed read counts for each gene g, in condition c∈{c_{1}..c_{n}}, at TA site i=1..N_{g}, for replicate j=1..R_{c}. We are interested in modeling the gene and conditionspecific effects on the counts, p(yg, c,i,j). We treat the observations at individual TA sites and in different replicates as independent identicallydistributed (i.i.d.), samples drawn from the distribution for the gene and condition:
Readcount data is often modeled using the Negative Binomial (NB) distribution [25]. The NB distribution can be thought of as a Poisson distribution with overdispersion, resulting from an extra degree of freedom:
where p is a success probability (i.e. of a mutant getting a transposon insertion at a particular site), and r, often called a size parameter, represents the dispersion. Unlike the Poisson distribution, which has a single parameter λ=1/p, and for which the variance is restricted to equal the mean, the extra parameter in NB allows for fitting counts with a variance greater or less than expected (i.e. different from the mean). The NB distribution converges to a Poisson as r→∞ [26]. A common reparameterization of the NB distribution is to specify the distribution based on the mean, μ, and the dispersion parameter, r, which then determines the success probability, p, through the following relationship:
In practice, TnSeq data often has an excess of empty sites (TA sites with counts of 0), exceeding those that would be expected under a typical NB distribution. Because essential genes typically constitute only 10−20% of the genome in most organisms, a library with transposon insertions at 50% of its sites (i.e. 50% saturation) would mean that even nonessential genes will have a large portion of sites missing (i.e. equal to zero). Thus, while the NB distribution may be sufficient to model counts in other domains, TnSeq requires more careful consideration.
One way to solve this problem is to model the readcounts for a gene g and condition c as coming from a ZeroInflated Negative Binomial distribution (ZINB) instead:
where
Here the π parameter represents the probability that a count of zero is extraneous (i.e. does not belong to the NB distribution), and can be interpreted as similar to the probability that an empty site is essential (i.e. empty due to fitness costs incurred through its disruption, rather than stochastic absences). In this way, both readcounts (through the r and μ parameters of the NB distribution) and insertion density (through π) can be used to differentiate genes that are essential in one condition and nonessential in another.
Generalized linear model
To capture the conditional dependence of the ZINB parameters (μ, r, π) on the experimental conditions, we adopt a linear regression (GLM) approach, using a loglink function. This is done independently for each gene g. We use Y_{g} to represent the subset of all observed counts in gene g at any TA site, in any condition, in any replicate (Y_{g} is illustrated as a column vector in Fig. 1). The vector of expected means μ_{g} of the ZINB distribution (nonzero component) for each observation in gene g is expressed as:
where X_{g} is a binary design matrix (see Fig. 1), indicating the experimental condition for each individual observation (insertion count at a TA site) in gene g, and α_{g} is a vector of coefficients for each condition. For m observations and n conditions, the size of X_{g} will be m×n and the size of α_{g} will be n×1. Hence, there will be n coefficients for each gene, one for estimating the mean nonzero count for each condition. The conditional expectations for the nonzero means for each condition can be recovered as: \(\langle \mu _{g,c_{1}}, \ \ldots, \ \mu _{g,c_{n}} \rangle =exp(\boldsymbol {\alpha }_{g})\).
If additional covariates distinguishing the samples are available, such as library, timepoint, or genotype, they may be conveniently incorporated in the linear model with an extra matrix of covariates, W_{g} (m×k for k covariates), to which a vector of k parameters β_{g} will be fit:
For the dispersion parameter of the NB, τ (or size parameter r=1/τ), we assume that each gene could have its own dispersion, but for simplicity, we assume that it does not differ among conditions. Hence, it is fitted by a common intercept:
Finally, for the zeroinflated (Bernoulli) parameter, π, we fit a linear model depending on condition, with a logit link function a conventional choice for incorporating probabilistic variables bounded between 0 and 1 as terms in a linear model):
Thus each gene will have its own local estimate of insertion density in each condition, π_{g,c}=exp(γ_{g,c})/(1+exp(γ_{g,c})). In the case of covariates, logit(π_{g})=X_{g}γ_{g}+W_{g}δ_{g}, where W_{g} are the covariates for each observation, and δ_{g} are the coefficients for them.
Putting these all together:
The parameters of the GLM can be solved by maximumlikelihood using iteratively reweighted least squares (IWLS). In this work, we use the pscl package in R [27].
Correcting for saturation differences among TnSeq datasets
An important aspect of comparative analysis of TnSeq data is the normalization of datasets. Typically, readcounts are normalized such that the total number of reads is balanced across the datasets being compared. Assuming readcounts are distributed as a mixture of a Bernoulli distribution (responsible for zeros) and another distribution, g(x), responsible for nonzero counts i.e.,
then the expected value of this theoretical readcount distribution (with mixture coefficient θ) is given by:
The expected value of such a distribution can be normalized to match that of a another dataset, f_{r}(x), (such as reference condition, with saturation θ_{r}) by multiplying it by a factor, w, defined in the following way:
This guarantees that the expected value in readcounts is the same across all datasets. TTR normalization (i.e. total trimmed read count, the default in TRANSIT [15]) estimates E[g(x)] in a robust manner (excluding the top 1% of sites with highest counts, to reduce the influence of outliers, which can affect normalization and lead to false positives).
While TTR works well for methods like resampling (which only depend on the expected counts being equivalent under the nullhypothesis), it does not work well for methods designed to simultaneously detect differences in both the local magnitudes of counts (nonzero mean) and the saturation (fraction of nonzero sites) such as ZINB. This is because TTR in effect inflates the counts at nonzero sites in datasets with low saturation, in order to compensate for the additional zeros (to make their expected values equivalent). This would cause genes to appear to have differences in (nonzero) mean count (μ_{g,a} vs μ_{g,b}), while also appearing to be less saturated (π_{g,a} vs π_{g,b}), resulting in false positives.
To correct for differences in saturation, we incorporate offsets in the linear model as follows. First, assume there are d datasets (combining all replicates over all conditions). Let the statistics of each dataset be represented by a d×1 vector of nonzero means, M (genomewide averages of insertion counts at nonzero sites), and a d×1 vector of the fraction of sites with zeros in each dataset, Z. For the m observations (insertion counts at TA sites) in gene g, let D_{g} be the binary design matrix of size m×d indicating the dataset for each observation. Then the linear equations above can be modified to incorporate these offsets (a specific offset for each observation depending on which dataset it comes from).
Note that M and Z are just vectors of empirical constants in the linear equation, not parameters to be fit. Hence the fitted coefficients (α_{g},β_{g},γ_{g},δ_{g}) are effectively estimating the deviations in the local insertion counts in a gene relative to the global mean and saturation for each dataset. For example, if observation X_{g,c,i,j} comes from dataset d (where i and j are indexes of TA site and replicate), and the global nonzero mean of that dataset is M_{d}, then exp(X_{g}α_{g}) estimates the ratio of the expected mean insertion count for gene g in condition c to the global mean for dataset d (ignoring covariates):
Statistical significance
Once the ZINB model is fit to the counts for a gene, it is necessary to evaluate the significance of the fit. Ttests could be used to evaluate the significance of individual coefficients (i.e. whether they are significantly different from 0). However, for assessing whether there is an overall effect as a function of condition, we compare the fit of the data Y_{g} (a set of observed counts for gene g) to a simpler model  ZINB without conditional dependence  and compute the difference of loglikelihoods (or loglikelihood ratio):
where the two models are given by:
where Θ_{1}=〈α_{g},ρ_{g},γ_{g}〉 and \(\Theta _{0}=\left \langle \alpha ^{0}_{g},\rho _{g}, \gamma ^{0}_{g} \right \rangle \) are the collections of parameters for the two models, and where \(\alpha ^{0}_{g}\) and \(\gamma ^{0}_{g}\) in M_{0} are just scalars fitted to the grand mean and saturation of the gene over all conditions.
The likelihood ratio statistic above is expected to be distributed as χ^{2} with degrees of freedom equal to the difference in the number of parameters (Wilks’ Theorem):
For the conditiondependent ZINB model (M_{1}), the number of parameters is 2n+1 (for length of α_{g} and γ_{g} plus ρ_{g}). For the conditionindependent ZINB model (M_{0}), there are only 3 scalar parameters \(\left (\alpha ^{0}_{g}, \rho _{g}, \gamma ^{0}_{g}\right)\) used to model the counts pooled across all conditions. Hence df=2n+1−3=2(n−1). The point of the test is to determine whether the additional parameters, which should naturally improve the fit to the data, are justified by the extent of increase in the likelihood of the fit. The cumulative of the χ^{2} distribution is used to calculate pvalues from the loglikelihood ratio, which are then adjusted by the BenjaminiHochberg procedure [28] to correct for multiple tests (to limit the falsediscovery rate to 5% over all genes in the genome being tested in parallel).
Importantly, if a gene is detected to be conditionallyessential (or have a conditional growth defect), it could be due to either a difference in the mean counts (at nonzero sites), or saturation, or both. Thus the ZINB regression method is capable of detecting genes that have insertions in approximately the same fraction of sites but with a systematically lower count (e.g. reduction by X%), possibly reflecting a fitness defect. Similarly, genes where most sites become depleted (exhibiting reduced saturation) but where the mean at the remaining sites (perhaps at the termini) remains about the same would also be detectable as conditionalessentials.
Covariates and interactions
If the data include additional covariates, then the W terms will be included in the regressions for both models M_{1} and M_{0}:
In this way, the covariates W will increase the likelihoods of both models similarly, and the LRT will be evaluating only the improvement of the fits due to the conditions of interest, X, i.e. the residual variance explained by X after taking known factors W into account. Although the number of parameters in both models will increase, the difference in degrees of freedom will remain the same.
If the covariates represent attributes of the samples that could be considered to interact with the main condition, then one can account for interactions by including an additional term in the regression. An interaction between variables occurs when the dependence of the parameter estimates (mean counts or saturation) on the main condition variable is influenced by the value of another attribute (e.g. treatment of the samples), which can cause the coefficients for a condition to differ as a function of the interacting variable. For example, suppose we have samples of two strains (e.g. knockout vs wildtype) that have been cultured over several time points (e.g. 1–3 weeks). Then we might naturally expect that there will be variability across all 6 conditions (considered independently), e.g. due to differences between time points. In fact, some genes might exhibit a gradual increase or decrease in counts over time, which could expressed as a slope (i.e. as a regression coefficient for time, treated as a continuous attribute). For the purpose of addressing the main question, which is whether there is a systematic difference in insertion counts between the strains, we want to discount (or adjust for) the effects of time. However, the difference between the strains could manifest itself as a difference in the slopes (timedependent effect on the counts), which might be different for each strain. Treating covariates as interactions allows us to capture and test for these effects by incorporating separate coefficients for each combination of values (i.e. independent slopes for each strain).
Interactions can be incorporated in the ZINB regression model by including the product of the conditions with the interacting covariates in the regression for M_{1}.
where X_{g}⊗W_{g} represents columnwise products for each pair of columns in X_{g} and W_{g} (resulting in a matrix of dimensions m×(n·k) for n conditions and k interaction variables). Thus, if there is a general trend in the counts for a gene over time, it will be captured by the coefficients of W_{g} (vectors β_{g} and δ_{g}), included in both models. However, if the variables X_{g} and W_{g} interact, then the coefficients of the product term (λ_{g} and η_{g}) will be nonzero, allowing the slopes to differ between the strains. Importantly, because the objective is to test for the significance of the interaction, in the likelihoodratio test, the additive term for the covariate is retained in the null model but not the product, thus assessing the specific impact of the interaction on reducing the likelihood, while factoring out the information (i.e. general trend) attributable to the interaction variable on its own (independent of the main condition).
Treatment of mice
Mice were anesthetized with 5% isoflurane and sacrificed by cervical dislocation.
Results
Likelihood ratio tests for suitability of ZINB as a model for TnSeq data
To establish the suitability of ZINB as a model for TnSeq data, we compared it to ANOVA and Negative Binomial (without special treatment of zeros) using likelihood ratio tests. The data we used for these tests consisted of 2 replicates of an M. tuberculosis H37Rv TnSeq library grown on glycerol compared to 3 replicates grown on cholesterol [29]. This data was originally used to identity genes in the H37Rv genome that are necessary to catabolize cholesterol, a unique carbon source available within the restricted intracellular environment of macrophages, on which growth and survival of the bacilli depends [30]. The data (insertion counts at TA sites) were normalized by the TTR method [15].
First, we compared ZINB regression to simple ANOVA (based on a generalized linear model using Gaussian likelihood functions). Both models were used to fit the insertioncount observations at the TA sites in each gene, conditioned on the carbon source (glycerol vs. cholesterol). ZINB had higher likelihood than ANOVA for all genes (except five, for which they were nearly equal). Because ZINB and ANOVA are not nested models, we used the Vuong test [31] to evaluate statistical significance of the difference in likelihoods. Furthermore, we applied the BenjaminiHochberg procedure to adjust the pvalues for an overall falsediscovery rate (FDR) of 5%. ZINB was found to produce a significantly better fit than ANOVA for 3185 out of 3282 genes (97%, using p_{adj}<0.05 as a criterion).
Next, we performed a likelihood ratio test (LRT) of ZINB regression compared to regular NB (as a generalized linear model). Because ZINB has more parameters (and these are nested models), the likelihood for ZINB was again higher than NB for nearly every gene. To evaluate which differences were significant, correcting for the different number of parameters, we computed pvalues of the loglikelihood ratio using the χ^{2} distribution, with degrees of freedom equal to the difference in number of model parameters (df=5−3=2). After FDRcorrection, ZINB fit the data significantly better than NB for 2796 genes out of 3282 (85%) genes evaluated. For the rest of the genes, the likelihoods of the two models were indistinguishable. This supports the hypothesis that modeling the fraction of sites with no insertions (“zeros”) separately from the magnitudes of counts at sites with insertions enables ZINB to fit TnSeq data better.
Pairwise comparisons of conditional essentiality using ZINB
We evaluated ZINB, resampling, and ANOVA on data from an M. tuberculosis TnSeq library grown invitro compared to infections in a mouse model. A highsaturation Himar1 Tn library generated in H37Rv was inoculated into six C57BL/6 mice (8–12 week old males, obtained from Jackson Laboratory, Bar Harbor, ME) via the intravenous route at a dose that deposits a representative sample of the library (>100,000 CFU) in the spleen. After four weeks, the bacteria present in the spleen of each animal were recovered by plating on 7H10 agar (with kanamycin). As a control, the original library was replated in parallel. A total of 0.41.5 million reads was mapped to TA sites for each sample, and all samples had ∼50% saturation (all but one were in the 42–58% range; see Table 1; raw insertion counts provided in Additional file 3). The data was normalized using TTR (Trimmed Total Readcount) normalization [15], and the mean count of all datasets after normalization was uniform, around 100.
When ZINB regression method was run on the two conditions (in vitro vs. in mice), 237 conditional essentials were identified (Additional file 1). This included genes wellknown to be essential in vivo [32], including the Mce4 cluster, biotin biosynthesis (bioABDF1), ESX1, the NRPS (nonribosomal peptide synthase) cluster (Rv0096Rv0101), and cholesterol catabolism genes (e.g. FadE5, bpoC, hsaD). Some genes involved in mycobactindependent iron acquisition (irtAB, mmpL4/S4) were essential in vivo, though none of the 14 subunits of mycobactin synthase (Mbt) were. A possible explanation is that mutants with disruptions in Mbt genes are importing extracellular mycobactin produced by other mutants at the site of infection with insertions in genes other than Mbt synthase. In contrast to infections with a homogeneous knockout mutant of genes like MbtD, mycobactin synthase transposon mutants in the Tn library can survive in vivo because it is a heterogeneous pool. However, individual clones with defects in mycobactin secretion/uptake (e.g. Tn insertions in irtAB and mmpL4/S4) cannot survive, despite the availablility of mycobactin in the environment.
The results of ZINB can be compared to the permutation test (’resampling’ in TRANSIT), which is a nonparameteric comparison of the difference in mean counts for each gene between the two conditions. Resampling yielded 186 genes with significant differences between invitro and invivo. (Pvalues for all tests were corrected for a falsediscovery rate of <5% using the BenjaminiHochberg procedure [28]). Almost all of these (160, 86%) were contained in the hits from ZINB (see Fig. 2). Only 26 genes identified by resampling were not detected by ZINB. Many of these were marginal cases; 21 of 26 had ZINB adjusted pvalues between 0.05 and 0.2.
ANOVA was also applied to the same data, and it only detected 167 genes with significant variability between the two conditions. The genes detected by ANOVA were almost entirely contained in the set of genes detected by resampling (166 out of 167), but resampling found 20 more varying genes. In comparison, ANOVA only finds 63% of the varying genes detected by ZINB (150 out of 237). We speculate that the lower sensitivity of ANOVA is due to the nonnormality of insertioncount data, which is supported by simulation studies [23], whereas resampling, being a nonparametric test, does not require normality.
The advantage of ZINB is that it is capable of detecting more conditional essentials because it can take into account changes in either the local magnitude of counts or local insertion density. It detects 76 more conditional essentials and growthdefect genes than resampling, and 88 more than ANOVA. Among these are genes in the Mce1 cluster (specifically mce1B, mce1C, and mce1F, see Fig. 3). Mce1 (Mammalian Cell Entry 1) is a membrane transporter complex that has been shown to be essential for growth in vivo (e.g. knockout mutants are attenuated for survival in mice [32, 33]). The Mce1 locus spans Rv0166Rv0178 (as an operon), containing mce1Amce1F, which are 5 subunits that form a membrane complex [34]; the rest of the proteins in the locus (yrb1AB, mam1ABCD) are also membraneassociated [35]. The Mce1 genes show a modest reduction in counts (∼25% reduction; mean log_{2}foldchange=0.2, range=0.87..0.21), which was not sufficient to meet the adjusted pvalue cutoff for resampling. However, the genes also exhibit a noticable reduction in local saturation in this locus (from ∼88% saturation invitro to ∼61% invivo on average), and the combination of these two depletion effects is sufficient to make them significant in the ZINB model. This is consistent with our understanding of the biological role of Mce1, which acts as a transporter to enhance uptake of fatty acids as a carbon source from the host environment [36, 37].
Similar examples include esxB, a secreted virulence factor, fcoT (thioesterase for nonribosomal peptide synthase NRPS), lysX (lysinylation of cellwall glycolipids [38]), pitA (involved in phosphate transport [39]), and fadE33, hsaB and kshB, which are involved in cholesterol catabolism [29]. All of these genes have been previously shown to be essential for infection in an animal model, but did not meet the threshold for significance based on resampling. The reason that several of these genes (like fadE33 and esxB, shown in Fig. 4) are detected by ZINB but not resampling is due primarily to changes in saturation; the nonzero mean (NZmean) changes only slightly, but the saturation drops significantly in each case; greater depletion of insertion mutants indicates reduced fitness. This highlights the value of treating the saturation parameter separately in the ZINB model. Another gene that exhibits this effect is SecA2. SecA2 is an alternative ATPase component of the Sec secretion pathway and is thought to help secrete other virulence factors inside the macophage [40]. SecA2 mutants have a weak phenotype in vitro (“growth defect” gene; [41]), so that the mean counts and saturation are low compared to other genes invitro (e.g. only 20% saturation, compared to ∼50% globally); however, it becomes almost completely devoid of insertions invivo (Fig. 4). While SecA2 was not detected as significant by either resampling or ANOVA, it was identified as conditionally essential by ZINB.
Although ZINB identifies more genes (76) to be statistically significant than resampling on this dataset, it is unlikely that this excess is attributable to a large number of false positives. To evaluate the susceptibility of ZINB to generate false positives, we performed a comparison between replicates from the same condition by dividing the 6 invitro datasets into 2 groups (3+3). In this case, we expect to find no hits because there are (presumably) no biological differences. ZINB analysis identified only 15 genes as significantly different (p_{adj}<0.05), which suggests that the overall false positive rate for ZINB is quite low and probably reflects noise inherent in the data itself. Even resampling, when run on the same data (3 invitro vs. 3 invitro) for comparison, yielded 9 significant genes, which are presumably false positives.
Adjustment for differences in saturation among datasets
In real TnSeq experiments, it frequently happens that some datasets are less saturated than others. For example, there is often loss of diversity when passaging a Tn library through an animal model, possibly due to bottlenecking during infection or dissemination to target organs. TTR normalization was developed to reduce the sensitivity of the resampling method to differences in saturation levels of datasets. However, this type of normalization would be expected to exacerbate the detection of differences by ZINB. To compensate for this, we include offsets in the models that take into account the global level of saturation and nonzero mean for each dataset.
To evaluate the effect of the correction for saturation of datasets, we created artificiallydepleted versions of some of the replicates analyzed in the previous Section (see Table 1). Specifically, for A1, A2, B1, and B2, we created “halfsaturated” versions of each by randomly (and independently) setting 50% of the sites to 0. Since each of the original datasets had around 50% saturation to begin with, the halfsaturated version have a saturation of approximately 25%.
Initially, we compared the original versions of A1 and A2 to B1 and B2 (scenario 1), with their observed level of saturation. The number of hits detected by ZINB (73) is similar to resampling (64). Recall that resampling with all 12 datasets yielded 186 significant genes; the number of hits is lower overall in this experiment because only 2 replicates of each were used, instead of 6. Then we compared fullysaturated versions of A1 and A2 to halfsaturated B1 and B2 (scenario 2). ZINBSA ^{+} (with adjustment for saturation) identified nearly the same number of conditional essentials as resampling: 121 vs. 108. (see Table 2). The results are similar when halfsaturated version of datasets A1 and A2 are used (scenario 3). However, when saturation adjustment is turned off, ZINBSA ^{−} produces dramatically more hits in case of wide saturation differences (2668 and 1139, boldfaced in Table 2). The reason for this is that, by artificially reducing the saturation of either datasets A1 and A2 or B1 and B2, it amplifies the apparent differences in local saturation for many genes, to which ZINB is sensitive. The number of significant hits (conditional essentials) detected when halfsaturated versions of all four datasets are used (scenario 4) is naturally lower (8 and 30), because there is much less information (fewer observations) available, making it more challenging for many genes to achieve statistical significance. Interestingly, when halfsaturated versions of all four datasets are used, ZINBSA ^{−} works as expected, finding 37 hits (scenario 4), similar to resampling.
Application to datasets with multiple conditions
In a prior study [21], a Himar1 transposoninsertion library in H37Rv was treated with subinhibitory concentrations of 5 different drugs: rifampicin (RIF), isoniazid (INH), ethambutol (EMB), meropenem (MERO), and vancomycin (VAN), all grown in 7H9 liquid medium. Combined with the untreated control, this makes 6 conditions, for which there were 3 replicate TnSeq datasets each (except INH; see Table 3). The TnSeq datasets had a high saturation of 60–65% (percent of TA sites with insertions). In the original analysis, each drugtreated sample was compared to the control using resampling [21]. Several conditionally essential genes were identified for each drug. Some genes were uniquely associated with certain drugs (for example, blaC, the betalactamase, was only required in the presence of meropenem), and other genes were shared hits (i.e. conditionally essential for more than one drug). Only one gene, fecB, was essential for all drugs, and its requirement for antibiotic stress tolerance was validated through phenotyping of a knockout mutant.
The raw datasets in this experiment have a number of sporadic outliers, consisting of isolated TA sites with observed insertion counts in one sample that are >10 times higher than the others (even in other replicates of the same condition). Outliers can cause the appearance of artificial variability among conditions (inflating the mean count in one condition over the others in the ZINB model). Therefore, the raw datasets were normalized using the BetaGeometric Correction (BGC) option in Transit, which is a nonlinear transformation that reduces skew (extreme counts) in readcount distributions [42].
As a preliminary assessment, we did resampling of each drug condition against the untreated control, recapitulating the results in [21]. The number of conditional essentials is shown in Table 3. fecB was again observed to be the only hit in the intersection of all tests. We also observe other hits that can be rationalized, such as conditional essentiality of blaC (betalactamase) in presence of meropenem.
Next, variability among all 6 conditions was analyzed using several different methods. First, a simplistic but practical approach was taken by performing pairwise analyses of conditional essentiality using resampling (the permutation test for significant differences per gene in TRANSIT). For six conditions, there are 15 pairwise comparisons. Resampling was run independently on each pair of conditions, and the pvalues were adjusted independently each time. By taking the union of conditionallyessential genes over all 15 pairwise comparisons, a total of 276 distinct genes was identified to have varying counts between at least one pair of conditions (Table 4).
However, this straightforward approach is unfair because the pvalues were adjusted independently. A more rigorous approach would be to perform resampling on all ∼4000 genes for all 15 pairs of conditions, and then apply the pvalue adjustment once on the pool of all ∼60,000pvalues. When this is done, there are 267 significantly varying genes (using the lowest adjusted pvalue for each gene). Thus, proper use of FDR correction results in a slightly more conservative list of hits.
The main problem with this approach is that it requires resampling to be run separately for all pairs of conditions, which does not scale up well as the number of conditions increases. As an alternative, ANOVA can be used to compare the counts across all six conditions simultaneously. When ANOVA is run (and the pvalues are adjusted using the BenjaminiHochberg procedure), only 234 significantly varying genes are identified. The 234 genes identified by ANOVA are almost completely contained in the set of those identified by pairwise resampling (267) (Fig. 5). Thus, ANOVA has lower sensitivity and underreports genes with significant variability.
Finally, to identify genes that exhibit variability across all 6 conditions, we used ZINB regression (Additional file 2). 307 genes were found to exhibit significant variation by ZINB, including genes identified in the original study, such as fecB, blaC, pimE (mannosyltransferase), and secA2 (protein translocase) [21]. Another example of a gene found by both ZINB and pairwise resampling is cinA (Rv1901), which was specifically required for cultures exposed to subMIC concentrations of INH (Fig. 6a). cinA is thought to be an NADdependent enzyme that plays a role in nucleoside recycling [44, 45], and thus it could confer tolerance to INH, e.g. through a mechanism involving maintaining the intracellular NADH/NAD ^{+} ratio [46].
Compared to ANOVA, ZINB finds significantly more varying genes (307 compared to 234, 31% more) (see Fig. 5). Put another way, ANOVA only identifies 76% of the genes with variability identified by ZINB. ZINB identified slightly more varying genes than pairwise resampling (71 additional genes). Many of these genes are on the margin and have adjusted pvalues just slightly over the cutoff for resampling; 50% (36 out of 71 genes) have 0.05<p_{adj}<0.2 for resampling. Among the remaining genes, one interesting case detected uniquely by ZINB is sigE (Fig. 6b). While the mean insertion counts do not vary much for this gene (ranging between 17 and 27), the saturation level varies significantly among drug exposures, from nearly fully saturated in the control and INH conditions (88–97%), to highly depleted of insertions for RIF, MER and EMB (29–52 %). This reduction suggests that sigE is required for tolerance of certain drugs. Indeed, this recapitulates the growth defects observed in a ΔsigE mutant when exposed to various drugs [47]. sigE is an alternative sigma factor that is thought to play a regulatory role in response to various stresses. This effect was only observable with a model that treats variations in saturation separately from magnitiudes of insertions.
Discussion
TnSeq has proven to be an effective tool for genomewide assessment of functional requirements and genetic interactions in a wide range of prokaryotes. It is now being expanded to largerscale experiments, such as profiling growth in media supplemented with an array of carbon sources or nutrients, or exposure to a variety of antibiotics/inhibitors, growth in a panel of different cell types, or infections in a collection of modelanimals with different genetic backgrounds. Indeed, recent methods like BarSeq make such experiments efficient through barcoding of libraries, enabling highly multiplexed sequencing [48]. ZINB regression offers a convenient way of assessing variability of insertion counts across multiple conditions. It is more efficient than pairwise resampling (or permutation tests). Resampling is designed for twoway comparisons. Attempting to perform resampling between all pairs of conditions does not scaleup well, as the number of comparisons increases quadratically with number of conditions (for example, n=20 conditions requires n(n−1)/2=190 pairwise comparisons). In addition to the computational cost, there is a risk of loss of significance due to the pvalue adjustment at the end, to control the overall false discovery rate.
ZINB regression also performs better than ANOVA, a classic statistical test for conditionaldependence among observations from multiple groups. Our experimental results show that ANOVA is generally less sensitive than ZINB, detecting only a subset of varying genes, possibly because ANOVA relies on an assumption of normality [23]. Because most datasets are not fully saturated (due to lack of diversity of the library, bottlenecking, etc), TnSeq data usually has an overabundance of zeros that cannot be approximated well with simpler distributions like Poisson or Binomial. The ZINB distribution, being a mixture model of a Negative Binomial and a zero component, allows the variance of the readcounts to be independent of the mean (unlike the Poisson) and allows sites with a count of zero to be treated separately (not all zeros are counted toward the mean). We showed with a likelihood ratio test that ZINB is a much more suitable model for TnSeq data (insertion counts) than ANOVA or NB (even when taking into account differences in the number of parameters).
To capture the conditional dependence of the parameters, the ZINB model is implemented as a regression model (with a loglink function), with vectors of coefficients to represent how the insertion counts vary across conditions. Thus the zerocomponent captures the changes in the level of saturation of a gene across conditions, and the NB component captures how the magnitudes of counts vary across conditions. Because of the zerocomponent included in the ZINB model, there is a risk that comparisons among datasets with different levels of saturation could result in a systematic inflation of the number of false positives (i.e. genes that look like they vary because of differences in the fraction of TA sites hit in different libraries). In fact, depending on the normalization procedure used, there can be a similar bias in the magnitudes of read counts that also causes more false positives when comparing datasets with widelyvarying saturation. To compensate for this, we include “offsets” in the regression for the overall saturation and nonzero mean count for each dataset. Thus the coefficients learned in the model actually represent deviations in count magnitudes and saturation (local to each gene) relative to the genomewide averages for each dataset. We showed in a synthetic experiment that failing to adjust for saturation differences leads to a large increase in the falsepositive rate when comparing datasets with unbalanced levels of saturation. Moreover, when comparing replicates of the same condition against each other (which should not have any biological differences), we showed that ZINB detects almost no significantly varying genes, as expected, suggesting that it does not have a propensity to generate false positives. A potential limitation of ZINB, is that it can be sensitive to outliers. However, the impact of spurious high counts can be ameliorated by nonlinear normalization methods like the BetaGeometric correction [42], or other techniques like winsorization [49].
An important theoretical assumption made in the ZINB approach is that we model effects on the mean insertion counts at the genelevel, and treat differences among individual TA sites as random. Thus we pool counts at different TA sites within a gene, treating them as independent identically distributed (i.i.d.) samples. It is possible that different TA sites might have different propensities for insertion, for example, due to sequencedependent biases. However, most Himar1 TnSeq studies to date have viewed the presence/abundance of insertions at TA sites as effectively random, resulting from stochastic processes during library construction (i.e. transfection), and no strong sequence biases have yet been identified. Early work on Himar1 transposon libraries in E. coli suggested that insertions were weakly influenced by local DNA bendability [50]. Subsequently, a small subset (<9%) of TA sites in nonessential regions was found to be nonpermissive for insertion, having the consensus (GC)GnTAnC(GC) [51]. But aside from these, no sequence bias has been found to explain differences in Himar1 insertions at different TA sites. In the future, if a sequencedependent insertion bias were discovered, it is conceivable that the ZINB model could be modified to include conditional dependence on individual sites (or perhaps local sequence features). However, estimating counts at individual sites is subject to noise and likely to have high uncertainty, because, in many experiments, there are only one or two replicates of each condition, and hence only 12 observations per site. In the current approach, we pool counts from different TA sites in a gene when estimating the nonzero mean for each gene. An advantage of this simplification is that larger genes with more TA sites benefit from higher statistical confidence due to larger numbers of observations.
The significance of variability in each gene is determined by a likelihood ratio test, which identifies significantly variable genes based on the ability of using distinct parameters for each condition to increase the likelihood of the model, compared to a conditionindependent null model (based on fitting parameters to the pooled counts, regardless of condition). A disadvantage of this approach is that the likelihood ratio test does not take into account certainty of the model parameter estimates. Therefore, Transit automatically filters out genes with insertions at only a single TA site (i.e. refuse to call them conditionally variable), because the coefficients of the model are too easily fit in a way that makes the likelihood look artificially high. By default our implementation requires at least 2 nonzero observations per condition to determine whether a gene exhibits significant variability across conditions. As with RNAseq, however, inclusion of multiple replicates increases the number of observations per gene, and this is a strongly recommended practice [25]. A more rigorous approach in Transit might be to apply a Wald test on the significance of the coefficients, which would also reveal cases where there are too few observations to be confident in the parameter estimates. More generally, a Bayesian approach might be better able to adjust (shrink) parameter estimates in cases of sparse data by combining them with prior distributions.
One advantage of the ZINB regression framework is that it can take into account additional information about samples in the form of covariates and interactions. This is commonly done in RNAseq for experiments with more complex design matrices [52]. Examples include relationships among the conditions or treatments, such as class of drug, concentration, time of treatment/exposure, medium or nutrient supplementation, or genotype (for animal infections). By incorporating these in the model (with their own coefficients), it allows the model to factor out known (or anticipated) effects and focus on identifying genes with residual (or unexplained) variability. It can also be useful for eliminating nuisances like batch effects.
In theory, the ZINB regression method should work on TnSeq data from libraries generated with other transposons, such as Tn5 [1]. Tn5 insertions occur moreorless randomly throughout the genome (like Himar1), but are not restricted to TA dinucleotides, though Tn5 appears to have a slight preference for insertions in A/Trich regions [53]). Thus ZINB regression could be used to capture conditiondependent differences in magnitudes of counts or density of insertions in each gene. However, Tn5 datasets generally have much lower saturation (typically <10%), since every coordinate in the genome is a potential insertion site, and thus the assumptions underlying the normalization procedure we use for Himar1 datasets (TTR) might not be satisfied for Tn5 datasets, requiring different normalization.
Of course, as with ANOVA, identifying genes that vary significantly across conditions is often just the first step and requires followup analyses to determine specific conditiondependent effects. For example, we observed that the NADdependent, nucleosiderecycling gene cinA was not just variable, but specifically required for tolerance of isoniazid. One could employ methods such as Tukey’s range test [54] to drill down and identify significantly different pairs of conditions. Another approach would be to use principlecomponent analysis (PCA) to uncover trends/patterns among TnSeq profiles and identify clusters of conditions producing similar effects genomewide [55].
Our results establish the suitability of ZINB as a model for TnSeq data (insertion counts). Examples of genes where the phenotype is primarily observed in the saturation of the readcounts, such as SecA2 and SigE, highlight the advantage of modeling conditiondependent effects on both the magnitudes of counts in a gene and local level of saturation independently. Thus, ZINB regression is an effective tool for identifying genes whose insertion counts vary across multiple conditions in a statistically significant way.
Conclusions
We have presented a novel statistical method for identifying genes with significant variability of insertion counts across multiple conditions based on ZeroInflated Negative Binomial (ZINB) regression. The ZINB distribution was demonstrated to be appropriate for modeling transposon insertion counts because it captures differences in both the magnitudes of insertion counts (through a Negative Binomial) and the local saturation of each gene (through the proportion of TA sites with counts of 0). The method is implemented in the framework of a Generalized Linear Model, which allows multiple conditions to be compared simultaneously, and can incorporate additional covariates in the analysis. Thus it should make it a useful tool for screening for genes that exhibit significant variation of insertion counts (and hence essentiality) across multiple experimental conditions.
Availability of data and materials
The methods described in this paper have been implemented in TRANSIT [15], which is publicly available on GitHub (https://github.com/madlab/transit) and can be installed as a python package (tnseqtransit) using pip. The data from “Pairwise comparisons of conditional essentiality using ZINB” section (files with insertion counts from mouse infections), along with results files (spreadsheets with significant genes based on ZINB analysis), are provided in the Supplemental Material online.
Abbreviations
 BGC:

BetaGeometric Correction
 CFU:

Colony Forming Units
 FDR:

False Discovery Rate
 LRT:

Likelihood Ratio Test
 MIC:

Minimum Inhibitory Concentration
 NB:

Negative Binomial
 NZmean:

NonZero mean
 TnSeq:

transposon insertion mutant library sequencing
 TTR:

Total Trimmed Readcount normalization
 ZINB:

ZeroInflated Negative Binomial
References
 1
van Opijnen T, Camilli A. Transposon insertion sequencing: a new tool for systemslevel analysis of microorganisms. Nat Rev Microbiol. 2013; 11(7):435–42.
 2
Lampe DJ, Churchill ME, Robertson HM. A purified mariner transposase is sufficient to mediate transposition in vitro. Eur Mol Biol Organ J. 1996; 15(19):5470–9.
 3
Gawronski JD, Wong SM, Giannoukos G, Ward DV, Akerley BJ. Tracking insertion mutants within libraries by deep sequencing and a genomewide screen for Haemophilus genes required in the lung. Proc Natl Acad Sci USA. 2009; 106(38):16422–7.
 4
Fu Y, Waldor MK, Mekalanos JJ. Tnseq analysis of vibrio cholerae intestinal colonization reveals a role for t6ssmediated antibacterial activity in the host. Cell Host Microbe. 2013; 14(6):652–63.
 5
Gallagher LA, Shendure J, Manoil C. Genomescale identification of resistance functions in pseudomonas aeruginosa using tnseq. mBio. 2011; 2(1):00315–10.
 6
Long JE, DeJesus M, Ward D, Baker RE, Ioerger TR, Sassetti CM. Identifying essential genes in Mycobacterium tuberculosis by global phenotypic profiling In: Lu LJ, editor. Gene Essentiality. Methods in Molecular Biology. New York: Humana Press: 2015. p. 79–95.
 7
Zomer A, Burghout P, Bootsma HJ, Hermans PW, van Hijum SA. ESSENTIALS: software for rapid analysis of high throughput transposon insertion sequencing data. PLoS ONE. 2012; 7(8):43012.
 8
DeJesus MA, Zhang YJ, Sassetti CM, Rubin EJ, Sacchettini JC, Ioerger TR. Bayesian analysis of gene essentiality based on sequencing of transposon insertion libraries. Bioinformatics. 2013; 29(6):695–703.
 9
Solaimanpour S, Sarmiento F, Mrazek J. Tnseq explorer: a tool for analysis of highthroughput sequencing data of transposon mutant libraries. PLoS ONE. 2015; 10(5):0126070.
 10
Zhang YJ, Ioerger TR, Huttenhower C, Long JE, Sassetti CM, Sacchettini JC, Rubin EJ. Global assessment of genomic regions required for growth in Mycobacterium tuberculosis. PLoS Pathog. 2012; 8(9):1002946.
 11
Deng J, Su S, Lin X, Hassett DJ, Lu LJ. A statistical framework for improving genomic annotations of prokaryotic essential genes. PLoS ONE. 2013; 8(3):58178.
 12
DeJesus MA, Ioerger TR. A Hidden Markov Model for identifying essential and growthdefect regions in bacterial genomes from transposon insertion sequencing data. BMC Bioinformatics. 2013; 14:303.
 13
Pritchard JR, Chao MC, Abel S, Davis BM, Baranowski C, Zhang YJ, Rubin EJ, Waldor MK. ARTIST: highresolution genomewide assessment of fitness using transposoninsertion sequencing. PLoS Genet. 2014; 10(11):1004782.
 14
van Opijnen T, Bodi KL, Camilli A. Tnseq: highthroughput parallel sequencing for fitness and genetic interaction studies in microorganisms. Nat Methods. 2009; 6(10):767–72.
 15
DeJesus MA, Ambadipudi C, Baker R, Sassetti C, Ioerger TR. TRANSIT–A Software Tool for Himar1 TnSeq Analysis. PLoS Comput Biol. 2015; 11(10):1004401.
 16
Santiago M, Matano LM, Moussa SH, Gilmore MS, Walker S, Meredith TC. A new platform for ultrahigh density Staphylococcus aureus transposon libraries. BMC Genomics. 2015; 16:252.
 17
Zhao L, Anderson MT, Wu W, T Mobley HL, Bachman MA. TnseqDiff: identification of conditionally essential genes in transposon sequencing studies. BMC Bioinformatics. 2017; 18(1):326.
 18
Zhang YJ, Reddy MC, Ioerger TR, Rothchild AC, Dartois V, Schuster BM, Trauner A, Wallis D, Galaviz S, Huttenhower C, Sacchettini JC, Behar SM, Rubin EJ. Tryptophan biosynthesis protects mycobacteria from CD4 Tcellmediated killing. Cell. 2013; 155(6):1296–308.
 19
Wetmore KM, Price MN, Waters RJ, Lamson JS, He J, Hoover CA, Blow MJ, Bristow J, Butland G, Arkin AP, Deutschbauer A. Rapid quantification of mutant fitness in diverse bacteria by sequencing randomly barcoded transposons. mBio. 2015; 6(3):00306–15.
 20
DeJesus MA, Nambi S, Smith CM, Baker RE, Sassetti CM, Ioerger TR. Statistical analysis of genetic interactions in TnSeq data. Nucleic Acids Res. 2017; 45(11):e93–e93. https://doi.org/10.1093/nar/gkx128.
 21
Xu W, DeJesus M, Rücker N, Engelhart C, Wright M, Healy C, Lin K, Wang R, Park S, Ioerger T, Schnappinger D, Ehrt S. Chemical genetic interaction profiling reveals determinants of intrinsic antibiotic resistance in mycobacterium tuberculosis. Antimicrob Agents Chemother. 2017; 61(22):01334–17.
 22
Yang G, Billings G, Hubbard T, Park J, YinLeung K, Liu Q, Davis B, Zhang Y, Wang Q, Waldor MK. Timeresolved transposon insertion sequencing reveals genomewide fitness dynamics during infection. mBio. 2017; 8(5):01581–17.
 23
Lantz B. The impact of sample nonnormality on anova and alternative methods. Br J Math Stat Psychol. 2013; 66(2):224–44.
 24
Blades NJ, Broman KW. Estimating the number of essential genes in a genome by random transposon mutagenesis. Technical Report MSUCSE002, Dept. of Biostatistics Working Papers, Johns Hopkins University. 2002.
 25
Anders S, Huber W. Differential expression analysis for sequence count data. Genome Biol. 2010; 11(10):106.
 26
LloydSmith J. O. Maximum likelihood estimation of the negative binomial dispersion parameter for highly overdispersed data, with applications to infectious diseases. PLoS ONE. 2007; 2(2):180.
 27
Zeileis A, Kleiber C, Jackman S. Regression models for count data in R. J Stat Softw. 2007; 27(8):1–25.
 28
Benjamini Y, Yekutieli D. False discovery rate controlling confidence intervals for selected parameters. J Am Stat Assoc. 2005; 100(469):71–81.
 29
Griffin JE, Gawronski JD, DeJesus MA, Ioerger TR, Akerley BJ, Sassetti CM. Highresolution phenotypic profiling defines genes essential for mycobacterial growth and cholesterol catabolism. PLoS Pathog. 2011; 7(9):1002251. https://doi.org/10.1371/journal.ppat.1002251.
 30
Pandey AK, Sassetti CM. Mycobacterial persistence requires the utilization of host cholesterol. Proc Natl Acad Sci USA. 2008; 105(11):4376–80.
 31
Vuong QH. Likelihood ratio tests for model selection and nonnested hypotheses. Econometrica. 1989; 57:307–33.
 32
Sassetti CM, Rubin EJ. Genetic requirements for mycobacterial survival during infection. PNAS. 2003; 100(22):12989–94.
 33
Gioffré A, Infante E, Aguilar D, Santangelo M, Klepp L, Amadio A, Meikle V, Etchechoury I, Romano M, Cataldi A, Hernández R, Bigi F. Mutation in mce operons attenuates mycobacterium tuberculosis virulence. Microbes Infect. 2005; 7(3):325–34.
 34
Ekiert D, Bhabha G, Isom G, Greenan G, Ovchinnikov S, Henderson I, Cox J, Vale R. Architectures of lipid transport systems for the bacterial outer membrane. Cell. 2017; 169(2):273–85.
 35
Casali N, Riley L. A phylogenomic analysis of the actinomycetales mce operons. BMC Genomics. 2007; 8:60.
 36
Forrellad M, McNeil M, Santangelo L, Blanco F, García E, Klepp L, Huff J, Niederweis M, Jackson M, Bigi F. Role of the mce1 transporter in the lipid homeostasis of mycobacterium tuberculosis. Tuberculosis. 2014; 94(2):170–7.
 37
Nazarova E, Montague C, La T, Wilburn K, Sukumar N, Lee W, Caldwell S, Russell D, VanderVen B. Rv3723/luca coordinates fatty acid and cholesterol uptake in mycobacterium tuberculosis. eLife. 2017; 6:26969.
 38
Maloney E, Stankowska D, Zhang J, Fol M, Cheng QJ, Lun S, Bishai WR, Rajagopalan M, Chatterjee D, Madiraju MV. The twodomain lysx protein of mycobacterium tuberculosis is required for production of lysinylated phosphatidylglycerol and resistance to cationic antimicrobial peptides. PLoS Pathog. 2009; 5(7):1000534.
 39
Tischler AD, Leistikow RL, Kirksey MA, Voskuil MI, McKinney JD. Mycobacterium tuberculosis requires phosphateresponsive gene regulation to resist host immunity. Infect Immun. 2013; 81:317–28.
 40
Sullivan JT, Young EF, McCann JR, Braunstein M. The Mycobacterium tuberculosis SecA2 system subverts phagosome maturation to promote growth in macrophages. Infect Immun. 2011; 80(3):996–1006.
 41
Sassetti CM, Boyd DH, Rubin EJ. Genes required for mycobacterial growth defined by high density mutagenesis. Mol Microbiol. 2003; 48(1):77–84. https://doi.org/10.1046/j.13652958.2003.03425.x.
 42
DeJesus MA, Ioerger TR. Normalization of transposonmutant library sequencing datasets to improve identification of conditionally essential genes. J Bioinform Comput Biol. 2016; 14(3):1642004.
 43
Lakshminarayana SB, Huat TB, Ho PC, Manjunatha UH, Dartois V, Dick T, Rao SP. Comprehensive physicochemical, pharmacokinetic and activity profiling of antiTB agents. J Antimicrob Chemother. 2015; 70(3):857–67.
 44
Karuppiah V, Thistlethwaite A, Dajani R, Warwicker J, Derrick JP. Structure and mechanism of the bifunctional CinA enzyme from Thermus thermophilus. J Biol Chem. 2014; 289(48):33187–97.
 45
Stehr M, Elamin AA, Singh M. Pyrazinamide: the importance of uncovering the mechanisms of action in mycobacteria. Expert Rev AntiInfect Ther. 2015; 13(5):593–603.
 46
Vilchèze C, Torin R, Weisbrod BC, Kremer L, Manzour H, Hazbón FW, Alland D, Sacchettini JC, Jacobs WR. Altered NADH/NAD+ ratio mediates coresistance to isoniazid and ethionamide in mycobacteria. Antimicrob Agents Chemother. 2005; 49(2):708–20.
 47
Pisu D, Provvedi R, Espinosa DM, Payan JB, Boldrin F, Palù G, HernandezPando R, Manganelli R. The alternative sigma factors sige and sigb are involved in tolerance and persistence to antitubercular drugs. Antimicrob Agents Chemother. 2017; 61(12):01596–17.
 48
Wetmore KM, Price MN, Waters RJ, Lamson JS, He J, Hoover CA, Blow MJ, Bristow J, Butland G, Arkin AP, Deutschbauer A. Rapid quantification of mutant fitness in diverse bacteria by sequencing randomly barcoded transposons. mBio. 2015; 6(3):00306–15.
 49
Dixon WJ. Simplified estimation from censored normal samples. Ann Math Stat. 1960; 31(2):385–91.
 50
Lampe DJ, Grant TE, Robertson HM. Factors affecting transposition of the himar1 mariner transposon in vitro. Genetics. 1998; 149(1):179–87.
 51
DeJesus MA, Gerrick ER, Xu W, Park SW, Long JE, Boutte CC, Rubin EJ, Schnappinger D, Ehrt S, Fortune SM, Sassetti CM, Ioerger TR. Comprehensive Essentiality Analysis of the Mycobacterium tuberculosis Genome via Saturating Transposon Mutagenesis. MBio. 2017; 8(1):e0213316.
 52
McCarthy DJ, Chen Y, Smyth GK. Differential expression analysis of multifactor RNASeq experiments with respect to biological variation. Nucleic Acids Res. 2012; 40(10):4288–97.
 53
Ason B, Reznikoff WS. Dna sequence bias during tn5 transposition. J Mol Biol. 2004; 335:1213–25.
 54
Tukey J. omparing individual means in the analysis of variance. Biometrics. 1949; 5(2):99–114.
 55
Hubbard TP, D’Gama JD, Billings G, Davis BM, Waldor MK. Unsupervised learning approach for comparing multiple transposon insertion sequencing studies. mSphere. 2019; 4(1):e0003119.
Acknowledgements
Not applicable.
Funding
This work was supported by NIH grant U19 AI107774 (TRI, SE, DS, and CMS). The sponsor played no role in the design, interpretation, or writing of this manuscript.
Author information
Affiliations
Contributions
SS implemented and tested the method described in this paper. MD and AS tested the method and editted the paper. CS performed the mouse infection experiment and reviewed the paper. RB, CMS, SE, and DS provided critical input and feedback on the method and design of the experiments, and also editted the paper. CS is Clare M. Smith and CMS is Christopher M. Sassetti. TI developed, implemented, and tested the method, and wrote the paper. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Treatment of mice used for experiementation in Section 3.2 was in accordance with the guidelines set forth by the Department of Animal Medicine of University of Massachusetts Medical School and Institutional Animal Care and Use Committee (IACUC; protocol #1649) and adhered to the laws of the United States and regulations of the Department of Agriculture. Mice were anesthetized with 5% isoflurane and sacrificed by cervical dislocation.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Subramaniyam, S., DeJesus, M.A., Zaveri, A. et al. Statistical analysis of variability in TnSeq data across conditions using zeroinflated negative binomial regression. BMC Bioinformatics 20, 603 (2019). https://doi.org/10.1186/s128590193156z
Received:
Accepted:
Published:
Keywords
 TnSeq
 Transposon insertion library
 Essentiality
 Zeroinflated negative binomial distribution
 Mycobacterium tuberculosis