BMC Bioinformatics BioMed Central Methodology article Modeling SAGE tag formation and its effects on data interpretation within a Bayesian framework

Background Serial Analysis of Gene Expression (SAGE) is a high-throughput method for inferring mRNA expression levels from the experimentally generated sequence based tags. Standard analyses of SAGE data, however, ignore the fact that the probability of generating an observable tag varies across genes and between experiments. As a consequence, these analyses result in biased estimators and posterior probability intervals for gene expression levels in the transcriptome. Results Using the yeast Saccharomyces cerevisiae as an example, we introduce a new Bayesian method of data analysis which is based on a model of SAGE tag formation. Our approach incorporates the variation in the probability of tag formation into the interpretation of SAGE data and allows us to derive exact joint and approximate marginal posterior distributions for the mRNA frequency of genes detectable using SAGE. Our analysis of these distributions indicates that the frequency of a gene in the tag pool is influenced by its mRNA frequency, the cleavage efficiency of the anchoring enzyme (AE), and the number of informative and uninformative AE cleavage sites within its mRNA. Conclusion With a mechanistic, model based approach for SAGE data analysis, we find that inter-genic variation in SAGE tag formation is large. However, this variation can be estimated and, importantly, accounted for using the methods we develop here. As a result, SAGE based estimates of mRNA frequencies can be adjusted to remove the bias introduced by the SAGE tag formation process.


Background
The Serial Analysis of Gene Expression (SAGE) is a highthroughput method to quantify the distribution of mRNA transcripts in a biological sample by sequencing a large set of tags [1]. As part of the process of generating tags, the SAGE method uses a restriction enzyme, termed the Anchoring Enzyme (AE), to cleave the double-stranded cDNA derived from mRNA transcripts. Cleavage by the AE generates sequence tags that are 3' adjacent to the cleavage site. Depending on the specific technique used, tags generally range from 10 to 20 base pairs in length. Tags are then concatenated into long fragments. This allows for the identification of multiple tags in a single sequencing reaction. In general, increasing tag length increases the probability that a tag can be unambiguously attributed to the transcript of a single gene. Such tags are considered to be 'informative' while tags which cannot be unambiguously attributed to a single gene (ambiguous tags) are 'uninformative' using current techniques.
As with all empirical techniques, SAGE has a number of technical disadvantages and advantages. Tag sampling can be thought of as a multinomial sampling process [2] where the distribution of a focal tag follows a binomial distribution [3,4] or is approximated with a Poisson distribution [5][6][7][8]. Because SAGE is a sampling based technique and only a limited number of tags are sequenced, sampling error is a major source of noise in SAGE data.
Consequently, SAGE provides little information on genes with low expression levels [2,9]. The uncertainty caused by limited sample sizes has been addressed by several methods. For example, [10] use a hierarchical Poisson mixture approach to deal with the uncertainty associated with genes with low expression levels, while [11] utilizes a mixture model to adjust for differences between genes with high and low expression levels. Other approaches have been developed to improve detection of differences between samples [6,12,13].
Another factor regarding the quality of SAGE data is ascertainment errors. For example, the use of PCR to amplify mRNA samples can introduce copying errors into tag sequences. Tags are identified via DNA sequencing, which is an imperfect processes. Depending on the tag's length, approximately 7-14% of all tags contain sequencing errors [9]. Consequently, a number of sophisticated techniques have been developed to correct for such errors [14][15][16].
In terms of advantages, in contrast to other methods for inferring mRNA expression levels, SAGE is useful for identifying actual genes, as opposed to pseudo-genes. Further, because SAGE measurements do not rely on florescence measurements, they do not suffer from saturation effects. As a result, SAGE data are considered to be more accurate than hybridization-based measurements for genes with high expression levels [17]. Furthermore, as the cost of sequencing decreases and the accuracy of its measurements increases, SAGE may become increasingly advantageous [18]. Independent of these strengths and weaknesses, one common aspect of current SAGE data analyses which has not been questioned is the implicit assumption that observed tag frequencies are suitable estimates of mRNA frequencies. However, as our results will demonstrate below, differences exist among genes in the probabilities of tag formation from their mRNA transcripts. Such differences must be taken into account in order to accurately estimate expression levels.
The probability of tag formation from an individual mRNA transcript is determined by the number of unambiguous tags formed from the AE sites in its transcript and the cleavage efficiency of AE in a given experiment. Because the number of AE sites can vary between genes and not all tags are unambiguous (i.e. informative), the probability of detecting a transcript can vary greatly from gene to gene. A clear case of such differences in tag formation probabilities is illustrated by considering genes without any AE sites. Because tag formation is dependent on AE cleavage, mRNA lacking such sites have zero probability of forming tags and, consequently, cannot be detected by SAGE. Our work extends this idea by recognizing that even amongst the set of genes with AE cleavage sites, not all genes are equally likely to form unambiguous, informative SAGE tags. We find that the probability of forming an informative tag is a complex function of the number of AE sites, the cutting efficiency of the AE, and the uniqueness of the tags produced. We also point out that a high AE cutting efficiency may not always be desirable.
Because there is inter-genic variation in tag formation probabilities, the proportion of tags in the population sampled experimentally (or tag pool, for short) is not equivalent to the proportion of a particular mRNA transcript in the cell (or mRNA pool, which is the actual pool of interest). This difference has, until now, been ignored by the current methods for SAGE data analysis. (Hereafter, we refer to such methods as "standard methods"). In contrast, the proposed method recognizes the difference between the observed tag frequencies and the actual frequency of transcripts. More specifically, we formally link tag and mRNA pools using a mechanistic model of how tags are formed from mRNA transcripts which naturally incorporates the tag formation probability of each gene. Intrinsically, genes with lower than average tag formation probabilities are underestimated while the converse holds for genes with higher than average tag formation probabilities. Given that tag formation probabilities are positively correlated with gene length, which in turn is negatively correlated with expression level, we find that the bias introduced by during tag formation leads to systematic under-and over-estimation of lowly and highly expressed genes, respectively. Fortunately, by taking the differences in tagging probability among genes into account, we can remove such biases and, thereby, increase the quality of inferences made from SAGE data.

Results
The purpose of our study is to incorporate differences in the probability of tag formation into the analysis of SAGE data. We developed a formal framework for incorporating these differences, derive exact and approximate solutions, and then illustrate the framework's utility by applying it to a published Saccharomyces cerevisiae SAGE data set [9]. The output from the analysis such as summary statistics, modal values, posterior percentiles, and 95%PI can be found in Additional Files 1, 2, 3, 4, 5, 6.

Model formulation Tag sampling & generation
The generation of a SAGE data set is frequently viewed as a multinomial sampling process in which tags are sampled from a tag pool. The generation of the tag pool from the mRNA pool relies on the AE cleavage of the cDNA copy of mRNA transcripts. For simplicity, we assume that the cleavage probability is constant for all sites and that all cleavage events are independent of one another. We use p to denote the average cleavage efficiency of the AE and k i to denote the number of cleavage sites within an mRNA transcript of gene i ( Figure 1). Later, when applying the model and in the Appendix A, we explain how it is possible to estimate p from the observed intra-genic distributions of tags.

Formation of the tag pool from the mRNA pool
To derive the relationship between the tag and mRNA pools, we begin by defining the mRNA pool and the tag pool explicitly. The tag pool represents the set of informative tags which can be unambiguously assigned to specific genes. The mRNA pool is the subset of the transcriptome which, through AE cleavage, can generate at least one informative tag. For simplicity, we assume that each gene generates only one kind of transcript (i.e. we ignore any alternative splicing). We represent the mRNA pool that we are trying to estimate as = {m 1 , m 2 , ..., m n }, where m i represents the proportion of the i th gene out of n genes detectable by the SAGE method. By definition, (Note that symbols used in this study are listed in Table 1). The tag pool in turn is defined as = {θ 1 , θ 2 , ..., θ n }, where θ i is the expected proportion of tags from gene i in the tag pool. The tag proportion of gene i, θ i , is the sum of the individual proportions of all informative tags generated from the transcript of the i th gene. As with the mRNA pool, by definition, . Our next step is to understand how the tag and mRNA pool frequencies are linked.
In order for a tag to form at a particular AE site, say the j th site, the AE must cut the cDNA derived from an mRNA transcript at the j th site but not at any of the other sites between 3' and the j th site. If there are k i potential AE sites in the i th gene, then it follows that the probability of forming a tag at the j th site is The first term p represents the probability that AE cleaves a transcript at the j th site. The second term represents the probability of the AE not cleaving a transcript between the (k i -j) sites 3' to the j th site. The next step is to calculate the total probability that mRNA transcripts for a given gene will be converted into informative SAGE tags.
Because we assume that each site is cleaved independently, the total probability of tags being formed from mRNA transcripts for a given gene is simply the sum of the Diagram of hypothetical mRNA transcript with its potential AE cut sites (indicated by arrows) and their tag formation probabil-ity φ j

Figure 1
Diagram of hypothetical mRNA transcript with its potential AE cut sites (indicated by arrows) and their tag formation probability φ j . AE sites are assumed to be cleaved independently of one another with cleaving efficiency p. From an individual mRNA, the tag formed is from the 3' most AE site that is actually cleaved. The probability of forming a tag at the j th site is, therefore, Tagging probability

5'
cleavage probabilities for all possible informative tags. That is where the summation is over the set of AE sites which generate informative tags, J.
In the special case where all of the possible tags within a transcript are informative, the summation is from j = 1 to k i . Under this scenario, . In general, the greater the number of AE sites that lead to informative tags |J|, the higher the tag formation probability φ i for a given gene. For a given set of AE sites, φ i increases with the cutting efficiency p, but the upper limit to φ i is limited by the number and position of uninformative tags. This is because as p approaches one, the probability of forming a tag from the 3' most or AE site also site approaches one. If p = 1 and the 3' most AE site leads to an informative tag, then φ i would be equal to one. In contrast, if the 3' most AE site leads to an ambiguous tag, then the φ i would equal zero. Thus, depending on the genome and the genes of interest, a high cutting efficiency may not only be unobtainable [18], it may also be undesirable.
Because transcripts come in discrete units, inference on the proportion of the i th gene in the mRNA pool, m i , depends only on the sum of the tag frequencies in the tag pool for the i th gene rather than the separate frequencies of each individual tag.
where The term denotes the mean tag formation probability where the contribution of a gene to its value is a function of both its mRNA frequency m i and tag formation φ i probability.
Intuitively, Eq. (3) states that the tag frequency for the i th gene θ i is equal to its frequency in the mRNA pool weighted by the probability of tag being formed from its mRNA transcripts relative to the weighted average φ value for all of the mRNA genes that contribute to the tag pool.    Although it might not be clear given our notation, the solution we present above is implicit since depends on the set of values themselves. However, employing the constraint that the sum of values must equal one, we can generate the following implicit solution for , Numerically solving equation (9) for is straightforward and once done allows us to evaluate the solution for in eqn. (8)   assuming that n is large relative to T i and 1.
If (n/T 0 ) × ( /φ i ) << 1, then we can take another first order Taylor series approximation around this term at zero to get a solution for the marginal mode as a function of the joint mode, Thus we see that the marginal mode of m i is always less than the value at the joint mode with the prior α i = 1 for all genes.
Alternatively, if we assume an alternative prior of α i = 1/n, which implies that β i = 1 -1/n, then using the same assumptions and approach as before we obtain the following set of approximate marginal modes, As a final point of comparison we compare our Bayesian approaches in which we impose a consistent set of prior values on the probabilities of with a likelihood based approach. Estimating m i based on likelihood is equivalent to the beta parameters α i = 1 and β i = 1, Note that although this solution is equivalent to the value of m i at the joint mode with a flat prior, it is not actually consistent with that model. This is because the maximum likelihood parameters imply that α = α i = 1 for the ith gene and yet the sum of the prior parameters for the remaining n -1 genes is 1 rather than n -1.

Model application and validation SAGE data and observed tag counts T i
In the data set provided by Velculescu et al. 1997, NlaIII is the Anchoring Enzyme whose recognition sequence is 5'-CATG-3'. BsmFI is the Tagging Enzyme, which gives 14-bp tags. Uninformative tags (i.e. tags which could have come from multiple genes) were excluded from the calculation of φ i and from our tag counts T i . As indicated earlier, the tag counts for an individual gene T i is equal to the sum of all informative tags observed for the i th gene in a given experiment. This exclusion of counts for ambiguous tags is also employed in other SAGE analyses.

Estimation of cutting efficiency p
We applied our method to a SAGE data set generated in Saccharomyces cerevisiae [9]. The first step during the implementation is to calculate the average cleavage efficiency of AE, p. The distribution of tags within the coding sequence (CDS) is a function of p. For example if p is close to one, then we expect to find the final intra-CDS tag to represent the vast majority of tags seen. Conversely if p is small, then the expected frequency of tags will increase little with position. In Appendix A we show how cleavage efficiency parameter p can be estimated from the observed distribution of intra-CDS tags from multiple genes using a Bayesian approach. The posterior mode and 95% PI for the L, S, and G2M phases are presented in Table 2 and the distributions are illustrated in Figure 2. Despite being carried out in the same lab and, presumably, under similar conditions, our analysis indicates that there is significant variation in cleavage effciencies between experiments.

Calculation of tag formation probability φ
The calculation φ i is, in part, based on the number of AE sites within an mRNA transcript. As a result, we need to know the transcript boundaries for every gene in order to determine all the possible AE sites for each gene. For 2342 genes we obtained the transcript boundaries from the tiling array data set [19]. With this subset of genes we also calculated the median 5' and 3' UTRs and used these values, 70 bp and 95 bp, respectively, for the remaining genes. We then inferred all potential AE sites for every transcript.
Having an estimate of p and knowing the set of possible informative tag sites within each gene makes it possible to calculate the tag formation probability φ i . For each individual gene, we used eqns. (1) and (2)

Posterior distributions and statistics
For the following calculations we worked only with genes in Saccharomyces cerevisiae with a tag formation probability greater than 10 -7 . This non-zero cut off prevented us from including the genes where an observed tag is most likely due to an experimental errors rather than coming from the gene itself. Our dataset consisted of 6069 genes and we assumed a flat, uninformative prior of α i = 1 for all genes in the analysis presented here.
With this set of genes we calculated the joint modes of the posterior distributions using eqn. (8) and the posterior marginal distributions (12) numerically. Examples of these marginal distributions for four specific genes are illustrated in Figure 4. Summaries of the posterior marginal distributions for all genes can be found in Additional Files 1, 2, 3. The more general effect that the tag formation probability and the number of tag counts have on the marginal distributions are illustrated in Figure 5.
We found the marginal mode numerically by maximizing (12). For each of these genes we also used (12) to calculate the posterior 95% probability intervals (PI). When comparing our numerical maximization of the marginal distribution to our various approximations, we find them to generally be withing a factor of 10 -5

Φ ΦΦ Φ m
In order to verify the accuracy of the above results in a more independent manner, we simulated the joint posterior distribution utilizing a Gibbs Sampling strategies as discussed in [20]. From this joint posterior distribution we can obtain the appropriate marginal distributions. We find that our estimates of the means of the numerical and simulation based posterior marginal distributions are in good agreement.
Although we can calculate the the joint mode estimate of directly, we cannot easily estimate its 95% PI. Instead we calculated for each of our simulations and used these values to evaluate our uncertainty in . The results are presented in Table 2 and they indicate that can varies significantly between the experimental treatments, reflecting signficant changes in the set of genes contributing to the mRNA pool.
Somewhat surprisingly, we find that in two of the three cases the joint mode estimate of does not overlap with the 95% PI of based on our simulations. This apparent paradox can be explained by the fact that the tag formation probability of a gene is not independent of its mRNA expression level. More specifically, genes with low expression levels are more likely to be longer and have unique tags than genes with high expression levels. This is because genes that are highly expressed tend to also be shorter, thus reducing the probability a AE site will occur. Similarly, genes that are highly expressed also tend to show strong codon bias and, as a result, the rate at which novel genes generated via gene duplication diverge from their progenitor sequence will be slower, thus reducing the probability the gene's tags will be unique.
The reason the negative association between expression level and φ causes the simulations to produce values larger than the modal estimate is because the joint mode estimate of m for genes with no experimentally observed tags is on the zero boundary. In contrast, the simulations essentially sample from a dirichlet distribution and, con-  Posterior probability distributions for the AE cutting effciencies from three different SAGE experiments dicussed in [9]. The experiments were performed with cells at either log growth (L), S-phase arrested (S) or differ G2M-phase arrested. Distributions were generated as in Appendix A. The posterior modes and 95% confidence intervals are provided in Table 2.

Comparison of mRNA and tag frequencies
We also calculated the marginal modes for the tag frequencies, which is equivalent to standard estimates. The relative differences between the tag and mRNA pool frequencies as a function of φ are illustrated in Figure 3. The direct comparison between the marginal mode of tag and mRNA frequencies, and are illustrated Figure 6. As a result these genes occur below the 1:1 line in Figure 6, illustrating how ignoring the tag formation process will lead to underestimates of these genes mRNA frequencies.
In contrast, genes with higher than average tag formation probabilities, i.e. φ i > , are over represented in the tag pool. As a result these genes occur above the 1:1 line in Figure 6, indicating how standard methods overestimate these genes mRNA frequencies.

Discussion
Previous approaches to analyzing SAGE data equated the sampling of the tag pool with sampling the mRNA pool (from which the tag pool was derived). In this study we developed a novel, probabilistic approach to evaluate gene expression levels of SAGE data. Our model takes into Composite diagram of tag formation probabilities φ and adjustment of mRNA estimates due to the tagging process for the Log Phase experiment in [9] Figure 3 Composite diagram of tag formation probabilities φ and adjustment of mRNA estimates due to the tagging process for the Log Phase experiment in [9]. Histogram of the relative frequencies of tag formation probabilities φ i for the Saccharomyces cerevisiae genome during log growth phase and the corresponding scaling. Histogram scale is indicated on the left axis. Tag formation probabilities were calculated using eqns. (1) and (2)  Our results indicate that the probability of a gene forming a SAGE tag varies greatly from gene to gene and between experiments. We find that genes with higher than average probabilities of forming SAGE tags will be over-represented in the tag pool. As a result, the mRNA abundances of these genes are over-estimated using the standard approach. Conversely, we also find that genes with lower than average probabilities of forming SAGE tags will be under-represented in the tag pool. Predictably, the mRNA abundances of these genes are under-estimated using the standard approach. The picture, however, becomes even more complex when one considers the fact that genes with low expression levels tend to have higher than average tag formation probabilities. Thus, we argue that taking intergenic variation in tag formation probabilities into account is a required step in order to properly interpret SAGE data.
Sometimes the goal of a set of SAGE experiments is to make inferences about relative changes in mRNA expression levels between two different treatments. Even under these circumstances, accounting for the effect of tag formation will improve the quality of inferences made based on their observed frequencies. This is because the cutting Examples of posterior marginal probability distributions for four genes, YFL060C, YPR035W, YOL040C, and YKL152C, during log phase based on data in [9]

Figure 4
Examples of posterior marginal probability distributions for four genes, YFL060C, YPR035W, YOL040C, and YKL152C, during log phase based on data in [9]. Genes were chosen to cover a wide range of tag formation probabilities φ i and counts T i . More specifically, these genes had tag formation probabilities φ i of 0.356879, 0.44494, 0.98255, and 0.555, respectively, and observed tags counts of 0, 10, 103, and 228, respectively.  11)). If SAGE data is being used an exploratory tool or to verify that a hypothesized gene is actually expressed as opposed to being a pseudo-gene, the methods developed here also have some application. Intuitively, experimentalists already know that inferences for genes lacking unique tag sites cannot be made. However, instead of classifying genes as either detectable or nondetectable through SAGE (i.e. φ > 0 vs φ = 0), our methods allow researchers to develop a more nuanced understanding of a hypothesized transcript's ability to be detected.
We find that the probability of tag formation from an mRNA depends on (a) the AE cleavage efficiency p, (b) the number of anchoring enzyme sites within a gene's mRNA transcript and (c) whether such tags can be unambiguously assigned to a single gene. The AE cleavage efficiency effects the distribution of tags formed from an individual gene. It might seem that, experimentally, obtaining 100% AE cleavage efficiency would be a desirable goal. However, as discussed, extremely high efficiency has drawbacks. When cleavage efficiency is 100%, only the most 3' tags or final tag will be cleaved for each transcript, resulting in a single type of tag for each gene [9]. Under such conditions, the distribution of tags formed is weighted fully with the final tag and any gene whose final tag is ambiguous will be rendered unobservable.
In contrast, as AE cleavage efficiency decreases, the distribution of tags formed is more evenly distributed, resulting in the formation of multiple tags from the set of mRNA transcripts of a single gene [9]. Thus, it is arguable that if the mRNA pool is sufficiently large, a very low AE would actually be desirable since it would likely make all genes with multiple AE sites observable and reduce the sensitivity of the analysis to errors in determining the end of the 3' UTR (see below). Experimentally, AE cleavage effciencies are significantly less than 100% and vary between experiments. This quantitative conclusion is also consistent with empirical observations that partial digestion often occurs during SAGE experiments [18].
While the AE cleavage efficiency varies between experiments, in the absence of any alternative splicing, the number and type (ambiguous vs. informative) of tags that can formed from a gene's mRNA does not. However, tag site number and type do vary from gene to gene which leads to inter-genic differences in tag formation probabilities. Because φ i is the sum of tagging probabilities at informative sites, removal of a AE site close to the 3' end can greatly reduce the value of φ i. Because many of the most 3' tags are likely to reside in the 3' UTR region, a region which is generally poorly understood and delimited, unambiguously assigning such tags to specific genes where no tags are observed, the posterior mode occurs on the boundary of the parameter space and changing φ has no effect on the mode. Increasing φ does, however, decrease the width of the distribution. In (b) where ten tags are observed, increasing φ leads to a decrease in the mode and also decreases the absolute width of the distribution (which is indicated on the log scale by shifting to the left). Tag Formation Probability Φ becomes increasingly problematic. Because the incorrect inclusion (exclusion) of a 3' tag erroneously elevates (depresses) the tag formation probability as an increasing function of p, a low AE cutting efficiency might actually be desirable in these situations. Note, however, that as AE cutting effciencies decrease, the importance of correctly determining the 5' UTR boundary increases.
In general, the more AE sites a gene contains, the larger is its value of φ i . Because shorter genes tend to have fewer AE sites, there is a positive relationship between gene length and φ i (data now shown). Interestingly, in Saccharomyces cerevisiae in either L and S phases, m i and φ i have a loose negative correlation with one another (r = -0.041 and -0.035, t = -3.21 and -2.74 and p < 0.0001, and p < 0.005, respectively). This indicates that highly expressed genes tend to be shorter in length and therefore have fewer potential AE sites. Hence, in general, standard estimates, , will under-estimate the expression levels for highly expressed genes. For example, the tag count for gene YKL152C is 228 in the L-phase. There is a single AE site for this gene. Therefore, its tagging probability (φ i ) is 0.56 in the L phase, which means a correction of ~ 15% in its expression level ( = 0.022 versus = 0.019). Thus accounting for variation in tag formation probabilities φ becomes especially important when trying to measure the saturation of microarray data by comparing it to SAGE data (e.g. [17]).
To incorporate variation in tag formation probabilities we took a decidedly Bayesian approach, modeling the sampling of tag frequencies as a multinomial process and θ imθ Comparison of the tag and mRNA frequency marginal modes ( and respectively) during log growth phase Figure 6 Comparison of the tag and mRNA frequency marginal modes ( and respectively) during log growth phase. Data is presented on a log-log scale with a 1:1 line for reference. Genes whose tag formation cutting probability φ i is greater that the mean tag formation probability are over represented in the tag pool and, consequently, occur below the 1:1 line. Conversely, genes whose tag formation cutting probability φ i is less that are under represented in the tag pool and occur above the 1:1 line. using a Dirichlet prior for mRNA abundances. Despite the complexity of the tag formation process, we were able obtain a number of analytic results or approximations which were verified using simulation. More importantly, our analytic results offer a useful contrast of the assumptions involved in data analysis based on a Bayesian and Frequentist approaches.
One main drawback with the Bayesian approach is the large amount of information that is assumed already known when using a flat, uninformative prior. With a Dirichlet prior, the number of 'prior observations' implicit in a flat prior is equal to the number of genes observable with SAGE [20]. For the Saccharomyces cerevisiae databases used here, this number is on the order of five thousand. This number of observations is only a few fold below the number of observed informative tags in a given SAGE dataset. Alternatively, one could use other, less weighty priors such as α i = 1/n. Doing so, however, results in the large, inconsistent shifts in the mode of the marginal posterior distribution with tag numbers when the observed number of tags are small (i.e. ≤ 3). This prior also produces singularities in certain ranges of , leading additional numerical complications when estimating its value.
In contrast, examination of the posterior marginal distributions illustrates how a Bayesian framework differs from the Frequentist approach. More specifically, the Frequentist approach, which focuses on the marginal likelihood of a single gene is analogous to the Bayesian posterior marginal distribution with the prior parameters of α = β = 1.
In the Bayesian framework such a prior is undesirable because it results in an inconsistency. Specifically, in a Bayesian framework α = α i and , where i is the focal gene. So to have α = α i = 1 and β = 1 for one gene implies that α j cannot equal 1 for any of the other genes, yet that is exactly what is assumed when analyzing these other genes.
Conceivably, if we can estimate the prior distribution empirically, we may further improve estimation of expression levels and avoid some of the problems encountered with regard to the large amount of 'prior observations' implicit in our flat, uninformative prior. However, the implementation of such an approach would be difficult since it would entail integration and possibly maximization over the the very high-dimensional Dirichlet prior distribution.
In comparison to other Bayesian methods developed to analyze SAGE data, Thygesen and Zwinderman [10] use a combination of Bayesian and maximum likelihood approaches to model the distribution of tags arising from SAGE analysis. Instead of modeling observed mRNA proportions, they used a hierarchical Poisson model with a gamma prior to model the observed mRNA counts. The main thrust of the paper is to fit the hierarchical Poisson model using maximum likelihood although some discussion of Bayesian inference is also included. The paper also seems to view the counts as independent and identically distributed observations making the additional variation of the hierarchical Poisson model useful.
The analysis of Morris, Baggerly and Coombes [11] is closest in spirit to our work. They directly apply a Bayesian multinomial-Dirichlet model to the observed vector of tag counts. This approach improves upon most earlier work by considering simultaneous inference on all proportions m i . They provide a simple computationally tractable approach and consider the result of the statistical shrinkage effect which offers improved estimates for proportions with low tag counts while underestimating the expression proportions for tags with large counts. This leads them to propose a mixture Dirichlet prior in order to mitigate the propensity to underestimate highly expressed genes. However, they do not consider the variation in tag formation probabilities which is the main focus of this paper.

Conclusion
Previous studies of SAGE data have implicitly assumed that the tag pool is an unbiased representation of the mRNA pool. By building a mechanistic model of tag formation we show how this assumption only holds when all genes have the same tag formation probability and, more importantly, how to properly adjust one's inferences according to the tag formation probability of the gene relative to the entire mRNA population. We believe that this work is a valuable addition to the existing methods for SAGE data analysis and, given its probabilistic nature, can be integrated into other studies of SAGE data.

Sources of data
Yeast transcripts were parsed out from chromosomal sequences downloaded from the Saccharomyces Genome Database on July 13, 2006 [21]. SAGE data were also obtained from the Saccharomyces Genome Database. Tags which could not be mapped to the transcripts of any known gene or, conversely, could be mapped to the transcripts of multiple genes were excluded from our analysis.

Data processing implementations
All computations were implemented using Linux Fedora 4 and 5. All code (e.g. PERL scripts, R routines, and Mathe-Φ β α = ≠ ∑ j j i matica routines) are released under GPL V2 and without warranty. This code is available in Additional File 10 or at http://www.tiem.utk.edu/~mikeg/software/SAGE.
Processing of sequence data PERL scripts were used for identification of potential AE sites and parsing of transcripts.

Numerical calculations
Numerical calculations to solve for and the posterior marginal distributions for mRNA frequencies were done using Mathematica [22].

Simulation
Our simulation utilized a Gibbs Sampling approach. Background on this technique can be found in [20]. The model proposes that an initial population of cDNA G = (g 1 , ..., g n ) is generated based upon a multinomial population of size N with proportions m i .
Uncertainty about the population size N is addressed by assuming that it follows a Poisson distribution. Uncertainty in the proportions m i are assumed to follow a Dirichlet distribution, a generalization of the Beta. Finally the number of tagged counts observed for gene i follows a binomial distribution, T i ~ Bin (g i , φ i ). Details on conditional distributions and a discussion of implementation of the Gibbs Sampler can be found in [23].

Identification of transcripts boundaries
We parsed out 2370 genes with annotated UTRs from the segment table generated from poly-A RNA by tiling arrays [19]. Among them, 28 genes show inconsistent nomenclature when compared with the version of SGD data set that we used. For simplicity, we ignored these 28 genes. Hence, we obtained UTR coordinates for 2342 genes. The median 5' and 3' UTR lengths are 70 bp and 94 bp respectively. We rounded the numbers and parsed out 70 bp as upstream and 95 bp downstream for the remaining genes.
Because the 3' boundaries of transcripts are more important to SAGE data analysis than the 5' boundaries, we tried 70 bp 5' UTR and 250 bp 3' UTR based on a different experimental data set [24].

Authors' contributions
MAG initiated the project, derived the distributions with RZ, derived the approximations, and wrote the later drafts. HQ wrote the initial drafts, implemented the PERL scripts, and verified the approximations. RZ implemented the simulations, helped derive the distributions, and also verified the approximations. All authors have read and approved this final manuscript.

Additional files
Supplementary files present the results for the 6179 genes in Saccharomyces cerevisiae with unique tags. All calculations are under the assumption of a flat, uninformative prior of α i = 1 for all genes. SAGE data comes from three experiments (L, S, and G2M) published in [9]. Updated versions of all tables are available at http:// www.tiem.utk.edu/~mikeg/materials/SAGE.

A. Estimation of the global cleavage efficiency of the anchoring enzyme
We designed a likelihood approach to estimate p, the global cleavage efficiency of AE. Remarkably, p can be estimated when only considering the coding regions of the transcripts, as we will show below. The coding regions are much better annotated than 5' and 3' UTRs. In fact, we do not know the UTR boundaries for most of the yeast transcripts. Hence, the estimation of p based on coding regions should be more accurate than the estimation based on transcripts.
As seen in Figure 1, we can assume that the j th potential AE site is the last site within the coding region, without loss of generality. The conditional tagging probability at the j th site given only observations in the coding region is which is the same value for tagging probability at the last site, the k th site, for the full transcript. It can be seen that the conditional tagging probability at the (j -1) th site is p(1 -p), which equals the tagging probability at the (k -1) th site for the full-length transcript. Similar conclusions can be reached for all other potential AE sites within the coding region. Hence, the tagging probabilities at potential AE sites within coding regions given only observations at the coding regions are identical to tagging probabilities at equivalent sites for full-length transcripts. Now, we can proceed to use a likelihood approach to estimate p using tags observed only from the coding regions.
To avoid confusion with other analysis based on fulllength transcripts, we will use slightly different notations for indexes here. We consider the total number of potential AE sites in the coding region for gene i is .
For the i th gene, we consider the observed tags at all the AE sites, are drawn from a total of of tags based on a multinomial distribution. The probability of a "successful" draw at the j th site is Using a flat, uninformative prior of φ(P) ~ Beta(1, 1), the posterior probability distribution of p given the observed tag distributions across i genes is which can be evaluated numerically.
Using eqn. (A2) we calculated the posterior distributions for p for Saccharomyces cerevisiae under three different conditions, log growth, S phase-arrested, and G2M phasearrested using the SAGE data from [9]. As shown in Fig 2, posterior distributions of the AE cleavage efficiency p varies considerably between experiments. This variation should be taken into account when estimating the actual expression levels, and thus highlights the utility of our modeling approach. For each experiment, we calculated the tagging probability φ i using the mode estimate of p for that experiment. As a result, the tagging probability of a given gene varies between experiments. The estimations and their 95% PI are provided in Table 2. α β α φ α Φ