Abstract
Background
RNAseq and its variant differential RNAseq (dRNAseq) are today routine methods for transcriptome analysis in bacteria. While expression profiling and transcriptional start site prediction are standard tasks today, the problem of identifying transcriptional units in a genomewide fashion is still not solved for prokaryotic systems.
Results
We present RNASEG, an algorithm for the prediction of transcriptional units based on dRNAseq data. A key feature of the algorithm is that, based on the data, it distinguishes between transcribed and untranscribed genomic segments. Furthermore, the program provides many different predictions in a single run, which can be used to infer the significance of transcriptional units in a consensus procedure. We show the performance of our method based on a wellstudied dRNAseq data set for Helicobacter pylori.
Conclusions
With our algorithm it is possible to identify operons and 5’ and 3’UTRs in an automated fashion. This alleviates the need for labour intensive manual inspection and enables largescale studies in the area of comparative transcriptomics.
Keywords:
RNAseq; Differential RNAseq; Segmentation; Transcriptional unit; Transcriptome; Transcriptional start site; Dynamic programmingBackground
The development of RNAseq [1] has boosted research on prokaryotic transcriptomes throughout the last years. It can be used for the detection of novel transcripts, e.g. noncoding RNAs (ncRNAs), analysis of differential expression in response to environmental stimuli and others. Recently, a variant called dRNAseq was introduced [2], which allows the transcriptomewide mapping of transcriptional start sites (TSSs). This provides a means to reliably detect the 5’end of transcripts. But what about the 3’end?
The accurate determination of transcript boundaries is useful for several reasons. It enables the identification of promoter and terminator elements and, thus, UTRs which potentially carry regulatory elements. Furthermore, target prediction for ncRNAs will benefit from the knowledge of exact transcript limits and UTRs. The same holds true for expression analysis, since all reads mapping a transcript can be rigorously accounted for, which improves the precision. Not only expression levels might vary but also the transcript architecture, e.g. by differential processing or alternative TSSs. For these reasons it is of interest to have an automated procedure to detect transcript boundaries. Finally, the organization of genes into operons or transcriptional units can be easily elucidated when the genomic location of transcripts is known.
In the near past, highdensity genomic tiling microarrays were the method of choice for the characterization of complete transcriptomes. For this technology a segmentation method for the hybridization signal along genomic coordinates was proposed [3]. It makes use of a structural change model (SCM) which is fitted to the array data. The goal is to partition the data into blocks with ideally uniform expression and is achieved by computing the set of segments that minimizes the sum of squared residuals. An alternative approach for the analysis of highdensity oligonucleotide tiling arrays makes use of a hidden Markov model [4].
To the best of our knowledge no general method for transcript boundary estimation based on RNAseq data is available. CUFFLINKS[5] and SCRIPTURE[6] perform best with eukaryotic mRNAseq data, which captures polyAtailed transcripts only, and put a focus on the detection of splice variants. Similar considerations hold true for denovo transcript assemblers such as ABYSS[7] and SOAPDENOVO[8]. Prokaryotic transcripts do not have a polyA tail and, thus, bacterial RNAseq provides information on merely any RNA present in the cell. On the one hand, this promises to provide the full picture of a bacterial transcriptome, but on the other hand, this also increases the complexity for its analysis. Nevertheless, we set out to develop a method for transcript boundary determination based on RNAseq data mapped to a reference genome. More precisely, we chose dRNAseq data as the input, since it explicitly provides information on transcriptional start sites.
As a starting point we chose the SCM based segmentation algorithm from [3]. We reimplemented it in C++ and added the ability for parallel computation using openMP ( http://openmp.org webcite). The major improvement is achieved by extending the segmentation method to make use of dRNAseq data, especially data from libraries enriched for primary transcripts. For this, we modify the dynamic programming based optimization, such that segments satisfy certain userdefined constraints. This reduces the search space leading to improved speed and accuracy of the algorithm and further allows us to discriminate transcript from nontranscript segments. Finally, we present a method to compute consensus segments, which makes use of the fact that the algorithm intrinsically computes many results. This integrative step results in segments with improved confidence.
Implementation
In the following we will describe the algorithm implemented in RNASEG. Due to the close relation to the algorithm developed in [3] we reuse large parts of their notation.
dRNAseq data
The data provided by a dRNAseq experiment is in the simplest case a set of sequencing reads from two libraries. One library consists of sequencing reads from RNA enriched for primary transcripts, and the second is untreated. Throughout this manuscript we name the reads primary and secondary, respectively. Ideally, sequencing reads from primary libraries start at the native 5’end of a transcript, such that the 5’ends of primary reads represent the 5’ends of native primary transcripts. Sequencing reads from secondary libraries start at the 5’end of secondary transcripts. These may either be degradation or processing products or, as for the data used here, the result of a fragmentation procedure. Note that if the secondary library is treated with tobacco acid pyrophosphatase (TAP) it also contains primary transcripts, which would otherwise not be accessible for ligation due to the pyrophosphate. TAP treatment, although used in [2], is not mandatory and to make RNASEG as widely applicable as possible, we provide means to handle the effects of this treatment (see below).
We store for each position i in the genome the number of primary read starts P_{i}, the coverage by primary reads and the coverage by secondary reads .
Structural change model segmentation
The data used for modeling consists of the number of primary read starts (P) and the secondary read coverage (C^{s}) for each position in the genome. The coverage by secondary reads is expected to be uniformly distributed over the fulllength of the transcript and, thus, RNASEG uses this data to compute the sum of squared residuals for a candidate segment. Primary read start information is used as a constraint for start positions of transcript segments and for differentiating between transcript and nontranscript segments. In the following, we recapitulate the definition from [3] and explain our extensions to incorporate dRNAseq data.
Fitting the model
The SCM models the log_{2} normalized as a piecewise constant function of genomic coordinates as shown in (1).
where i = 1,…,n is the genomic position, , cp_{1},…,cp_{r} are parameters for segment boundaries also called change points, cp_{1} = 1 and cp_{R+1} = n + 1, R is the maximal number of segments, μ_{r} is the mean log_{2} normalized C^{s} for segment r and ε_{i} are the residuals.
The model is fitted to the data by minimizing the sum of squared residuals as shown in (2) for a predefined number of segments R.
The minimization which leads to the optimal set of parameters is done by the dynamic programming (DP) algorithm described in the following section.
Optimization
The tool RNASEG implements an extended version of the DP algorithm available from the Bioconductor tilingArray package, which we call the original algorithm from now on. It calculates the minimal sum of squared residuals in the first step and determines the optimal set of change points during backtracing.
The original algorithm starts with computing the cost matrix G which is the main input for the DP procedure that finds the optimal segmentation. The cost matrix contains for each entry G_{i,k} the sum of squared residuals of the segment from i to i + k  1. The calculation of the cost matrix for arbitrary segments would take quadratic time and space with respect to the genome size n. This renders the algorithm inapplicable on a genome wide scale. For our algorithm we reduce the complexity by restricting the segment length to a maximum value , resulting in a complexity of for G. This strategy was already chosen in the original algorithm but using a fixed, rather than a userdefined .
Just like the original algorithm, our method uses two matrices for calculating the optimal segmentation. The scoring matrix stores in each entry the optimal cost for the segmentation from 0 to i with cp change points. The traceback matrix contains in the index of the rightmost change point in the optimal segmentation from the start to i with cp change points. The major difference of our algorithm to the original one is, that in order to decide whether a segment is a transcript or a nontranscript segment our algorithm checks if the current segment suffices some constraints, such as enough primary reads at the segment start or a mean coverage by secondary reads above a threshold. If this is the case, the change point belongs to a transcript segment and is stored as a positive positional value in the mt matrix. Otherwise the change point denotes the start of a nontranscript segment and is assigned a negative positional value. A segment may even be neither a transcript nor a nontranscript, which is for example reasonable for segments with high mean coverage but without a valid TSS. In such a case, the segment is marked invalid and not further considered.
In differentiating between transcript and nontranscript segments, the algorithm allows only for transcript segments to appear one after another, or as an alternating order of transcript and nontranscript segments. The occurrence of two adjacent nontranscript segments is prevented by checking the previous change point in the mt matrix. This restriction is not only biologically reasonable but also results in a speedup of the calculation.
The initialization and the recursions for the mI matrix are shown in (3) and (4). The algorithm computes the optimal segmentation for all different numbers of change points up to .
where val(i,j,cp) is a function that checks if the segment from i to j for cp change points suffices the user defined thresholds for transcript or nontranscript segments. The individual checks are described in the following.
Segment constraints
In the following, (i,j) denotes a segment from position i to position j and cp denotes the number of change points of the current recursion.
A constraint that was already introduced above and is essential for the performance of the algorithm is the maximal segment length . In addition, the user can also impose a minimum segment length . The latter may be useful in cases where the dRNAseq library preparation includes a size selection step, such that only RNAs above a certain length are analyzed. Each segment (i,j) must satisfy .
A transcript segment (i,j) needs to start with a reasonable number of primary reads, say t. Therefore, the number of primary read starts at position i has to exceed t (P_{i} > t). This is a rather simplistic criterion, and we provide possible alternatives in the discussion, but still the complete method performs well, as will be shown later.
Due to differences in preparation of the secondary library, namely TAP treatment or not, the secondary libraries may also contain reads for primary transcripts. These may show up as blocks in the secondary read coverage at the start of some transcripts, e.g. cag11 and cag16 in Figure 1, while others (e.g. cagA in Figure 1) do not show this artifact. The existence of such a block artificially enlarges the cost for this segment and thus we introduce a way to skip these regions. Instead of requiring more than t reads at the starting position of a transcript segment, we search such a position in an area in front of a segment. The size of this search window (w) is a user defined parameter. In order to prevent multiple calculation of the same value an auxiliary array N is precomputed. Entry N_{i} stores the position q for which P_{q} > t and q ≤ i. If several q within i,…,iw satisfy this condition, the q with maximum P_{q} is chosen.
Figure 1. Chromosome section 563,000 to 583,000 from H. pylori 26695. The positional log10normalized coverage of primary read starts (black) and secondary reads (grey) for the forward (top) and the reverse strand (bottom) is visualized. Data for the forward strand is displayed with positive values above the annotation and for the reverse strand with negative values below. Annotated genes are represented by unfilled boxes. Predicted consensus transcript segments (T^{s}) are shown in grey and putative subtranscripts ( ) are shown as grey inlays. Transcripts from the maximum number of change points (T^{m}) are shown as dark grey boxes. TSSs and operons determined in [2] are indicated by filled and dotted arrows, respectively.
For highly abundant transcripts the enrichment for primary transcripts will not be perfect, thus reads from degradation products will misleadingly show up as primary reads. The user can choose to reduce the resulting increase in potential transcript segment start points, by setting a ratio r (0 ≤ r ≤ 1) between primary read starts and primary read coverage. This changes the way in which the N array is computed, such that N_{i} stores the position q for which holds true. Again the q with maximal P_{q} is chosen within i,…,i  w.
A segment (i,j) is classified as a transcript segment if i  N_{i} ≤ w. This remapping of the start position is reflected in the scoring scheme by replacing with in (4).
An essential feature of RNASEG is the discrimination between transcript and nontranscript segments. As described before, the mt matrix stores positive and negative positional values for transcript and nontranscript segments, respectively. A nontranscript segment is only allowed to follow a transcript segment, while transcript segments are not constrained, thus must hold true.
Additional constraints can be imposed on the mean coverage μ of segments. For transcript segments the user can provide a minimum cutoff a, which needs to be exceeded by transcript segments. Vice versa, for nontranscript segments the user may provide an upper limit u, which must not be exceeded by nontranscript segments. We use (5) to verify this.
Note, that we use the nonnormalized here, compared to the log_{2} normalized values for computing the G matrix. We feel that this is more intuitive for the user.
For certain numbers of change points, the imposed restrictions may lead to an invalid segmentation, i.e. for a certain position j in the genome no i can be found, such that (i,j) satisfies all constraints. We mark such instances by setting and . During the recursion, if a candidate segment does not satisfy , it is not considered a valid subsolution and, thus, ignored.
During traceback the positions of the optimal segmentation for each number of change points are stored in the result matrix th. The procedure works as shown in Algorithm 1. The two ifstatements check if the current trace contains a segment for which no valid segmentation could be computed during the recursion. In this case, the current backtracing is stopped and the corresponding change point number cp tagged invalid.
The output of the algorithm contains the transcript and nontranscript segments for each number of change points in GFF format. It is generated by parsing the change points stored in the th matrix thereby generating entries for transcript or nontranscript segments in the output file. Change point numbers which have been tagged invalid during backtracing will be ignored and will not appear in the output. For each segment the start position is the current change point i and the end position is located one position in front of the following change point.
Optimal segment number and consensus segments
RNASEG computes for each number of segments, the optimal set of change points. In other words, the algorithm does not provide the overall optimal solution, but rather many solutions which are optimal by themselves, i.e. for the given number of change points. The choice of the optimal number of change points is not trivial, as has already been stated in [3]. One can use information theoretical approaches, such as the AIC (Akaike’s Information Criterion) and BIC (Bayesian Information Criterion), but the authors finally suggest an empirical estimation based on positive control regions. In our opinion, this is not satisfying and we provide two ways to cope with this.
An intrinsic property of the constraints described above is that they limit the maximal number of transcript segments . Since a nontranscript segment has to be followed by a transcript, a maximum of segments are possible. During the calculation of NRNASEG determines how many positions satisfy the transcript start constraints, which gives an upper bound for . If RNASEG automatically lowers to , saving computation time and memory. The maximal number of change points for which a valid segmentation could be derived depends on all constraints and is available at the end of the run. This set of segments provides the highest resolution for the given constraints. For high quality data and reasonable constraints, it likely constitutes the final result.
Our second strategy makes use of all segmentations for the different change point numbers. For similar numbers of change points, the segment sets likely share a large number of segments. It is important to note that the computation does not enforce this behavior. In order to take advantage of this information we apply a consensus strategy. This strategy focuses on transcript segments (transcripts for short) and has essentially four steps:
• First, transcripts are collected from all numbers of change points, and their occurrence frequencies determined. We use this occurrence frequency as a proxy for the quality of the prediction.
• Second, internal TSSs may split a long transcript into two or more short transcripts. Hence, transcripts that together correspond to a longer transcript, i.e., subtranscripts, are chained and their occurrence frequencies added to the long version.
• Third, transcripts from different numbers of change points may differ only by a few positions. Thus, we merge transcripts that overlap to 99% or more. For this, we keep the more frequent variant and sum up the occurrence frequencies.
• Fourth, for competing (partially overlapping) transcripts we retain the one with higher cumulated occurrence frequency, as this is supported by a larger number of individual segmentations.
As a result, the segment sets for the various change point numbers are merged and provided in a single output file in GFF format, ready for visualization in popular genome browsers. Furthermore, transcript segments are augmented by their occurrence frequencies among all change point numbers, which allows to infer the significance of the actual transcript. As a byproduct this script allows to merge results for the different strands as well as of several partial analyses of adjacent, possibly overlapping, genomic regions. Thus, it is easy to split the analysis of a complete genome into small, overlapping pieces (say 100 kb), do the segmentation piecewise, and merge the individual results. This decreases overall runtime, since for shorter sequences can also be reduced.
Results
We applied RNASEG to the data from [2] for Helicobacter pylori 26695. The individual steps are described in the following.
Data
We downloaded all data for the experiments SRX014058, SRX014056, SRX014054, SRX014051, SRX014034, SRX014033, SRX014031, SRX014018, SRX01401317 from the NCBI Sequence Read Archive (SRA). The samples SRX01401317 represent Solexa sequencing results of untreated RNA, while the other samples correspond to 454 sequences from primary enriched libraries. In total approx. 2 million primary and 83 million secondary reads were obtained. All reads were polyA trimmed at the 3’end and 454 reads were additionally subjected to a 5’ adapter clipping (fixed length clipping using 28 bases).
Read mapping and input file generation
We used SEGEMEHL[9] to map the reads to the genome, requiring a minimum accuracy of 85% and utilizing the cooptimal matching strategy.
In the following a positional coverage file for each strand was generated where the primary read starts and coverage were calculated as the maximum of the primary libraries. The secondary coverage is the mean of the secondary libraries. In both cases the values were normalized beforehand via the number of mapped reads for the respective library. In order to be suitable as input for RNASEG the data was arranged in tabdelimited format as follows: Each row has four values corresponding to primary read starts, primary coverage, secondary read starts and secondary coverage. The genomic position is not represented explicitly, but given implicitly by the position of the row in the file. Thus, values in row 1 correspond to position 1 in the genome, row 2 to position 2, and so on. We selected this format since it can be directly visualized by the Artemis genome browser [10] as a user graph. Together with the output of RNASEG in GFF format this allows a simple and fast visualization of the experimental data together with the prediction. The RNASEG distribution provides a python script to convert mapping files in SAM format to the described format.
Application
In order to speed up the computation, we analyzed the 1,667,867 nt long genome in 17 parts of 103,112 nt length where adjacent parts overlap by 10,000 nt. RNASEG was applied with the following constraints: primary read start threshold t = 10, min./max. segment length , maximal no. of change points , transcript mean coverage cutoff a = 0.5, nontranscript max. mean coverage u = 0.5, and read start ratio r = 0.5. These settings were derived by analyzing small sample regions. The results were combined using our consensus strategy described above and transcripts with an occurrence frequency below discarded. In total, 1,696 transcripts and 2,147 subtranscripts were predicted. We also extracted the transcripts for the maximal number of change points for each analyzed part and joined those that meet without a gap within an annotated gene, resulting in 2,150 transcripts. We term transcripts and subtranscripts derived by summarizing T^{s} and and those from the maximum change points T^{m}.
Figure 1 shows the results for section 563,000 to 583,000. This region comprises the cag pathogenicity island, which was also described in detail in [2]. Overall, the coverage plots give an impression about the complexity of the data. T^{m} segments (dark grey boxes) or blocks of adjacent T^{s} segments (grey boxes) nicely reflect the genomic organization in this region. The two alternative operons (cag1825 and cag1822) suggested in [2] can be confirmed when taking into account the (light grey inlays). In total, 39 and 57 T^{m} and segments, respectively, were predicted from which 23 and 31, respectively, correspond to the 31 manually selected TSSs from [2]. Among them the acid induced internal TSS in cag23.
The second example in Figure 2 shows the region from position 71,500 to 78,500 and comprises the urease operon (ureAureH). Again our analysis confirms the operon organization ureAB and ureIEFGH presented in [2], especially for the T^{m} segments that show perfect agreement. Sharma et al.[2] manually derived operon structures by taking into account the operon prediction from the DOOR [11] database. We extracted those operons described as new, confirmed, alternative or extended and neglected those termed ambiguous. This resulted in 332 operons, some of which had two or more proposed alternatives, which we used as our reference set. For the predicted segments we defined operons as those genes overlapping the same transcript segment. For each operon from the reference set we looked for the closest predicted segment, where the distance was defined by the number of different genes. 234 out of 332 operons were equal, 41 differed by one gene, 22 by two, 19 by more than two, and 16 operons were not predicted at all. In addition, 23 new operons were predicted by RNASEG.
Simulated data
To test the influence of the parameters on the performance of RNASEG we used simulated data. Since no dRNAseq read simulator is currently available we modified an RNAseq read simulator, namely RNASeqReadSimulator [12] as follows: First, reads are Poisson distributed over the transcript and, second, a userdefined fraction between 0–100% is assigned to the first position, which simulates the enrichment of primary transcripts in the primary dRNAseq library. The simulation scripts are part of the RNASEG distribution. We simulated a primary (50% primary reads) and a secondary library with approx. 50 million reads each, and applied RNASEG with varying values for the primary read start cutoff P, the mean transcript coverage cutoff a and the mean nontranscript coverage cutoff u. We used the FMeasure and the fraction of recovered reads from the secondary library to assess the performance. The results are summarized in Table 1. RNASEG achieves a maximal FMeasure of 0.93, but interestingly the fraction of recovered sequencing data in transcript segments reaches 100%. The reason for this is that the section we analyzed contains genes for which very few or even no reads were simulated. If we would count these as true negatives the Fmeasure would be 1.0. The Fmeasure drops to 0.67 for high values of a and u, but still the fraction of recovered sequencing data stays high (above 97%). This shows, that mainly genes with low read numbers are affected.
Table 1. RNASEG results on simulated data
Performance
As mentioned before, we restrict the computation allowing only for a maximum segment length . Nevertheless the algorithm is still computationally demanding when applied on a genomic scale. Memory consumption can be estimated as follows. The dominating elements are the matrices G, mI and mt and their sum accounts for over 99% of the memory consumption. Given that each value is stored in 8 bytes (double precision float) the G and mI matrices need and bytes of memory, respectively. The mt matrix stores integer values needing only 4 bytes and thus its memory consumption is , which is half that of mI. In total the memory consumption can be estimated with the equation bytes.
The runtime scales linearly with n, and each. For each cp we compute optimal segmentations for each 0 < i ≤ n. Interestingly, the computation for each i depends solely on results from the previous change point numbers, thus allowing for parallel computation over all i. For this we make use of openMP and the runtime scales nearly reciprocallinear with the number of threads. Computation of our presented results took roughly 8 hours, using 30 CPU cores (AMD Opteron 6282 SE) and a maximum of 12 GB of memory.
RNASEG also checks the values of and for plausibility. During the computation of the array N, the algorithm counts the number of possible starts π and determines the largest gap between two adjacent starts δ. If it is reduced to 2π + 1 and if it is increased to . The conservative increase of is a compromise between increased runtime and the chance to get a valid segmentation. Note that a gap between putative TSSs may be overcome by two segments, one transcript and one nontranscript segments. Thus, in theory gaps of size may be segmented correctly.
The parameter t controls the number of putative transcript starts, and thus effects the values of and . As a rule of thumb, the higher t, the lower and the higher . For our simulated data this effect is reflected by decreased runtimes for higher values of t. Memory consumption was more or less constant at 46 Gb because the automatically adjusted numbers (273, 255 and 171 for t = 1, t = 100 and t = 1,000 respectively) were on a relatively low level compared to and n (20,000 and 302,371, respectively), which dominate memory usage.
Discussion
Using the SCM approach we developed a tool, namely RNASEG, for the mapping of 5’ and 3’ transcript boundaries based on dRNAseq data. Previous dRNAseq based studies on bacteria [2,13] mainly made use of primary libraries to identify different classes of TSSs, but neglected 3’ends. These are of special interest for cisantisense or transacting sRNAs which lack a coding sequence to determine their approximate range in the genome. Our results show that, despite the partly noisy data, RNASEG performs well and can be used to infer transcriptional units from dRNAseq experiments. Compared with a manually curated operon prediction, our method reconstructs 70% of the known operons and misses many others by only a few genes. This failure can be mainly attributed to the presence of internal TSSs, which result in the prediction of several adjacent transcripts rather than a long one. Furthermore, these alternative transcripts might constitute interesting operon variants. Availability of more robust data together with algorithmic improvements, as described below, will likely yield even better results.
We expect predicted 5’ends of transcripts to be more accurate than their 3’ends for two reasons. First, primary libraries within a dRNAseq experiment provide distinct information on the 5’ends of transcripts and we do not have such data for 3’ends. Second, transcription termination is not as specific as transcription initiation. Especially, Rhoindependent termination does not lead to defined 3’ends since it is a dynamic process guided by the RNA itself ( [14], Review). The thermodynamic characteristics of the terminator hairpin and the successive Utail heavily influence termination efficiency [15] and readthrough is a common phenomenon.
A recent study of the transcriptome of the cyanobacterium Synechococcus elongatus PCC 7942 [16] also applies the SCM approach for the identification of noncoding transcripts. Here, for noncoding transcripts the segmentation is applied strandspecific to 15 kb intervals with 5 kb overlaps and 30 change points. Segments with a mean coverage below two reads per nucleotide are classified as nontranscribed regions and removed together with segments overlapping previously defined transcripts for annotated genes. For the remaining segments the 5’ and 3’end are adjusted using a statistical approach, which models the positional drop in read coverage by a binomial test. By design, this test compares positions 1 and 2 nt apart, thus it is susceptible to noise, especially for low coverage transcripts.
The two widely used tools for transcript assembly in eukaryotic studies, CUFFLINKS[17] and SCRIPTURE[6], are tailored to detect transcript isoforms. They are designed for RNAseq of mRNAs, which makes use of the polyAtail for cDNA synthesis, and perform best with pairedend data. In contrast to SCRIPTURE, CUFFLINKS can be applied to nonpairedend data. Although the authors do not recommend CUFFLINKS for the analysis of bacteria [18], we have applied it to our data with default settings and got no reasonable results (data not shown). We think, that the problems mainly originate from the data. RNAseq and also dRNAseq data from bacterial transcriptomes harbour much more noise than polyAguided RNAseq data from eukaryotes. Furthermore, our data does not provide pairedend information.
Currently, TSS identification within RNASEG is mainly based on primary read starts that have to exceed a given threshold. False positives may be ruled out by the fact that a TSS has to be connected to a region satisfying the transcript segment constraints. For low abundant transcripts, a constant threshold may be too simplistic and we may choose a more sophisticated method in a future version. Here, the approach used in [19] seems promising to us, since it explicitly makes use of the two libraries provided by a dRNAseq experiment. Roughly speaking, the read start counts of both the libraries are modeled by a Poisson distribution and the difference of these distributions (which follows a Skellam distribution) is used to compute pvalues, based on which significant TSSs are identified.
The sequencing costs will drop substantially within the next years, thus more sophisticated data sets will become affordable. Especially, data for different growth conditions and with biological replicates will become standard. RNASEG can be easily extended to make use of these. For example, replicate data will contribute equally to the sum of squared residuals, as it is already implemented in [3]. Different growth conditions may be used in such a fashion, that the change of the primary starts at the mapped transcript start should be similar to the change of the mean secondary coverage of the complete transcript. The relation of these two measures is likely not linear and, thus, needs to be carefully analyzed.
Runtime and memory consumption are quite large for the current version of RNASEG. We have several ideas how to improve on this. One solution would be to decrease the resolution. At the moment we work with singlenucleotide resolution, but switching to, e.g., 10 nt resolution would decrease runtime and memory consumption nearly by a factor of 100. Of course, we would loose accuracy but mainly for the 3’ends since the mapping of segment starts to positions with a reasonable number of primary starts can still be done with single nucleotide precision. Memory consumption would benefit in the same way from the reduced resolution.
Conclusions
With RNASEG we provide the first method for the prediction of transcription units tailored for dRNAseq data. It will help in wholetranscriptome characterization and in the identification of operon structures and 5’ and 3’UTRs. The latter are important regions in posttranscriptional gene regulation by ncRNAs and, thus, the results will improve subsequent studies, such as ncRNA target prediction or the identification of cisregulatory elements and transcription termination signals.
Availability and requirements
Project name: RNASEG;
Project home page:http://www.comptrans.unifreiburg.de/Software/RNAseg webcite;
Operating system(s): Platform independent;
Programming language: C++;
Other requirements: Boost libraries >= 1.23;
License: GNU GPLv2
Competing interests
The authors declare that they have no competing interests.
Authors’ contributions
TB implemented the software and drafted the manuscript, MK analysed the data, BV conceived of, designed and coordinated the study and wrote the manuscript. All authors read and approved the final manuscript.
Acknowledgements
This work was in part supported by the Deutsche Forschungsgemeinschaft [Vo 1450/21 to B.V.]. The article processing charge was funded by the German Research Foundation (DFG) and the Albert Ludwigs University Freiburg in the funding programme Open Access Publishing.
References

Wang Z, Gerstein M, Snyder M: RNASeq: a revolutionary tool for transcriptomics.
Nat Rev Genet 2009, 10:5763. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Sharma CM, Hoffmann S, Darfeuille F, Reignier J, Sittka SFA, Chabas S, Reiche K, Hackermüller J, Reinhardt R, Stadler PF, Vogel J: The primary transcriptome of the major human pathogen Helicobacter pylori.
Nature 2010, 464(7286):250255. PubMed Abstract  Publisher Full Text

Huber W, Toedling J, Steinmetz LM: Transcript mapping with highdensity oligonucleotide tiling arrays.
Bioinformatics 2006, 22(16):19631970. PubMed Abstract  Publisher Full Text

Nicolas P, Leduc A, Robin S, Rasmussen S, Jarmer H, Bessières P: Transcriptional landscape estimation from tiling array data using a model of signal shift and drift.
Bioinformatics 2009, 25(18):23412347. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Roberts A, Pimentel H, Trapnell C, Pachter L: Identification of novel transcripts in annotated genomes using RNASeq.
Bioinformatics 2011, 27(17):23252329. PubMed Abstract  Publisher Full Text

Guttman M, Garber M, Levin JZ, Donaghey J, Robinson J, Adiconis X, Fan L, Koziol MJ, Gnirke A, Nusbaum C, Rinn JL, Lander ES, Regev A: Ab initio reconstruction of cell typespecific transcriptomes in mouse reveals the conserved multiexonic structure of lincRNAs.
Nat Biotechnol 2010, 28(5):503510. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Birol I, Jackman SD, Nielsen CB, Qian JQ, Varhol R, Stazyk G, Morin RD, Zhao Y, Hirst M, Schein JE, Horsman DE, Connors JM, Gascoyne RD, Marra MA, Jones SJM: De novo transcriptome assembly with ABySS.
Bioinformatics 2009, 25(21):28722877. PubMed Abstract  Publisher Full Text

Li R, Yu C, Li Y, Lam T, Yiu S, Kristiansen K, Wang J: SOAP2: an improved ultrafast tool for short read alignment.
Bioinformatics 2009, 25(15):19661967. PubMed Abstract  Publisher Full Text

Hoffmann S, Otto C, Kurtz S, Sharma CM, Khaitovich P, Vogel J, Stadler PF, Hackermüller J: Fast mapping of short sequences with mismatches, insertions and deletions using index structures.
PLoS Comput Biol 2009, 5(9):e1000502. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Rutherford K, Parkhill J, Crook J, Horsnell T, Rice P, Rajandream M, Barrell B: Artemis: sequence visualization and annotation.
Bioinformatics 2000, 16:944945. PubMed Abstract  Publisher Full Text

Mao F, Dam P, Chou J, Olman V, Xu Y: DOOR: a database for prokaryotic operons.
Nucl Acids Res 2009, 37:D459D463. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

2013.
[ https://github.com/davidliwei/RNASeqReadSimulator webcite]

Mitschke J, Georg J, Scholz I, Sharma CM, Dienst D, Bantscheff J, Voß B, Steglich C, Wilde A, Vogel J, Hess WR: An experimentally anchored map of transcriptional start sites in the model cyanobacterium Synechocystis sp. PCC6803.
Proc Natl Acad Sci U S A 2011, 108(5):21242129. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Landick R: RNA polymerase slides home: pause and termination site recognition.
Cell 1997, 88(6):741744. PubMed Abstract  Publisher Full Text

Lesnik EA, Sampath R, Levene HB, Henderson TJ, McNeil JA, Ecker DJ: Prediction of rhoindependent transcriptional terminators in Escherichia coli.
Nucleic Acids Res 2001, 29(17):35833594. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Vijayan V, Jain IH, O’Shea EK: A high resolution map of a cyanobacterial transcriptome.
Genome Biol 2011, 12(5):R47. PubMed Abstract  BioMed Central Full Text  PubMed Central Full Text

Trapnell C, Williams BA, Pertea G, Mortazavi A, Kwan G, van Baren MJ, Salzberg SL, Wold BJ, Pachter L: Transcript assembly and quantification by RNASeq reveals unannotated transcripts and isoform switching during cell differentiation.
Nat Biotechnol 2010, 28(5):511515. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Trapnell C: Can i use cufflinks with RNASeq data from bacteria?
2014.

Schmidtke C, Findeiß S, Sharma CM, Kuhfuß J, Hoffmann S, Vogel J, Stadler PF, Bonas U: Genomewide transcriptome analysis of the plant pathogen Xanthomonas identifies sRNAs with putative virulence functions.
Nucleic Acids Res 2012, 40(5):20202031. PubMed Abstract  Publisher Full Text  PubMed Central Full Text