Skip to main content
International Journal of Molecular Sciences logoLink to International Journal of Molecular Sciences
. 2017 Sep 5;18(9):1900. doi: 10.3390/ijms18091900

Sample Size Estimation for Detection of Splicing Events in Transcriptome Sequencing Data

Wolfgang Kaisers 1,2,*, Holger Schwender 2,3, Heiner Schaal 2,4
PMCID: PMC5618549  PMID: 28872584

Abstract

Merging data from multiple samples is required to detect low expressed transcripts or splicing events that might be present only in a subset of samples. However, the exact number of required replicates enabling the detection of such rare events often remains a mystery but can be approached through probability theory. Here, we describe a probabilistic model, relating the number of observed events in a batch of samples with observation probabilities. Therein, samples appear as a heterogeneous collection of events, which are observed with some probability. The model is evaluated in a batch of 54 transcriptomes of human dermal fibroblast samples. The majority of putative splice-sites (alignment gap-sites) are detected in (almost) all samples or only sporadically, resulting in an U-shaped pattern for observation probabilities. The probabilistic model systematically underestimates event numbers due to a bias resulting from finite sampling. However, using an additional assumption, the probabilistic model can predict observed event numbers within a <10% deviation from the median. Single samples contain a considerable amount of uniquely observed putative splicing events (mean 7122 in alignments from TopHat alignments and 86,215 in alignments from STAR). We conclude that the probabilistic model provides an adequate description for observation of gap-sites in transcriptome data. Thus, the calculation of required sample sizes can be done by application of a simple binomial model to sporadically observed random events. Due to the large number of uniquely observed putative splice-sites and the known stochastic noise in the splicing machinery, it appears advisable to include observation of rare splicing events into analysis objectives. Therefore, it is beneficial to take scores for the validation of gap-sites into account.

Keywords: splicing, RNA-seq, transcriptome sequencing, alternative splicing, wgis

1. Introduction

Current analysis strategies for detection of splicing events mostly consider isoform expression [1,2,3]. As isoform identification in complex genomes currently suffers from insufficiencies [4]—the detection of alternative splicing is associated with low sensitivity—especially when transcript abundance or read coverage is low [5,6]. Therefore, a reasonable alternative strategy is to focus on gapped alignments, an approach we elaborated recently [7].

Genomic alignments of reads obtained from whole transcriptome sequencing contain gapped alignments due to the removal of introns during pre-mRNA splicing. To increase the detection sensitivity of gapped reads resulting from low abundant transcripts, alternative splicing, or sporadically used splice-sites, data from multiple samples needs to be merged. Gap-sites are alignment gap locations possibly shared by multiple alignments. They represent putative splice-sites and need to be validated because they are reported by aligners with a high false discovery rate (FDR) [7].

Observation of Splicing Events

For the detection of splicing events, we recently developed three R packages allowing accumulative extraction of gap-site information from transcriptome sequencing data [8], calculation of two scores for gap-site validation (Gap Quality Score, gqs and Weighted Gap Information Score, wgis), and annotation of gap-sites [7]. For each gap-site, detected in a batch of samples, the total number of covering alignments in all samples (nAligns, alignment depth) and the number of samples in which a gap-site was identified (nProbes, multiplicity) are reported.

The distribution of wgis values implies a division of gap-sites into four gap-quality levels (gql0 = not validated to gql3 = high confidence level). Thus, gap-sites are a heterogeneous population with varying alignment coverage and multiplicity as well as varying resemblance to confirmed splicing events.

Gap quality level 0 is assigned to a gap-site when the value of wgis is 0. The value wgis = 0 indicates that either the number of matching nucleotides in the merged samples (qsm< 16) or one of the MaxEnt scores (score5 or score3) are below threshold. Thus, evidence from alignments is sparse or splice-site strength is too low for validation. A detailed description can be found in our recently published manuscript [7].

2. Results

2.1. Sample Size Estimation

The starting point of considerations on sample size estimation is the expectation that the number of observed gap-sites should increase with the number of samples in a batch. The number of observed gap-sites thus was examined by repeatedly drawing sample batches of varying size from the fibroblast transcriptomes.

Number of Gap-Sites Observed in Small Samples

In a simulation experiment, 100 random batches consisting of 2, 4, 8 and 12 samples were extracted (from the 54 fibroblast samples) and analysed for the presence of gap-sites as expected from alignments by STAR. The probability density estimates shown in Figure 1 indicate, that the number of identified gap-sites increase with sample size.

Figure 1.

Figure 1

Number of gap-sites observed in samples of different sizes (STAR).

A more detailed analysis, however, shows that the increase in observation numbers is not equally distributed between gap-sites of different gap-quality levels. The number of not validated (gql0) gap-sites increases nearly linearly with a rate of 128,000 new gap-sites per sample, while the number of gql3 sites increases only at a much lower rate (Table 1).

Table 1.

Number of gap-sites from different sample sizes (STAR).

nFiles Total gql = 0 gql = 3
2 706 378 92
4 1076 666 105
8 1708 1179 124
12 2270 1659 137

Absolute number of gap-sites (in 1000).

Thus, gap-sites are a heterogeneous population with varying contributions to growing total number of observations in larger samples. An alternative interpretation of these varying contributions as consequence of varying observation probabilities leads to the hypothesis that a calculation of expected values from observation probabilities provides a prediction of total event numbers. In the following, we elaborate and evaluate this model.

2.2. The Probabilistic Model for Prediction of Event Numbers

The probabilistic model for observation of events (identification of gap-sites in a sample or in a batch of samples) is based on two assumptions: The observation of gap-sites in single samples are

  • random events

  • independent from each other

Independence means, that the observation probabilities for the observation of gap-sites are not influenced by observations in other samples or by observations of other gap-sites.

Using these assumptions, a relation between observation probability in single samples and in a batch of 54 samples can be related using basic probabilistic considerations. In essence, the considerations are based on the fact that not observing a gap-site in a batch of samples is equivalent to not observing a gap-site in any sample in the batch.

2.2.1. Definition of Two Probabilities

In the probabilistic model, two types of probabilities are considered: the observation probabilities (pj) and the observation prior (Π).

The observation probabilities represent the gap-site multiplicity (the number of samples in which a gap-site is identified) in the model.

As a real batch consists of a finite number of samples (n), the observation probabilities are numbers in {1n,2n,,1}.

The observation prior represents the relative abundance of gap-site multiplicities in real samples. The distribution of absolute numbers of gap-site multiplicities is shown in Figure 2. The U-shaped distribution indicates the fact that 73.7% (in TopHat) and 90.3% (in STAR) of gap-site multiplicities are <5 or >50 and thus are located at the extremes. Also, there is considerable variation between different samples (SD/mean > 34% for nProbes < 10), which is also demonstrated in Appendix C.

Figure 2.

Figure 2

Distribution of gap-site multiplicities in single samples: (a) Alignments from STAR; (b) Alignments from TopHat. For each gap-site, the multiplicity in the whole batch of 54 samples was determined. Then, for each of the 54 samples, the absolute number of multiplicities contained therein was tabled. Median gap-site numbers (dark gray) together with 25% and 75% quantiles (dashed lines) in 54 samples are shown. The light gray lines indicate minimal and maximal number of gap-sites.

Normalising both axes in Figure 2 creates the observation prior (Π).

2.2.2. Calculation of Expected Values

The two probabilities are connected to each other in a two step model, in order to model the observation of a single gap-site in a single sample: when a gap-site is to be observed, first an observation probability (p) is drawn from the observation prior Π. Then, the observation is drawn from a binomial distribution with probability p.

The expected number of gap-site observations in a sample of size ν then can be calculated by an integration. As real sample batches consist of a finite number of samples, both probabilities are discrete and thus expectations are calculated using sums. In a batch of size ν, the expected number of observed gap-sites (|Sν|^) is calculated from the probabilistic model as

|Sν|^=|Sn|j=1n1(1jn)νzj, (1)

where |Sn| is the number of gap-sites in the full batch (of size n) and zj is the total number of gap-sites with multiplicity j therein. The detailed definitions and calculations are shown in Appendix B.

2.3. Evaluation of the Probabilistic Model

The predicted and observed numbers of gap-sites were evaluated using a simulation study. From 54 sequenced fibroblast transcriptomes, 200 random sub-batches of random size (drawn from a uniform distribution on {2,,53}) were extracted and completely analysed for number of gap-sites. The data from all single samples were added to the simulated data. The number of observed events are shown in Figure 3. The mean number of gap-sites is modelled by a Loess regression (solid line).

Figure 3.

Figure 3

Observed and predicted numbers of gap-sites: (a) Alignments from STAR; (b) Alignments from TopHat. Observed number of gap-sites (y-axis) from 200 randomly drawn sub-batches with varying numbers of samples (x-axis) are shown as solid circles (dark gray). Results from a Loess regression are shown as solid line (light gray). The predictions from the (uncorrected) raw model indicate a too small terminal slope (dotted line). The predictions from the completed model indicate improved consistency with the observed numbers.

Limitations Arising from Finite Samples

The predicted number of observed events using Equation (1) are considerably lower than the observed numbers, mainly due to a too low terminal slope that can be seen in the predictions from the raw model (dotted line) in Figure 3. Considerations shown in the model evaluation (Appendix B.2.3) clarify that a too small terminal slope is caused by an underestimated number of rare events (for example unique gap-sites). The following, this effect is related to estimation from finite samples.

The observation probabilities for gap-sites, displayed in Figure 2, show sharp maxima at both ends of the x-axis (observation probabilities near 0 and 1). Due to steep ascents, estimation accuracy relies on data from close proximity to the extremes. However, due to finite sample sizes, data on the proximity of the extremes is limited.

The resulting impact is quantified by examination of events (gap-sites) with multiplicity 1 (unique events). When a batch of finite size n is analysed, the lowest observable multiplicity is 1, assigned with an observation probability of 1n. The observation probability of unique events approaches 0 with increasing n and thus the probability of being unobserved should be near 1. However, according to Equation (1), the probability of being unobserved is (11n)n for unique events and thus the theoretical limit (approached with <1% error for n=54) is

limn(11n)n=e10.368. (2)

Consider the number unique events (mu) in batch of n samples. As a consequence, the predicted number of unique events from Equation (1) is

mu(11e)mu×63.2%

in a batch of size n (instead of mu). Thus, the number of unique events in the full sized batch is 36.8% underestimated—an inaccuracy that cannot be avoided by increasing sample size.

2.4. Correction for Estimation Inaccuracies

As the lack of information at the extremes does not inevitably distort available data, we explored whether the model predictions recover when the informational gap is closed by adding artificial estimations.

Thus, virtual events with multiplicity <1 are added to the data, which does not change the relations between observed gap-site multiplicities, and is outside a range accessible by real samples. The observation probabilities are recalculated after adding 7.75×106 gap-sites with multiplicity 0.24 to alignments from STAR and adding 4.5×105 gap-sites with multiplicity 0.4 to alignments from TopHat. These numbers were determined by manually optimising the total number of predicted events in the full sized batch (n = 54).

Predictions by the Completed Probabilistic Model

The event numbers predicted by the completed model and the observed event numbers are shown in Figure 3, where the predictions of the completed model are shown as dashed dark line. The median difference between the corrected model and the mean values calculated by Loess regression is 8.16% in alignments from STAR and 1.93% in alignments from TopHat. The probabilistic model thus provides a sufficient explanation for the observed gap-sites numbers.

2.5. Basal Rate for Observation of Gap-Sites

The number of gap-sites modelled by the Loess regression in Figure 3 show a nearly linear increase in batches of large size (>40 samples). This constant terminal slope defines a basal rate for the observation of gap-sites (gbr), meaning that with every added sample, the total number of gap-sites increases by a constant value.

As, in an empirical sample, all unique events are part of the gbr, the gbr must be greater than the mean content of unique events in each sample. The gbr is 8056 gap-sites per sample in alignments from TopHat and 92,764 gap-sites per sample in alignments from STAR.

In alignments from TopHat, in total 384,576 unique gap-sites are identified with mean 7122 (SD 2905) per sample. In alignments from STAR, in total 4,655,597 unique gap-sites are identified with mean 86,215 (SD 34,464) per sample (Details are shown in Appendix C).

Thus, in the analysed samples, approximately 90% (88.4% in TopHat alignments and 92.9% in STAR alignments) of the gbr is represented by unique gap-sites.

2.6. Sample Size Estimation

The application of independency (presupposed in the probabilistic model) to calculation of sample sizes, required for experimental observation of splicing events (for example non-canonical splicing), allows utilisation of a simple binomial model. First, the lowest observation probability (po) for splice-sites of interest must be estimated. Together with the required power (pw), the number of required samples can be calculated from the binomial model using the formula

n=ln(1pw)ln(1po) (3)

(details of derivation are shown in Appendix D). The required sample sizes for a selection of observation probabilities are shown in Table 2.

Table 2.

Sample size calculation.

po Sample Size
0.1 16
0.15 10
0.2 8
0.5 3
0.8 1

Required sample size for detection power of >80%.

In order to provide a rule of thumb, recommended sample sizes for detection power of >80% are >10 for rare gap-sites (po<0.15), 3–10 for occasionally observed gap-sites (0.15<po<0.5), and 1–3 for regularly observed gap-sites (po>0.5).

For detection of non canonical splicing or alternative splicing, required sample sizes have been proposed in the range of ≈1–4×108 reads (per sample or condition) [6]. According to the described model (and assuming a power of 80% and 180×106 reads per sample), this would suffice for detection of gap-sites with observation probabilities down to 13.

As observation probabilities in single samples depend on alignment depth, calculated sample sizes need to be adjusted to alignment numbers (see Appendix A).

3. Discussion

The goal for the current investigation was to answer the question how many gap-sites are observed in batches of different sizes and to solve the problem of sample size estimation. The observation that gap-sites are a heterogeneous population differing by observation multiplicity and by validation status (gql) led to the construction of a (simple) probabilistic model. Using predictions from the model and a simulation study on observed data, the accuracy of the model is further explored.

Besides inaccuracies resulting from finite sampling (corrected by adding artificial estimates), the predicted and observed number of gap-sites are in good accordance (median deviation <2%) with TopHat alignments and in acceptable accordance (median deviation <10%) with STAR alignments.

Although the results do not provide a direct proof of the probabilistic model, we discuss the consequences arising from the model assumptions, namely (i) that gap-sites are (in range of detectable variation) observed independently from each other and (ii) the observation of gap-sites is a random event.

3.1. Independency of Gap-Site Observations

The independency implies that the likelihood of observation of single gap-sites is not influenced by previous observations or by the presence or absence of other gap-sites. As a regulated co-occurrence of gap-sites in a subset of samples would increase the variance of observed numbers, independency can only be deduced down to co-regulated gap-site clusters of size 104 or more, which provides only a weak upper boundary. The situation for gap-sites is thus analogous to the practice in gene expression data, where the assumption of independent regulation also has been applied [9].

3.2. Observations of Gap-Sites Are Random Events

The view that gap-site observation is affected by random effects is consistent with the process of mRNA sequencing and with procedures in the alignment algorithms. We additionally propose, that random effects also are inherent in the splicing machinery.

Stochastic Noise in the Splicing Machinery

The high degree of evolutionary conservation [10] and the ubiquity of splicing [11,12] underline the functional relevance of the splicing process. Alternative splicing facilitates the generation of multiple transcript (mRNA) isoforms from single genes and thereby the production of ≈100,000 transcripts from ≈20,000 genes [13,14] in humans. The diversified transcript pool potentially expands protein functionalities, which may be advantageous for individuals (documented for a large variety of genes [15,16]) as well as for the species (by increasing the rate of evolutionary change [11,17,18,19]). The fact, that for almost all genes only a single translated (protein) isoform could be detected [20,21,22], and the existence of a subsequent (quality based) filter (for example NMD) [23,24,25] emphasise a functional role of the diversified transcript pool as a driver of evolutionary change. Evolutionary demands for variation may imply that splicing noise rather than splicing accuracy is under selection pressure. This could in turn explain why the splicing code is degenerated [26,27] and why complex splice regulatory mechanisms are necessary. Thus, the described stochastic noise in the splicing machinery [28,29,30] may not be accidental. This randomness would be in accordance with the probabilistic model described here. Analysis thus needs to separate three sources of stochastic variation: mRNA sequencing, alignment of sequencing data to the genome, and the splicing process itself. For this differentiation, accounting for splice-site strength will be helpful, which is included in our recently described wgis score [7].

3.3. Consequences of Basal Rates for Observation of Gap-Sites

The simulation data (Figure 3) indicates that for new gap-site observations, a constant basal rate exists even for larger batch sizes (n>40). This basal rate largely consists of unique gap-sites.

The alignments from STAR contain a very high number (4,655,597) of unique gap-sites. Additionally, the corrections introduced into the probabilistic model (although artificial) may be indicative of a much higher number of potential gap-sites required for the explanation of this data. Numbers of splicing events in the range of 5–10×106 are very high and potentially cannot be explained by noise in the splicing machinery alone. Also, 92.1% of unique gap-sites in STAR alignments are gql0-sites, meaning they are not validated by wgis and thus either there is only weak support from alignments or they are weak splice-sites. Therefore, the contribution of artificial sources to observation of gql0-sites in unique gap-sites reported by STAR may be not be negligible.

3.4. Observation of Gap-Sites under Different Experimental Conditions

3.4.1. Influence of Read-Length and Alignment Depth

We assume, that aligned reads are randomly distributed on the transcriptome. As direct consequence, observation probabilities for splice-junctions are influenced only by alignment depth and not by read length.

Thus, variations in alignment depth primarily influence measures correlating with number of matching nucleotides. Also, likelihood of observation in a sample as well as likelihood of validation (by gqs or wgis) will perceivably change only when alignment depth crosses thresholds.

We consider, for instance, a reduction of alignment depth by 50% in alignments from STAR. In order to reach a 50% validation rate for gap-sites, 240 alignments are required when gqs is used and 19 alignments when wgis is used [7]. Thus, the validation status essentially will remain unchanged for gap-sites supported by 1000 alignments. Gap-sites supported by 300 alignments will presumably no more be gqs-validated (but still wgis-validated) and gap-sites supported by one alignment are likely to become unobserved. The example shows that heterogeneous effects of experimental conditions on observation probabilities are provoked.

These considerations show that spreading of sequencing power on more samples may be a sensible approach as long as observation probabilities in single samples is not impaired. Thereby, a more complete picture of the stochastic dispersion may be generated.

3.4.2. Influence of Sequencing Technology

Meanwhile, significant advances have been made since the invention of second generation sequencing (SGS) [31,32]. Third generation sequencing (TGS) platforms, for example single molecule real-time sequencing technology (SMRT) [33] and nanopore sequencing [34], offer read lengths up to 20,000 base pairs but currently is associated with 60–100 higher costs per (Giga-) base than SGS on the Illumina platform [32]. As splice-site observation probability is not improved by longer reads and considerable amounts of samples are required for the detection of occasionally observed splice-sites, TGS unlikely will replace SGS here. Also, the splice-site detection mechanism in rbamtools meanwhile does not consider whether different gap-sites belong to the same transcript or arise from the same read. Though, observation probability may not be altered by short reads (for example read length = 20), the likelihood of gap-site validation is severely impaired as the minimal number of matching nucleotides (on both sides of the alignment gap) is limited (to 10 in the example).

3.4.3. Influence of Different Species and Tissues

We suppose that the U-shaped pattern of gap-site multiplicities present in our fibroblast sample can be found in most tissues and species. Thus, the considerations of the shown probabilistic model should apply.

Gap-sites with high observation probability (the right hand side of the U-shape) are caused by genes ubiquitously expressed in a tissue. Gap-sites with low observation probability (the left hand side of the U-shape) are caused by splicing events that are only occasionally present in a tissue and also by errors in sequencing and alignment. A shift in the relation between gap-sites with high and low observation probability might be introduced by different tissues (for example via differing numbers of constitutively expressed genes). In order to obtain the exact distribution of observation probabilities, gap-site multiplicities on a batch of sufficient size will have to be analysed.

3.5. Comparison with Other Analysis Strategies

In a recent report, re-extraction of reads from two human samples that were sequenced with ultra-high coverage (≈109 reads), had been described [35]. In order to recover 80% of alternative splice events from the main sample, 100–150×106 were required and more than 400×106 reads were required in order to recover 80% of differential alternative splicing events. According to the estimations presented here, these read numbers would suffice only for detection of regularly observed gap-sites (p0>0.5).

Also, as transcriptome sequencing is commonly performed using 50–100×106 reads [6], the read numbers resulting from the sample size estimation presented here are much higher.

4. Materials and Methods

Transcriptome Sequencing Data

All transcriptome data shown in this study originates from an investigation where the effects of age, gender, and UV exposition were studied in 54 samples of dermal fibroblasts obtained from healthy human donors. A main result of the study is that no consistent differential expression of genes is observed [36]. The gene expression in the 54 samples is thus deemed to be homogeneous. Collection and processing of dermal samples from donors was approved by the Ethical Committee of the Medical Faculty of the University of Düsseldorf (# 3361) (11 April 2011). Raw Fastq files are available under ArrayExpress accession E-MTAB-4652 (ENA study ERP015294). This batch of samples is used as training batch where statistical distributions are derived from.

The transcriptomes were sequenced on an Illumina HiSeq 2000 sequencer. Sequences were aligned against the Human genomic sequence (GRCh38) using STAR (version 2.4.1d modified) [37] and TopHat (version 2.0.14) [38,39] aligners. For alignment, the soft-masked version of the toplevel sequence regions were downloaded from ENSEMBL (version 76). As both aligners neglect effects of soft-masking, alignments on soft-masked and unmasked sequences yield equal results. The transcriptome sequencing data of the 54 fibroblast samples contain in mean 179.0×106 alignments from STAR and 162.5×106 alignments from TopHat (for more details see Appendix A).

The number of gap-sites present in single samples as well as in merged samples has been calculated using the framework provided by R packages rbamtools (version 2.16.0, available on CRAN), refGenome (version 1.7.3, available on CRAN), and spliceSites (version 1.23.3, available on Bioconductor).

5. Conclusions

The observation of sporadic splicing events, which, for example, may be due to splicing inaccuracies, can be a worthwhile analysis objective. Their observation can be described using a simple binomial model. High read numbers are required for their detection.

Acknowledgments

This study was supported in part by the Deutsche Forschungsgemeinschaft (DFG, SCHW 1508/3-1) to Holger Schwender and (DFG, SCHA 909/4-1) and the German Ministry of Research and Education (Network Gerontosys, Stromal Aging to Heiner Schaal WP3, part C) to Heiner Schaal. We thank Anastasia Ritchie for editing the manuscript.

Abbreviations

FDR False Discovery Rate
nAligns Number of supporting alignments (for a gap-site)
nProbes Number of samples in which a gap-site is identified
gqs Gap quality score
wgis Weighted Gap Information Score
mcl Minimum CIGAR length
qsm Quartet sum of MCL
nlstart Number of left start (positions)
SD Standard deviation

Appendix A. Number of Alignments in Fibroblast Transcriptome Samples

In single samples, alignments from STAR aligner contained in mean 179.0×106 alignments (SD 62.1×106). Alignments from TopHat in single samples contained in mean 162.5×106 alignments (SD 58.0×106). The detailed distribution is shown in Figure A1.

Figure A1.

Figure A1

Number of alignments in transcriptome sequencing data of single samples: (a) Alignments from STAR; (b) Alignments from TopHat.

Appendix B. Probabilistic Model for Observation of Events

Appendix B.1. Definitions

Appendix B.1.1. Observation Probabilities

Let G be the set of events (observed gap-sites) G={gj|j1,,m} (indexed by j) and |G|=m the total number of observable events. The value of m is not known exactly, because events might not be actually observed in any sample.

Consider a batch of samples, Bn={si|i1,,sn} of size n (|Bn|=n), indexed by i. Define a sample si as a set of observed events si:={gj:gjsi}G, where gjsi reflects the fact that event j has been observed in sample i. The indicator function reflects the observation of an event in a sample:

1i(gj):=1whengjsi0whengjsi.

Define, that an event gj is observed in a batch Bn, exactly when gj is observed in at least one sample si. By designation

Sn:=i=1nsiG, (A1)

the observation of gj in Bn is equivalent to gjSn. The cardinality of Sn (|Sn|) is the number of observed events in Bn.

The expected number of observed events will be calculated using the opposite formulation of Equation (A1), obtained using De Morgan’s law

Snc=i=1nsic, (A2)

where sic is the complement set of si. Thus, the calculations essentially determine the probability of events being unobserved.

An actual experiment produces a finite set of putative observation events O={[gjsi]:1in;1jm}, from which a subset occurs ([gjsi]) and the complement does not ([gjsi]).

Appendix B.1.2. Observation of Events in Merged Samples

The observation of events in merged samples is modelled by a two step procedure, and bases on two separate stochastically distributed entities:

  • First, observation probabilities (pj) are drawn from an observation prior Π.

  • Second, the actual observation of events [gjsi] are iid (independent identical distributed) drawn from a Bernoulli distribution B(1,pj).

Thus, observation probabilities are distributed according to the observation prior Π. For a set of events G, a vector of observation probabilities p=(p1,,pm)[0,1]m is obtained the from the observation prior Π. The probability for observation of an event is given by

P[gjsi]=EP[1i(gj)]=:pj, (A3)

where P is the probability measure defined by B(1,pj) on O, and EP is the expectation with respect to P. The number of observations in each sample is |si|=j=1n1i(gj) and the expectation for |si| is given by

EP[|si|]=j=1mEP[1i(gj)]=j=1mpj. (A4)

Counting of observations in merged samples: Observations gjsi in a sample batch Bn are counted using an indicator function

1Sn(gj):=1whengji=1nsi0whengji=1nsi.

The second case (gji=1nsi) is equivalent to gji=1nsic. Thus, 1Sn(gj) can be rewritten as

1Sn(gj)=1i=1n(11i(gj)).

Using the independence of event observations in different samples, it follows that

EP[i=1n(11i(gj))]=i=1nEP[(11i(gj))]=(1pj)n (A5)

is the probability for not observing gj in Bn. Thus, the expectation for observation of an event gj in a batch Bn is given by

EP[1i(gj)]=1(1pj)n. (A6)

As the observation probabilities pj themselves are random variables, the expectation for event observation requires an additional integration with respect to the observation prior Π

EΠ[gjSn]=1(1pj)ndΠ(p). (A7)

The number of observed events in a merged sample

|Sn|=i=1m1Sn(gj) (A8)

is a random variable, taking values in {0,,m}. As the observation probabilities P[gjsi] are equally distributed for all events, the expectation of the total number of events can simply be calculated from EΠ[gjSn] using

EΠ[|Sn|]=mEΠ[g1Sn]=m1(1p)ndΠ(p). (A9)

Appendix B.1.3. Estimation of Observation Prior from Real Samples

The application of the model requires estimation of observation priors from real samples. The prior probabilities will be estimated from the multiplicity of observed events (nProbes: The number of samples in which a gap-site is identified) and thus bases on count data.

Discretised integration: Assume, that Π is a discrete measure. Let pΠ=(p1,,pk) be a set of distinct observation probabilities, which shall occur with prior probabilities π=(π1,,πk). The integral in Equation (A9) then transforms into a sum

EΠ[|Sn|]=m1j=1k(1pj)nπj. (A10)

Empirical estimates for observation probabilities: Recall |Sn|, the number of observed events in a batch Bn of samples. The multiplicities are numbers in {1,,n} and the estimated observation probabilities thus are

p^={1n,,nn}. (A11)

For k{1,,n}, let zk the number of events observed with multiplicity k. The vector Z={z1,,zn} then is a vector of count values, from which estimations for the prior probabilities π^=(π0^,,πn^) are calculated using the definition

πj^=zj|Sn|. (A12)

Estimation of number of observed events: Let ν{1,,n}. We want to estimate the number of observed events in a subset of samples (SνBn). Using the discretised prior, the model derived estimation for the total number of observed events in Sν is given by

EΠ[|Sν|]=m1j=1n1(1pj^)νπj^. (A13)

By replacing the total number of observable events (m) by the total number of observed events (|Sn|), the final estimate for the number of observed events in a batch of size ν,

|Sν|^=|Sn|1j=1n1(1jn)νzj|Sn|=|Sn|j=1n1(1jn)νzj (A14)

is obtained.

Appendix B.2. Evaluation of Model Predictions for Special Cases

The following section evaluates model-based predictions for selected special cases. Although, in transcriptome data, these specialisations are not isolated observed but part of a heterogeneous mixture of events, they provide insight into relationships between observation probabilities and sample composition.

Appendix B.2.1. Equal Observation Probabilities

We assume, that observation probabilities are equal for all events (pj=p<1j). Thus only one observation prior π1=1 exists and Equation (A7) reduces to

EΠ[gjSn]=1(1p)n. (A15)

The expected total number of events thus is

EΠ[|Sn|]=m(1(1p)n). (A16)

Appendix B.2.2. Events Observed in All Samples

When all events gj are observed in all samples, meaning that p=1 in Equation (A16), the expected number of events is to EΠ[|Sn|]=m. The observed number of events is |G| (the number of observable events) independent from n.

Appendix B.2.3. Observation of Rare Events

When a small observation probability pj1 is assumed for all events gj, so that (1pj)n can be approximated by the first Taylor expansion ((1pj)n1npj), the expected total number of events becomes

EΠ[|Sn|]=mnj=1kpjπj. (A17)

Thus, a linear increase of the number of observed events (|Sn|) with n (the number of samples), is observed. As this observation rate provides a theoretical upper limit, the real number of events increases sub-linear with n.

Appendix B.2.4. Rare Events Observed with Equal Probability:

Additionally, when all events are observed with equal observation probability p1, Equation (A17) transforms to EΠ[|Sn|]=m×p×n. The fact, that the observation rate only allows estimation of m×p, but not m or p directly, imposes uncertainties on the absolute size of m.

Appendix C. Gap-Sites Identified in Only One Sample

Gap-sites present in only one sample are called “unique” gap-sites. Their number may increase or decrease when new samples are added to a batch.

The distribution of unique gap-sites in fibroblast samples from TopHat and STAR is shown in Figure A2. The number of unique gap-sites varies substantially between samples in alignments from one aligner (TopHat or STAR). In alignments from TopHat, in total 384,576 unique gap-sites are identified (mean 7122, SD 2905 per sample). In alignments from STAR, in total 4,655,597 unique gap-sites are identified (mean 86,215, SD 34,464 per sample).

Figure A2.

Figure A2

Number of unique gap-sites (gap-sites present in only one sample).

Appendix D. Derivation of of the Formula for Sample Size Estimation

A derivation for the provided formula for sample size estimation (Equation (3)) is given here. Denote the lowest observation probability for an event of interest as pg. Equation (A6) then provides the probability of being observed in a batch of size n: pb=1(1pg)n. The algebraic reformation

(1pb)=(1pg)n=en×ln(1pg) (A18)
ln(1pb)=n×ln(1pg) (A19)
n=ln(1pb)ln(1pg) (A20)

then allows direct calculation of n, when the desired power (for example 80%) is introduced as value for pb.

Author Contributions

Wolfgang Kaisers developed the software, constructed the model, performed the simulations and wrote the paper; Holger Schwender reviewed and edited the paper; Heiner Schaal conceived and designed the experiments.

Conflicts of Interest

The authors declare no conflict of interest.

Footnotes

Sample Availability: The raw FASTQ files are available under ArrayExpress accession E-MTAB-4652 (ENA study ERP015294). The software is available in R packages: rbamtools and refGenome on CRAN and spliceSites (including algorithm for wgis) on Bioconductor.

References

  • 1.Shen S., Park J.W., Huang J., Dittmar K.A., Lu Z.X., Zhou Q., Carstens R.P., Xing Y. MATS: A Bayesian framework for flexible detection of differential alternative splicing from RNA-Seq data. Nucleic Acids Res. 2012;40:e61. doi: 10.1093/nar/gkr1291. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Shen S., Park J.W., Lu Z.X., Lin L., Henry M.D., Wu Y.N., Zhou Q., Xing Y. rMATS: Robust and flexible detection of differential alternative splicing from replicate RNA-Seq data. Proc. Natl. Acad. Sci. USA. 2014;111:E5593–E5601. doi: 10.1073/pnas.1419161111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Drewe P., Stegle O., Hartmann L., Kahles A., Bohnert R., Wachter A., Borgwardt K., Ratsch G. Accurate detection of differential RNA processing. Nucleic Acids Res. 2013;41:5189–5198. doi: 10.1093/nar/gkt211. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Steijger T., Abril J.F., Engstrom P.G., Kokocinski F., Hubbard T.J., Guigo R., Harrow J., Bertone P., Abril J.F., Akerman M., et al. Assessment of transcript reconstruction methods for RNA-Seq. Nat. Methods. 2013;10:1177–1184. doi: 10.1038/nmeth.2714. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Hardwick S.A., Chen W.Y., Wong T., Deveson I.W., Blackburn J., Andersen S.B., Nielsen L.K., Mattick J.S., Mercer T.R. Spliced synthetic genes as internal controls in RNA sequencing experiments. Nat. Methods. 2016;13:792–798. doi: 10.1038/nmeth.3958. [DOI] [PubMed] [Google Scholar]
  • 6.Hooper J.E. A survey of software for genome-wide discovery of differential splicing in RNA-Seq data. Hum. Genom. 2014;8:3. doi: 10.1186/1479-7364-8-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Kaisers W., Ptok J., Schwender H., Schaal H. Validation of Splicing Events in Transcriptome Sequencing Data. Int. J. Mol. Sci. 2017;18:1110. doi: 10.3390/ijms18061110. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Kaisers W., Schaal H., Schwender H. rbamtools: An R interface to samtools enabling fast accumulative tabulation of splicing events over multiple RNA-seq samples. Bioinformatics. 2015;31:1663–1664. doi: 10.1093/bioinformatics/btu846. [DOI] [PubMed] [Google Scholar]
  • 9.Loguinov A.V., Mian I.S., Vulpe C.D. Exploratory differential gene expression analysis in microarray experiments with no or limited replication. Genome Biol. 2004;5:R18. doi: 10.1186/gb-2004-5-3-r18. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Martin W., Koonin E.V. Introns and the origin of nucleus-cytosol compartmentalization. Nature. 2006;440:41–45. doi: 10.1038/nature04531. [DOI] [PubMed] [Google Scholar]
  • 11.Wang E.T., Sandberg R., Luo S., Khrebtukova I., Zhang L., Mayr C., Kingsmore S.F., Schroth G.P., Burge C.B. Alternative isoform regulation in human tissue transcriptomes. Nature. 2008;456:470–476. doi: 10.1038/nature07509. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Pan Q., Shai O., Lee L.J., Frey B.J., Blencowe B.J. Deep surveying of alternative splicing complexity in the human transcriptome by high-throughput sequencing. Nat. Genet. 2008;40:1413–1415. doi: 10.1038/ng.259. [DOI] [PubMed] [Google Scholar]
  • 13.Graveley B.R. Alternative splicing: Increasing diversity in the proteomic world. Trends Genet. 2001;17:100–107. doi: 10.1016/S0168-9525(00)02176-4. [DOI] [PubMed] [Google Scholar]
  • 14.Djebali S., Davis C.A., Merkel A., Dobin A., Lassmann T., Mortazavi A., Tanzer A., Lagarde J., Lin W., Schlesinger F., et al. Landscape of transcription in human cells. Nature. 2012;489:101–108. doi: 10.1038/nature11233. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Kelemen O., Convertini P., Zhang Z., Wen Y., Shen M., Falaleeva M., Stamm S. Function of alternative splicing. Gene. 2013;514:1–30. doi: 10.1016/j.gene.2012.07.083. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Stamm S., Ben-Ari S., Rafalska I., Tang Y., Zhang Z., Toiber D., Thanaraj T.A., Soreq H. Function of alternative splicing. Gene. 2005;344:1–20. doi: 10.1016/j.gene.2004.10.022. [DOI] [PubMed] [Google Scholar]
  • 17.Gilbert W. Why genes in pieces? Nature. 1978;271:501. doi: 10.1038/271501a0. [DOI] [PubMed] [Google Scholar]
  • 18.Ast G. How did alternative splicing evolve? Nat. Rev. Genet. 2004;5:773–782. doi: 10.1038/nrg1451. [DOI] [PubMed] [Google Scholar]
  • 19.Modrek B., Lee C.J. Alternative splicing in the human, mouse and rat genomes is associated with an increased frequency of exon creation and/or loss. Nat. Genet. 2003;34:177–180. doi: 10.1038/ng1159. [DOI] [PubMed] [Google Scholar]
  • 20.Tress M.L., Abascal F., Valencia A. Alternative Splicing May Not Be the Key to Proteome Complexity. Trends Biochem. Sci. 2016;42:98–110. doi: 10.1016/j.tibs.2016.08.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Tress M.L., Martelli P.L., Frankish A., Reeves G.A., Wesselink J.J., Yeats C., Olason P.I., Albrecht M., Hegyi H., Giorgetti A., et al. The implications of alternative splicing in the ENCODE protein complement. Proc. Natl. Acad. Sci. USA. 2007;104:5495–5500. doi: 10.1073/pnas.0700800104. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Ezkurdia I., Rodriguez J.M., Carrillo-de Santa Pau E., Vazquez J., Valencia A., Tress M.L. Most highly expressed protein-coding genes have a single dominant isoform. J. Proteome Res. 2015;14:1880–1887. doi: 10.1021/pr501286b. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Brogna S., McLeod T., Petric M. The Meaning of NMD: Translate or Perish. Trends Genet. 2016;32:395–407. doi: 10.1016/j.tig.2016.04.007. [DOI] [PubMed] [Google Scholar]
  • 24.Lykke-Andersen J., Bennett E.J. Protecting the proteome: Eukaryotic cotranslational quality control pathways. J. Cell Biol. 2014;204:467–476. doi: 10.1083/jcb.201311103. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Lykke-Andersen S., Jensen T.H. Nonsense-mediated mRNA decay: An intricate machinery that shapes transcriptomes. Nat. Rev. Mol. Cell Biol. 2015;16:665–677. doi: 10.1038/nrm4063. [DOI] [PubMed] [Google Scholar]
  • 26.Wang Z., Burge C.B. Splicing regulation: From a parts list of regulatory elements to an integrated splicing code. RNA. 2008;14:802–813. doi: 10.1261/rna.876308. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Alipanahi B., Delong A., Weirauch M.T., Frey B.J. Predicting the sequence specificities of DNA- and RNA-binding proteins by deep learning. Nat. Biotechnol. 2015;33:831–838. doi: 10.1038/nbt.3300. [DOI] [PubMed] [Google Scholar]
  • 28.Pickrell J.K., Pai A.A., Gilad Y., Pritchard J.K. Noisy splicing drives mRNA isoform diversity in human cells. PLoS Genet. 2010;6:e1001236. doi: 10.1371/journal.pgen.1001236. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Melamud E., Moult J. Stochastic noise in splicing machinery. Nucleic Acids Res. 2009;37:4873–4886. doi: 10.1093/nar/gkp471. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Melamud E., Moult J. Structural implication of splicing stochastics. Nucleic Acids Res. 2009;37:4862–4872. doi: 10.1093/nar/gkp444. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Schadt E.E., Turner S., Kasarskis A. A window into third-generation sequencing. Hum. Mol. Genet. 2010;19:R227–R240. doi: 10.1093/hmg/ddq416. [DOI] [PubMed] [Google Scholar]
  • 32.Garrido-Cardenas J.A., Garcia-Maroto F., Alvarez-Bermejo J.A., Manzano-Agugliaro F. DNA Sequencing Sensors: An Overview. Sensors. 2017;17:588. doi: 10.3390/s17030588. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Roberts R.J., Carneiro M.O., Schatz M.C. The advantages of SMRT sequencing. Genome Biol. 2013;14:405. doi: 10.1186/gb-2013-14-6-405. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Wang Y., Yang Q., Wang Z. The evolution of nanopore sequencing. Front. Genet. 2014;5:449. doi: 10.3389/fgene.2014.00449. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Liu Y., Ferguson J.F., Xue C., Silverman I.M., Gregory B., Reilly M.P., Li M. Evaluating the impact of sequencing depth on transcriptome profiling in human adipose. PLoS ONE. 2013;8:e66883. doi: 10.1371/journal.pone.0066883. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Kaisers W., Boukamp P., Stark H.J., Schwender H., Tigges J., Krutmann J., Schaal H. Age, gender and UV-exposition related effects on gene expression in in vivo aged short term cultivated human dermal fibroblasts. PLoS ONE. 2017;12:e0175657. doi: 10.1371/journal.pone.0175657. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Dobin A., Davis C.A., Schlesinger F., Drenkow J., Zaleski C., Jha S., Batut P., Chaisson M., Gingeras T.R. STAR: Ultrafast universal RNA-seq aligner. Bioinformatics. 2013;29:15–21. doi: 10.1093/bioinformatics/bts635. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Trapnell C., Pachter L., Salzberg S.L. TopHat: Discovering splice junctions with RNA-Seq. Bioinformatics. 2009;25:1105–1111. doi: 10.1093/bioinformatics/btp120. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Langmead B., Salzberg S.L. Fast gapped-read alignment with Bowtie 2. Nat. Methods. 2012;9:357–359. doi: 10.1038/nmeth.1923. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from International Journal of Molecular Sciences are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES