Skip to main content

trumpet: transcriptome-guided quality assessment of m6A-seq data



Methylated RNA immunoprecipitation sequencing (MeRIP-seq or m6A-seq) has been extensively used for profiling transcriptome-wide distribution of RNA N6-Methyl-Adnosine methylation. However, due to the intrinsic properties of RNA molecules and the intricate procedures of this technique, m6A-seq data often suffer from various flaws. A convenient and comprehensive tool is needed to assess the quality of m6A-seq data to ensure that they are suitable for subsequent analysis.


From a technical perspective, m6A-seq can be considered as a combination of ChIP-seq and RNA-seq; hence, by effectively combing the data quality assessment metrics of the two techniques, we developed the trumpet R package for evaluation of m6A-seq data quality. The trumpet package takes the aligned BAM files from m6A-seq data together with the transcriptome information as the inputs to generate a quality assessment report in the HTML format.


The trumpet R package makes a valuable tool for assessing the data quality of m6A-seq, and it is also applicable to other fragmented RNA immunoprecipitation sequencing techniques, including m1A-seq, CeU-Seq, Ψ-seq, etc.


Recent studies have shown that reversible N6-Methyl-Adnosine (m6A) RNA methylation plays important roles in regulating many cellular processes, including mRNA expression, splicing, translation, RNA-protein interaction, cell differentiation, etc. [1, 2]. Elucidating functions of RNA methylation is one the most active areas of research. Currently, the most widely used sequencing technology for profiling transcriptome-wide distribution of RNA methylation is MeRIP-seq or m6A-seq, which pulls down the RNA fragments that carry N6-Methyl-Adnosine modification with an anti-m6A antibody in the immunoprecipitation (IP) stage before sending them for sequencing [3, 4]; often, an input control sample is also generated to serve as the background control.

In recent years, m6A-seq has been widely applied to various species, such as, human, mouse, fly, zebrafish, rice and yeast, to uncover the functions of RNA m6A methylation. However, due to the chemical instability of RNA molecules and the intricate experiment procedures, special care is needed to ensure the quality of m6A-seq experiments, and often the data generated from m6A-seq technology may suffer from various defects, such as, DNA contamination, RNA degradation, and immunoprecipitation failure. Hence, assessing the quality of m6A-seq data is necessary to ensure that they are suitable for subsequent analysis.

Data quality assessment has been a critical issue for high-throughput sequencing technology in general, and a number of software tools have been developed for this purposes, including, e.g., FastQC for general sequencing data quality [5], RNA-SeQC and RseQC for RNA-seq data [6, 7], and CHANCE for ChIP-seq data [8]. However, due to the unique characteristics of m6A-seq data, neither of the aforementioned tools along is sufficient. To address this shortfall, we developed an R package, trumpet, which stands for transcriptome-guided quality assessment of methylated RNA immunoprecipitation sequencing data. The trumpet package takes the aligned BAM files from m6A-seq data together with the transcriptome information as the inputs to generate a quality assessment report in the HTML format, which covers a number of metrics relevant to the m6A-seq data quality.


The trumpet R package takes the aligned BAM files of m6A-seq data together with the transcriptome annotation as the inputs, and returns an assessment report concerning the data quality with a single line of R command. The transcriptome annotation is necessary for separating the signal (transcribed regions) from the noise (non-transcribed regions), and may be provided as a GTF file or converted from other formats into a TxDb object [9]. This package supports the down-sampling of reads to ensure that the comparison is not affected by the different sequencing depths (library size) of the samples.

The quality of m6A-seq data is assessed by the trumpet package from mainly 3 perspectives, including (1) statistics of sequencing reads distribution with respect to different genomic regions; (2) the strength of the immunoprecipitation signal evaluated by the exome signal extraction scaling (ESES) and other statistical approaches; (3) comparison between different biological replicates to identify possible outliers. These assessment components are detailed in the following with a sample dataset that profiles midbrain gene under wild type and FTO knockdown conditions [10, 11]. The source code (see Additional file 1) and a comprehensive user’s manual are freely available at GitHub:

Statistics of sequencing reads

This module is aimed to gain overall insights into samples via statistics of read counts, which is probably the most fundamental way to check the quality of samples. Relatively low number of reads or distinct proportion of reads mapped to a specific genomic region may be naturally associated to poor data quality due to unbalanced sequencing in sample multiplexing, DNA contamination or other bias during the experimental procedures. In this section, we mainly evaluate read alignment and their distribution, with which we inspect the sequencing depth of the input files, the heterogeneity of read coverage, the read alignment mapped to different genomic regions, such as exon, intron, 5’UTR, CDS and 3’UTR.

The Table 1 summarized the read alignment information from 6 m6A-seq samples, which profile the m6A epitranscriptome [12] in mouse midbrain under FTO knock-down [11]. It is observed that sample IP2 with GEO accession number GSM1147022 has less reads mapped to 3’UTR (29.0%) compared with the other samples (36.93, 34.97, 37.41, 36.27 and 37.63%), which may be due to the 3′ bias during sample preparation [13].

Table 1 Number of Reads Aligned to Different Genomic Regions

Whole-transcriptome heterogeneity of read coverage

In order to show the heterogeneity of read coverage in the entire transcriptome due mainly to different levels of gene expression, PCR artifacts and randomness, we used bin-based approach to check the percentage of regions covered different number of reads. To make the result comparable and not affected by different sequencing depth, the same number of reads are randomly selected from each sample using the built-in option. In Table 2, IP1, IP2 and IP3 are three sample datasets from the mouse midbrain gene under FTO knockdown [11]. The sample IP2 has a higher percentage of reads in exonic regions and more regions covered with > 104 reads compared with the other samples, suggesting a higher degree of heterogeneity in read coverage, which may indicate potential PCR artifacts during sample preparation or sequencing. This has been confirmed by the FASTQC [5] software, where the sample IP2 has highest Kmer content among the samples (fold enrichment of the most over-represented Kmer: 33.31 in IP2 vs 23.61 and 27.63 in IP1 and IP3). PCR artifacts may further exacerbate the existing heterogeneity in reads coverage of an m6A-seq experiment.

Table 2 Exonic Regions of Different Read Coverage

Visualization of reads distribution

It is known that, RNA m6A methylation is enriched near the stop codon. In this module, the distribution of reads in different genomic regions (5’UTR, CDS and 3’UTR) is visualized. Since there exist highly abundant genes, whose m6A enrichment signal may dominate the analysis if raw reads are directly used in the analysis, the same weight is assigned to all the detected genes regardless of their read coverage. Specifically, genes that are not expressed or have less than 10 reads are first excluded; then, for the remaining genes, the read coverages at different regions of the same transcript are counted and then standardized (divided by the read coverage’s mean counts). The quantiles (25, 50 and 75%) of the standardized read coverage at different genomic regions is then plotted as shown in Fig. 1.

Fig. 1
figure 1

Distribution of reads. Figure shows that the reads are strongly enriched near stop codon in the IP sample (a) compared with the input sample (b), which is an expected pattern of the in an m6A-seq experiment. The enrichment is observed at all 3 different quantiles (25, 50 and 75%). The figure is plotted with metaPlotR R/Bioconductor package [34] via the trumpet package

Assessing immunoprecipitation efficiency with ESES

A major aspect of the m6A-seq data quality is the efficiency of immunoprecipitation, which can be reflected by the enrichment of immunoprecipitation signal. To evaluate the enrichment of m6A signal in the IP sample, trumpet package uses a metric called exome signal extraction scaling (ESES), which is a modified form of the signal extraction scaling (SES) approach previously developed for assessing the signal of ChIP-seq data [8]. The ESES approach is different from the SES approach in two aspects. Firstly, the genome background of ChIP-seq data used in SES approach was replaced by standardized gene-specific exome background of MeRIP-seq data to exclude the influence of regions that do not carry meaningful signal (introns and non-genic regions). Secondly, the read coverage in MeRIP-seq data is normalized with respect to the expression level of that gene to eliminate the impact of different expression level of genes. More specifically, we first divide a gene into n bins and count the number of reads mapped to each bin. Let yt, g, i be the read count of the i-th bin on the g-th gene in the IP sample, andyc, g, i represent the read count of the i-th bin on the g-th gene in the Input sample. The standardized the read count that eliminates the difference in expression of genes can be calculated as

$$ {\overline{y}}_{t,g}=\frac{\sum_{\forall i}{y}_{t,g,i}}{n} $$
$$ {\overline{y}}_{c,g}=\frac{\sum_{\forall i}{y}_{c,g,i}}{n} $$
$$ {\widehat{y}}_{t,g,i}={y}_{t,g,i}/{\overline{y}}_{t,g} $$
$$ {\widehat{y}}_{c,g,i}={y}_{c,g,i}/{\overline{y}}_{c,g} $$

where \( {\overline{y}}_{t,g} \) and \( {\overline{y}}_{c,g} \) are the average number of reads mapped to each bin of the g-th gene in the IP and Input sample, respectively, which are proportional to the abundance of that gene and the sequencing depth (total number of reads) of sample, and \( {\widehat{y}}_{t,g,i} \) and \( {\widehat{y}}_{c,g,i} \)are the enrichment signal and the background signal, respectively, which are normalized by \( {\overline{y}}_{t,g} \) and \( {\overline{y}}_{c,g} \), respectively. We then pool all the signal \( \left\{{\widehat{y}}_{t,g,i}|\forall \left(g,i\right)\right\} \) together, and sort them in an increasing order to obtain a list of order statistics \( \left\{{\widehat{y}}_{t,(i)}\right\} \), where \( {\widehat{y}}_{t,(i)} \) denotes the i-th element of \( \left\{{\widehat{y}}_{t,(i)}\right\} \), which is also the standardized read count of the bin with the i-th least number of the normalized reads mapped in \( \left\{{\widehat{y}}_{t,g,i}|\forall \left(g,i\right)\right\} \). By this way, the bins that are enriched with m6A signals are likely to appear in the end of the list. If we assume that there are a total of N bins on the transcriptome surveyed in this analysis, then we should have (i)  {1, 2, , N}. Meanwhile, let \( \left\{{\widehat{y}}_{c,(i)}\right\} \) be the list of normalized read count of the merged Input sample that has been reordered to match \( \left\{{\widehat{y}}_{t,(i)}\right\} \), i.e., let \( \left\{{\widehat{y}}_{c,(i)}\right\} \) and \( \left\{{\widehat{y}}_{t,(i)}\right\} \) denote the normalized read count of the same ordinal bin in the Input and IP sample, respectively. The following procedures are similar to the original SES metrics. We denote the cumulative summation of \( \left\{{\widehat{y}}_{t,(i)}\right\} \) and \( \left\{{\widehat{y}}_{c,(i)}\right\} \) by.

$$ {y}_t(j)=\sum \limits_{i=1}^j{\widehat{y}}_{t,(i)} $$
$$ {y}_c(j)=\sum \limits_{i=1}^j{\widehat{y}}_{c,(i)} $$

If we consider a total of N bins on the transcriptome surveyed in this analysis, it is then possible to calculate a fraction of cumulative immunoprecipitation signal in the IP sample as pj = yt(j)/yt(N) and also the cumulative background information in the input sample asqj = yc(j)/yc(N). Because the bins are arranged in an increasing order of normalized read count, the bins that are enriched with m6A signal are likely to appear in the very end of the list. For this reason, as j increases from 1 to N, pj should first increases slower than qj before reaching bins absent of m6A and then increases faster than qj afterwards. Moreover, qj − pj, which computes the difference in the cumulative percentage between IP and Input samples, will also first increase from 0 with as j increases but decrease rapidly once the bins with sufficiently large read count or enriched signals are incorporated (see Fig. 2). Consistent with the SES approach, the background component in the IP data can be obtained by identifying the locations of the bin withk = maxjqj − pj, where the fraction allocation of reads in the unified Input sample maximally exceeds that of the IP sample. The first k bins are then identified as the background region of IP sample and the bins afterwards are defined as the regions enriched with the immunoprecipitation signal in IP sample. We then define the fraction of regions enriched with signal (k/N) and also the scale factor (maxjqj − pj) to show the degree of difference between the IP and Input samples.

Fig. 2
figure 2

Quality assessment of immunoprecipitation signal with ESES. In this figure, the black straight line divides IP sample into two parts: the background (the left-hand side) and the region enriched with immunoprecipitation signal (the right-hand side). The fraction of cumulated signal (Faction of Reads) shows the fraction of reads captured in the corresponding regions, and the difference in cumulated signals between the IP and Input samples (or the scale factor) is shown by the two cross-points between the two curves (IP curve and Input curve) and the black straight line. Please refer to section “Assessing immunoprecipitation efficiency with ESES” for more details. Similar to before, we consider here only the genes that have at least 10 mapped reads. Transcripts with less 10 reads mapped are considered not readily detected and thus are excluded from this analysis

The reported ESES metrics on the sample dataset is shown in Table 3, from which we can see that the IP2 sample is substantially different from the others with a much smaller region enriched with signal and a much larger scale factor.

Table 3 ESES metrics from the sample dataset

Assessing the enrichment of m6A signal with C-test

Besides the ESES metrics, the trumpet package also include a C-test to detect the regions enriched with m6A signals at different levels. The C-test compares two Poisson means and is used in the exomePeak package to predict RNA methylation sites [14]. This is a more straightforward measurement to elucidate the statistical difference of the IP and Input samples. Specifically, only the bins that overlap with more than 10 reads are considered in the analysis, and the proportion of bins that are enriched in the IP sample with m6A signal at different fold enrichment thresholds are counted and plotted. It is then possible to compare the difference between different samples. As shown in Fig. 3, the C-test detected a major difference between IP2 and the others, which is consistent with the previous analysis.

Fig. 3
figure 3

Assessing the enrichment of m6A signal with C-test. Figure shows that around 2.5% of regions are enriched with reads in the IP samples with fold enrichment larger than 2.5 and a major difference between the IP 2 sample and the other samples is observed in their respective enrichment profiles, which is consistent with the previous analysis (see Tables 1, 2 and 3)

Hierarchical clustering and PCA analysis of samples

Hierarchical Clustering (HC) is then applied to all the samples for the identification of possible outliers and for assessing the relative similarity between samples and groups (if applicable). To eliminate the impact of different sequencing depth and transcriptional regulation, the hierarchical clustering is performed as follows. Let xi, j represent the number of reads of the i-th bin located on the exome in the j-th sample. The standardized read count after eliminating difference in sequencing depth can be calculated as

$$ {y}_j=\sum \limits_i^N{x}_{i,j} $$
$$ {s}_j=\frac{y_j}{\exp \left[\frac{1}{N}\sum \limits_{n=1}^N\log \left({y}_n\right)\right]} $$
$$ {\tilde{y}}_{i,j}=\frac{y_{i,j}}{s_j} $$

where yj is the total number of reads in the j-th sample, sj is the size factor of the j-th sample, and \( {\tilde{y}}_{i,j} \)is the standardized reads count of the i-th bin in the j-th sample. We can then perform HC and PCA analysis to study the relationship between different samples, as shown in Fig. 4. Please note that this is a bin-based analysis, where the association between bins and genes is not used.

Fig. 4
figure 4

Hierarchical clustering and PCA analysis of the samples. Hierarchical clustering and PCA analysis is performed to show relative similarity of the samples. As shown in Fig. 4, the IP2 sample is more different from the other samples based on both hierarchical clustering analysis (a) and PCA analysis (b). The analysis of samples were performed based on the normalized reads counts of all the bins in the transcriptome in R. Specifically, the hierarchical clustering is implemented with hclust command based on Euclidean distance and the default setting; while the PCA analysis is implemented with the prcomp function in the stats R package

Gene-specific heterogeneity of read coverage

In practice, the aligned reads are not evenly distributed on the same gene. In the IP sample, heterogeneity of read coverage may be generated from the enrichment signal around the true methylation sites, which may be complicated due to isoform ambiguity, or some possible bias and artifacts due to PCR process. Compared with the IP sample, the coverage is more flat in the input sample. The gene-specific heterogeneity of read coverage is assessed in the trumpet package with the mean and standard deviation (SD) of read count in each gene of each sample. Specifically, let yj, g, i be the read count of the i-th bin on the g-th gene in the j -th IP sample, and \( {\overline{y}}_{j,g} \) and SDj, grepresent the average number of reads mapped to the bins on theg-th gene in the j-th IP sample and its standard deviation. We then use a local regression to fit a curve between \( {\overline{y}}_{j,g} \) and SDj, g for g. As shown in Fig. 5, the IP2 sample has the largest heterogeneity in the read coverage, suggesting that it is quite different from the other samples, which is consistent with our previous results. Replicates are usually expected to exhibit similar patterns, and this is especially true if the pattern is a robust pattern obtained by summarizing from signals in the entire transcriptome. If a sample is quite different from the other replicates, it is probably worthwhile to investigate the cause of it. Additionally, compared with the unified input sample (generated by merging all the input samples under that condition), the IP samples should have much larger heterogeneity, because the IP samples contain additional enrichment signals and are generated with a more complex procedure that may introduce additional noise.

Fig. 5
figure 5

Gene-specific heterogeneity of read coverage. The IP2 sample has the largest heterogeneity in read coverage, while the other two IP samples are quite similar. This is consistent with our previous results, which suggest that IP2 sample may be problematic (see Tables 1, 2 and 3 and Figs. 3 and 4)

Sample consistency and reproducibility

This metric is used to assess the degree of difference between multiple biological replicates. In order to eliminate the difference in sequencing depth between theses biological replicates, we first normalize the read count of the each bin in each sample. The normalization method is the same as the hierarchical clustering analysis detailed in Section “Hierarchical clustering and PCA analysis of samples”. Let \( {\tilde{y}}_{i,j} \) be the standardized read counts of the i-th bin in the j-th sample. Also assume that we have multiple biological replicates (j {1, 2, , J}) obtained from the same experimental condition. Then, the mean and standard deviation of the read counts of the same bin across different samples can be calculated as:

$$ {\mu}_i=\frac{1}{J}\sum \limits_{j=1}^J{\tilde{y}}_{i,j} $$
$$ {s}_i=\sqrt{\sum_{j=1}^J{\left({\tilde{y}}_{i,j}-{\mu}_i\right)}^2}\frac{1}{\sqrt{J-1}} $$

It is possible to fit the variables with a local regression curves to show the consistency between different samples, or compare the reproducibility of the samples obtained from different conditions.


We included in the following 4 case studies to show that: (a) There exists increased variability in the RNA methylation level due to gene knock down operation; (b) Different immunoprecipitation efficiency is observed on datasets using antibodies from different companies, (c) The RNA m6A methylation level of U2OS cell line is relatively high compared with other cell line, (d) m6A-seq is enriched near stop codon while m1A is enriched on 5’UTR.

Gene knock down induces additional variability among replicates

In this example, we compared the m6A-seq samples obtained under wild type and FTO knock down condition [10, 11] in terms of sample consistency and reproducibility (see Section “Sample consistency and reproducibility”). As shown in Fig. 6, the samples obtained under FTO knock down condition show higher within-group variability compared with those obtained under the wild-type condition, suggesting the FTO knock down process induced additional variability among the samples. Direct comparison of two groups of samples is supported by trumpet package.

Fig. 6
figure 6

Comparing the sample reproducibility. The samples obtained under wild type condition shows obvious higher reproducibility compared with those obtained under FTO knock down condition, which requires additional operations that may account for the increased variability in samples

Failure to capture enrichment signal in lowly expressed genes

In this example, we considered reads distributions of the m6A-seq samples profiling the m6A epitranscriptome in HEK293T using anti-m6A antibodies made from different companies (SYSY and NEB) [4] (see section “Visualization of reads distribution”). In order to eliminate the impact of different sequencing depth of the samples, down-sampling of the m6A-seq samples to 10 million mapped reads was first performed before further analysis. As shown in Fig. 7, the enrichment of reads near the stop codon can be observed for the highly expressed genes (corresponding to 75% quantile blue curve) in all 3 samples, suggesting that all 3 samples no matter which the antibody was made captured the m6A signal. The m6A signal can still be readily observed on relatively lowly expressed genes (corresponding to 25 and 50% quantile green and red curves) in the two SYSY samples, but not in the NEB sample, suggesting NEB sample suffers from potential artifacts. One possible explanation is that there was insufficient amount of RNA in the NEB sample. Because the input material did not contain a large variety of RNAs, the sequencing data thus failed to capture the m6A signal in lowly expressed genes. Please note that all the samples here were from the same study, were generated by the same protocol, had the same number of reads after down-sampling, and profiled the same cell type (HEK293T).

Fig. 7
figure 7

Reads distribution in samples using antibody from different companies. The m6A signal can still be readily observed on lowly expressed genes (corresponding to 25 and 50% quantile green and red curves) in the two SYSY samples, but not in the NEB sample, suggesting NEB sample suffers from some artifacts

Comparison of the m6A signal in different cell types

In this example, we compared the m6A signal detected in different cell types. The raw data was downloaded from published studies [4, 15,16,17,18] profiling the m6A epitranscriptome in different cell types, including A549, embryo stem cell (ESC), HEK293T, HeLa, neural progenitor cells (NPC), fibroblasts and U2OS. Under the default setting of the trumpet R package, the U2OS cell line is reported to have the largest percentage of regions enriched with m6A signal, suggesting the m6A methylation level is relatively high in this cell line, as shown in Fig. 8.

Fig. 8
figure 8

The percentage of regions enriched with m6A signal in different cell types. U2OS cell line has the highest proportion of regions enriched with m6A signal, while Fibroblast has the lowest

Assessing m1A epitranscriptome sequencing data

Besides m6A-seq data, the trumpet package can also be applied to other affinity-based fragmented RNA immunoprecipitation sequencing data, such as m1A-seq [19] and PSU-seq [20]. As an example, we applied trumpet package to the m1A-seq dataset profiling the m1A epitranscriptome in HEK293T cell line [19], and compared this dataset with the m6A-seq data obtained from the same cell line [4].

As shown in Table 4, there exists distinct difference between m1A-seq and m6A-seq, the less abundant m1A modification is enriched in 7–8% of regions, while the more abundant m6A modification is enriched in 14.5% of region. The scale factor of the m1A-seq samples are a lot larger compared with that of m6A-seq.

Table 4 Comparison of m1A-seq and m6A-seq with ESES metrics

Additionally, the reads in the IP sample of m1A-seq data is enriched in the 5’UTR, which is consistent with the known distribution of m1A modification. However, similar to case study 2, m1A signal was not observed for very lowly expressed genes (see Fig. 9).

Fig. 9
figure 9

The reads distribution on m1A-seq data. The reads in the IP sample of m1A-seq data is enriched at 5’UTR, consistent with the distribution of m1A modification. The reads in the Input control sample are relatively evenly distributed and slightly enriched near start codon and stop codon. It is unclear whether this pattern is related to the experiment protocol

Typical metric values obtained on published datasets

The trumpet package reports a few metrics related to the quality of m6A-seq data, including notably, the scale factor, enriched regions, and signal read counts. However, due to the lack of a gold standard dataset and the variable m6A methylation level in different cell types, tissues and conditions, it is difficult to assert whether a dataset is of reasonable quality even provided with those metrics. To provide a global assessment of the m6A data quality, we collected 61 m6A-seq IP samples together with 59 corresponding Input samples from recent high impact studies [4, 15,16,17,18] and calculated these metrics as the positive control for reference; meanwhile, a number of m6A-seq samples of questionable data quality are generated by sample swapping, i.e., treating IP samples as input samples, or input samples as IP samples. As shown in Fig. 10, the metrics obtained on data of good quality (IP/Input) shows distinct pattern compared with those of poor quality (generated by sample swapping, i.e., IP/IP, Input/IP, and Input/Input). The ranges of these metrics for good quality samples are as follows; enriched region:12%~ 25%), scale factor: 0.08~ 0.3, and signal reads count: 87%~ 95%.

Fig. 10
figure 10

Reasonable ranges of metrics. The 3 major metrics, i.e., the percentage of enrichment region, scale factor and percentage of signal read counts, are calculated on data from recent high impact studies, representing data of reasonable good quality (IP/Input) and from data of poor quality generated by sample swop. Specifically, the Input samples are replaced with IP samples from other condition in IP/IP group, the IP samples are replaced by Input samples from other condition in Input/IP group, and the Input and IP samples are swopped in Input/Input group. The datasets of reasonable quality shows quite different pattern compared with other groups. The reasonable ranges of the enriched region, scale factor and signal reads count are 12%~ 25%, 0.08~ 0.3 and 87%~ 95%, respectively


An open source R package is developed for m6A-seq data quality control. With detailed documentation and the metrics of 61 datasets obtained from existing studies, it is possible to evaluate whether a new dataset is of reasonable quality. Although originally developed for the quality assessment of m6A-seq data, the trumpet package is equally applicable to other fragmented RNA immunoprecipitation sequencing techniques [14], including m1A-seq [19], CeU-Seq [21], Ψ-seq [22] and hMeRIP-seq [17], and may facilitate various epitranscriptome analysis, such as, site detection [23], differential methylation [24, 25], epitranscriptome module detection [26,27,28], network-based analysis [29], etc. [30, 31]. Nevertheless, it is worth mentioning that there are some general data quality metrics not covered by trumpet, e.g., reads quality, PCR artifacts, adaptor contamination, GC bias, etc., which should be assessed in the data analysis pipeline by other existing quality assurance software tools, such as, FastQC [5] and Qualimap [32].

Additionally, the gene annotation required by the trumpet package may still affect the metrics. Larger gene annotation databases may report more reads aligned to the exonic regions compared with smaller gene annotation database, and the ESES enrichment metrics can also be slightly affected (see Additional file 2: Table S1-S4). It is important to use similar gene annotation database for comparison purpose. By default, the UCSC gene annotation can be downloaded automatically from the internet from the trumpet package. Since the majority m6A-seq samples are constructed from polyA selected RNA libraries, only the exonic signals mapped to mRNA will be used, and the intronic signals are discarded from the analysis. In case it is desirable to analyze intronic signals or the RNA methylation on pre-mRNA, the library should be constructed from ribo-minus RNA library, and a gene annotation database including pre-mRNA should be constructed and provided to trumpet. From a computational perspective, pre-mRNA is no difference from an isoform transcript; however, the analysis performed will be affected by added transcriptome complexity and additional intronic regions with relatively lower signal-to-noise ratio. Another concern is from the rRNA. In theory, rRNA should not exist in the m6A-seq library when the two popular protocols, i.e., polyA selected or ribo-minus library, are used, and as a result, the trumpet package did not specifically test the impact of rRNA annotations on the m6A-seq data quality. As shown in Additional file 2: Table S1-S3, the amount of rRNA in m6A-seq data is likely to be very small; however, in practice, it may be still possible to see m6A-seq data targeting rRNAs, because the existence of RNA modifications on rRNA has been well established and their functions are often of interests [33]. The trumpet package should be used with extra caution in such cases because when the rRNA is highly abundant and it would dominate the evaluation metrics.

Due to a lack of gold standard m6A-seq datasets, we can only assess the relative data quality by comparing among samples without being able to determine with certain the true quality of data. It is thus necessary to generate gold standard datasets with carefully designed experiments or from using higher precision and higher resolution alternative technology such as miCLIP.



Hydroxymethylcytosine sequencing


The immunoprecipitation






methylated RNA immunoprecipitation sequencing


transcriptome-guided quality assessment of methylated RNA immunoprecipitation sequencing data


Pseudouridine sequencing


  1. Harcourt EM, Kietrys AM, Kool ET. Chemical and structural effects of base modifications in messenger RNA. Nature. 2017;541(7637):339.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  2. Zhao BS, Roundtree IA, He C. Post-transcriptional gene regulation by mRNA modifications. Nat Rev Mol Cell Biol. 2017;18(1):31.

    Article  PubMed  CAS  Google Scholar 

  3. Dominissini D, Moshitch-Moshkovitz S, Schwartz S, Salmon-Divon M, Ungar L, Osenberg S, Cesarkas K, Jacob-Hirsch J, Amariglio N, Kupiec M. Topology of the human and mouse m 6 a RNA methylomes revealed by m 6 A-seq. Nature. 2012;485(7397):201.

    Article  PubMed  CAS  Google Scholar 

  4. Meyer KD, Saletore Y, Zumbo P, Elemento O, Mason CE, Jaffrey SR. Comprehensive analysis of mRNA methylation reveals enrichment in 3′ UTRs and near stop codons. Cell. 2012;149(7):1635–46.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  5. Andrews S: FastQC: a quality control tool for high throughput sequence data.; 2010.

    Google Scholar 

  6. DeLuca DS, Levin JZ, Sivachenko A, Fennell T, Nazaire M-D, Williams C, Reich M, Winckler W, Getz G. RNA-SeQC: RNA-seq metrics for quality control and process optimization. Bioinformatics. 2012;28(11):1530–2.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  7. Wang L, Wang S, Li W. RSeQC: quality control of RNA-seq experiments. Bioinformatics. 2012;28(16):2184–5.

    Article  PubMed  CAS  Google Scholar 

  8. Diaz A, Nellore A, Song JS. CHANCE: comprehensive software for quality control and validation of ChIP-seq data. Genome Biol. 2012;13(10):R98.

    Article  PubMed  PubMed Central  Google Scholar 

  9. Lawrence M, Huber W, Pages H, Aboyoun P, Carlson M, Gentleman R, Morgan MT, Carey VJ. Software for computing and annotating genomic ranges. PLoS Comput Biol. 2013;9(8):e1003118.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  10. Jia G, Fu Y, Zhao X, Dai Q, Zheng G, Yang Y, Yi C, Lindahl T, Pan T, Yang Y-G. N6-methyladenosine in nuclear RNA is a major substrate of the obesity-associated FTO. Nat Chem Biol. 2011;7(12):885–7.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  11. Hess ME, Hess S, Meyer KD, Verhagen LAW, Koch L, Bronneke HS, Dietrich MO, Jordan SD, Saletore Y, Elemento O, et al. The fat mass and obesity associated gene (Fto) regulates activity of the dopaminergic midbrain circuitry. Nat Neurosci. 2013;16(8):1042–U1096.

    Article  PubMed  CAS  Google Scholar 

  12. Saletore Y, Meyer K, Korlach J, Vilfan ID, Jaffrey S, Mason CE. The birth of the Epitranscriptome: deciphering the function of RNA modifications. Genome Biol. 2012;13(10):175.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  13. Wang Z, Gerstein M, Snyder M. RNA-Seq: a revolutionary tool for transcriptomics. Nat Rev Genet. 2009;10(1):57–63.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  14. Meng J, Cui X, Rao MK, Chen Y, Huang Y. Exome-based analysis for RNA epigenome sequencing data. Bioinformatics. 2013;29(12):1565–7.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  15. Schwartz S, Mumbach MR, Jovanovic M, Wang T, Maciag K, Bushkin GG, Mertins P, Ter-Ovanesyan D, Habib N, Cacchiarelli D. Perturbation of m6A writers reveals two distinct classes of mRNA methylation at internal and 5′ sites. Cell Rep. 2014;8(1):284–96.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  16. Batista PJ, Molinie B, Wang J, Qu K, Zhang J, Li L, Bouley DM, Lujan E, Haddad B. Daneshvar K: m 6 a RNA modification controls cell fate transition in mammalian embryonic stem cells. Cell Stem Cell. 2014;15(6):707–19.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  17. Delatte B, Wang F, Ngoc LV, Collignon E, Bonvin E, Deplus R, Calonne E, Hassabi B, Putmans P, Awe S. Transcriptome-wide distribution and function of RNA hydroxymethylcytosine. Science. 2016;351(6270):282–5.

    Article  PubMed  CAS  Google Scholar 

  18. Wang X, Lu Z, Gomez A, Hon GC, Yue Y, Han D, Fu Y, Parisien M, Dai Q, Jia G. N6-methyladenosine-dependent regulation of messenger RNA stability. Nature. 2014;505(7481):117–20.

    Article  PubMed  CAS  Google Scholar 

  19. Dominissini D, Nachtergaele S, Moshitch-Moshkovitz S, Peer E, Kol N, Ben-Haim MS, Dai Q, Di Segni A, Salmon-Divon M, Clark WC, et al. The dynamic N1-methyladenosine methylome in eukaryotic messenger RNA. Nature. 2016;530(7591):441–6.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  20. Carlile TM, Rojas-Duran MF, Zinshteyn B, Shin H, Bartoli KM, Gilbert WV. Pseudouridine profiling reveals regulated mRNA pseudouridylation in yeast and human cells. Nature. 2014;515(7525):143.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  21. Zhang Y-C, Zhang S-W, Liu L, Liu H, Zhang L, Cui X, Huang Y, Meng J. Spatially enhanced differential RNA methylation analysis from affinity-based sequencing data with hidden Markov model. Biomed Res Int. 2015;2015. Article ID: 852070.

  22. Schwartz S, Bernstein DA, Mumbach MR, Jovanovic M, Herbst RH, León-Ricardo BX, Engreitz JM, Guttman M, Satija R, Lander ES. Transcriptome-wide mapping reveals widespread dynamic-regulated pseudouridylation of ncRNA and mRNA. Cell. 2014;159(1):148–62.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  23. Liu H, Wang HZ, Wei Z, Zhang SY, Hua G, Zhang SW, Zhang L, Gao SJ, Meng J, Chen X et al. MeT-DB V2.0: elucidating context-specific functions of N-6-methyl-adenosine methyltranscriptome. Nucleic Acids Res. 2018;46(D1):D281-7.

  24. Liu L, Zhang S-W, Huang Y, Meng J. QNB: differential RNA methylation analysis for count-based small-sample sequencing data with a quad-negative binomial model. BMC Bioinf. 2017;18(1):387.

    Article  Google Scholar 

  25. Cui XD, Zhang L, Meng J, Rao MK, Chen YD, Huang YF. MeTDiff: A Novel Differential RNA Methylation Analysis for MeRIP-Seq Data. Ieee Acm T Comput Bi. 2018;15(2):526-34.

  26. Lin Z, Yanling H, Huaizhi W, Hui L, Yufei H, Xuesong W, Jia M. Clustering count-based RNA methylation data using a nonparametric generative model. Curr Bioinforma. 2018;13:1–1.

    Article  CAS  Google Scholar 

  27. Chen K, Wei Z, Liu H, de Magalhães JP, Rong R, Lu Z, Meng J. Enhancing epitranscriptome module detection from m6A-seq data using threshold-based measurement weighting strategy. Biomed Res Int. 2018; Article ID: 2075173.

  28. Liu L, Zhang S-W, Zhang Y-C, Liu H, Zhang L, Chen R, Huang Y, Meng J. Decomposition of RNA methylome reveals co-methylation patterns induced by latent enzymatic regulators of the epitranscriptome. Mol BioSyst. 2015;11(1):262–74.

    Article  PubMed  CAS  Google Scholar 

  29. Zhang S, Zhang S, Liu L, Meng J, Huang Y. m6A-driver: identifying context-specific mRNA m6A methylation-driven gene interaction networks. PLoS Comput Biol. 2016;12(12):e1005287.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  30. Wei Z, Panneerdoss S, Timilsina S, Zhu J, Mohammad TA, Lu Z-L, Pedro de Magalhães J, Chen Y, Rong R, Huang Y, et al. Topological characterization of human and mouse m5C Epitranscriptome revealed by bisulfite sequencing. Int J Genomics. 2018;2018:19.

    Article  Google Scholar 

  31. Chen X, Sun YZ, Liu H, Zhang L, Li JQ, Meng J. RNA methylation and diseases: experimental results, databases, web servers and computational models. Brief Bioinform. 2017.

  32. Okonechnikov K, Conesa A, García-Alcalde F. Qualimap 2: advanced multi-sample quality control for high-throughput sequencing data. Bioinformatics. 2015;32(2):292–4.

    PubMed  PubMed Central  Google Scholar 

  33. Doi Y, Arakawa Y. 16S ribosomal RNA methylation: emerging resistance mechanism against aminoglycosides. Clin Infect Dis. 2007;45(1):88–94.

    Article  PubMed  CAS  Google Scholar 

  34. Olarerin-George AO, Jaffrey SR. MetaPlotR: a Perl/R pipeline for plotting metagenes of nucleotide modifications and other transcriptomic sites. Bioinformatics. 2017;33:1563–4.

Download references


We thank computational support from the UTSA Computational Systems Biology Core. We thank reviewers and editors for helpful comments.


This work has been supported by the National Scientific Foundation of China [61473232, 61501466, 31671373 and 91430111] and Jiangsu University Natural Science Research Program [16KJB180027]. The funding agencies had no role in the design of the study and collection, analysis, and interpretation of data and in writing the manuscript.

Availability of data and materials

trumpet can be downloaded from

Author information

Authors and Affiliations



TZ and JM designed and implemented the software package, and wrote the manuscript. SWZ, YH and JM conceived the idea and designed the research. LZ helped to revise this package and paper. All authors read and approved the final manuscript.

Corresponding authors

Correspondence to Shao-Wu Zhang or Jia Meng.

Ethics declarations

Ethics approval and consent to participate

Not applicable.

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Additional files

Additional file 1:

Source code of the trumpet R package. (ZIP 2229 kb)

Additional file 2:

Supplementary Material (including Table S1-S4) for trumept. (DOCX 21 kb)

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (, which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver ( applies to the data made available in this article, unless otherwise stated.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Zhang, T., Zhang, SW., Zhang, L. et al. trumpet: transcriptome-guided quality assessment of m6A-seq data. BMC Bioinformatics 19, 260 (2018).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: