Skip to main content
BMC Bioinformatics logoLink to BMC Bioinformatics
. 2017 Aug 31;18:387. doi: 10.1186/s12859-017-1808-4

QNB: differential RNA methylation analysis for count-based small-sample sequencing data with a quad-negative binomial model

Lian Liu 1, Shao-Wu Zhang 1,, Yufei Huang 2, Jia Meng 3,4,
PMCID: PMC5667504  PMID: 28859631

Abstract

Background

As a newly emerged research area, RNA epigenetics has drawn increasing attention recently for the participation of RNA methylation and other modifications in a number of crucial biological processes. Thanks to high throughput sequencing techniques, such as, MeRIP-Seq, transcriptome-wide RNA methylation profile is now available in the form of count-based data, with which it is often of interests to study the dynamics at epitranscriptomic layer. However, the sample size of RNA methylation experiment is usually very small due to its costs; and additionally, there usually exist a large number of genes whose methylation level cannot be accurately estimated due to their low expression level, making differential RNA methylation analysis a difficult task.

Results

We present QNB, a statistical approach for differential RNA methylation analysis with count-based small-sample sequencing data. Compared with previous approaches such as DRME model based on a statistical test covering the IP samples only with 2 negative binomial distributions, QNB is based on 4 independent negative binomial distributions with their variances and means linked by local regressions, and in the way, the input control samples are also properly taken care of. In addition, different from DRME approach, which relies only the input control sample only for estimating the background, QNB uses a more robust estimator for gene expression by combining information from both input and IP samples, which could largely improve the testing performance for very lowly expressed genes.

Conclusion

QNB showed improved performance on both simulated and real MeRIP-Seq datasets when compared with competing algorithms. And the QNB model is also applicable to other datasets related RNA modifications, including but not limited to RNA bisulfite sequencing, m1A-Seq, Par-CLIP, RIP-Seq, etc.

Electronic supplementary material

The online version of this article (10.1186/s12859-017-1808-4) contains supplementary material, which is available to authorized users.

Keywords: Differential methylation analysis, m6A, Negative binomial distribution, RNA methylation, Small-sample size

Background

DNA chemical modifications and their functions have been well established through intensive research ranging from simple model organisms to human in the past decade [13]. While RNA modifications have yet drawn such attention until recent studies suggest RNA N6-methyladenosine (m6A) plays an important role in various biological processes, including circadian clock, RNA degradation, cocaine addiction, RNA-protein interaction, etc. [4, 5]. It is known that more than 100 different types of RNA modifications exist in all 3 kingdoms of life, and most of them are RNA methylation [6]. Till this day, the most widely applied approach for profiling transcriptome-wide RNA m6A methylation is methylated RNA immunoprecipitation sequencing (m6A-seq or MeRIP-seq), which combines methylated DNA immunoprecipitation (MeDIP), immunoprecipitation of RNA-binding proteins (RIP), and RNA sequencing (RNA-seq) to enable high-resolution detection of transcriptome-wide RNA methylation. MeRIP-Seq immunoprecipitates heavily fragmented, methylated RNA fragments with anti-m6A antibody and then sequences the purified RNA fragments for computational processing (See Fig. 1). Meanwhile, two types of samples, the IP and the input control, are obtained. The IP sample includes mostly the methylated fragments, while the input control sample includes all RNA fragments, which is generated to measure the basal RNA expression level of all genes as the background [79]. Different from whole exome sequencing (WXS), whole genome sequencing (WGS) and RNA-Seq, MeRIP-Seq needs anti-m6A antibody to capture the methylated mRNA fragments. In addition, due to the depleteon at both 5′ and 3′ ends as a result of RNA fragmentation and considerable variations in transcript abundance, it is necessary to have the input control sample. Till this day, MeRIP-Seq has been widely applied to various species, including, human, mouse, fly, pig, zebrafish, rice, yeast, HIV, etc., effectively unveiled the function of RNA m6A methylation in circadian clock, translation, miRNA processing, RNA-protein interaction, DNA damage response, etc. [10, 11]. However, due to the chemical instability of RNA molecule and the intricate experiment procedures, MeRIP-Seq experiment is still rather difficult to perform due to DNA contamination, RNA degradation or immunoprecipitation failure, etc.

Fig. 1.

Fig. 1

Illustration of MeRIP-Seq Protocol. In MeRIP-Seq, two types of samples (IP and input control samples) are generated. In the beginning of the protocol, RNA molecules are firstly sheared into fragments of around 100 nt. Through anti-m6A antibody, the IP sample provides unbiased measurement of the methylated RNA fragments; the input control sample reflects the basal RNA abundance

By comparing the IP and input control samples, RNA methylation sites can be identified in a peak calling procedure [12, 13], based on which, differential RNA methylation analysis can unveil the dynamics in post-transcriptional RNA methylation under two different experimental conditions in a case-control study [14, 15].

Differential methylation analysis concerns the difference in methylation level between two conditions, which has shown to be of crucial biological significance [16]. Previously, there have been a number of computational approaches developed for differential methylation analysis of DNA [1722]. Similar to DNA methylation, RNA methylation is also reversible and non-stoichiometric, and it is reasonable to speculate that the computational algorithms developed for DNA methylation are equally applicable to RNA methylation data. However, the unique features of RNA methylation and MeRIP-Seq technique call for novel computational approaches.

The first important feature of MeRIP-Seq data is the highly heterogeous reads coverage due to different RNA expression level. When profiling the RNA methylome with MeRIP-Seq, the quantification of RNA methylation level usually starts from a paired integer measurements t and c, with t representing the number of reads proportional to the absolute amount of methylation and c proportional to the absolute amount of un-modified molecule. Specifically in MeRIP-Seq data, t refers to the reads count of a particular methylation site (or other feature) in the Immunoprecipitation (IP) sample, while c is calculated from the same site in the corresponding input control (input) sample. The methylation levelp ∈ [0, 1] of this site can then be estimated by

p^=tt+c 1

where p^ denotes the percentage of methylation of this site on the corresponding RNA molecule. However, in practice, this estimation is not always accurate, e.g., although the same 100% of methylation is reported in two RNA methylation sites with measurements [t 1, c 1] = [100, 0] and [t 2, c 2] = [1, 0]. When sequencing noise is considered, the original reads count data of the two sites actually conveys substantially different information. While [t 1, c 1] = [100, 0]suggests a confident estimation of relatively high methylation level; [t 2, c 2] = [1, 0]essentially suggests that there is only very limited information received due to insufficient reads coverage, and the actual methylation level of this site is not accurately available. Conceivably, the estimation in Eq. (1) is relatively accurate only when n = t + c is large, which is often not true in RNA methylation sequencing data due to the existence of a large number of very lowly expressed genes. For this reason, a single estimated value for methylation level is usually not adequate for RNA methylation data processing, and it is necessary to keep the original integer measurements ( t and c ) for more precise quantification, which calls for count-based statistical models. Please note that, the aforementioned issue is different from the case of DNA methylation sequencing data, where a single value generated from Eq. (1) for the estimated methylation level is usually appropriate. This is because that the reads coverage of different CpG sites in DNA sequencing is usually highly homogeneous, so sufficient reads coverage can be reached simultaneously for most CpG sites of interests. Additionally, as shown in Fig. 2 , differential gene expression at RNA level may cause a discrepancy between the absolute amount of methylation and the relative amount, which calls for a precise estimation of the basal background and makes it different from the differential analysis of DNA methylation or DNA-protein interaction measured by ChIP-Seq.

Fig. 2.

Fig. 2

Differential methylation of DNA and RNA. Although the absolute amount of methylated RNA molecule decreases under the treated condition, the relative amount increased, indicating a hyper-methylation of the RNA molecule occurred together with expression down-regulation. In DNA methylation analysis, the absolute and relative amount of methylation always show consistent trend

The second prominent feature of MeRIP-Seq data is the limited number of samples (small sample size) available. Currently, due to the costs and technical difficulties of MeRIP-Seq experiment, there are usually no more than 3 biological replicates presented in a single study, which causes major difficulty in estimating the site-specific variability of RNA methylation level. When reliable estimation of variability in methylation level cannot be achieved, it is difficult to further assess whether the observed difference is due to within-group biological variability or not, making differential RNA methylation analysis between two experimental conditions fail. To solve this problem, we need novel approaches that work at even small-sample size scenario. Meanwhile, a number of small-sample inference approaches have been developed for sequencing data including, most notably, DESeq [23] and EdgeR [24], both of which rely on negative binomial distribution model with a linked variance and mean, which can shed light on this issue with a feasible solution for differential RNA methylation analysis problem at small sample size scenario.

To address the aforementioned limitations and challenges of MeRIP-Seq RNA methylation sequencing data, we propose here the QNB model, a small-sample size solution for differential RNA methylation analysis, which stands for quad-negative binomial model. With 4 cross-linked negative-binomial distributions for modeling the IP and Input control samples of MeRIP-Seq in two different experimental conditions, respectively, the proposed model is capable to robustly capture the within-group variability of RNA methylation level at small sample size scenario so as to perform more effective differential RNA methylation analysis. The model has been implemented in an R package that is freely available.

Methods

Differential RNA methylation data analysis includes the following steps: reads alignment, peak calling (methylation site detection), reads counting and differential analysis. The newly developed QNB package deals with the last step (See Fig. 3). Please note that, this is only one example. In practice, if differential methylation analysis is applied to gene or base resolution, only reads count is needed, and peak calling step will not be necessary.

Fig. 3.

Fig. 3

Differential RNA methylation data analysis. The complete differential RNA methylation analysis may require the following steps: reads alignment, peak calling (methylation site detection), reads counting and differential analysis

QNB model

Let t i , j and c i , j represent the reads counts of the i-th feature (gene or RNA methylation site) in the paired IP and input control sample of MeRIP-Seq data from j-th biological replicate, respectively. When the sequencing depths of different samples are the same, we may ignore its influence and have

ti,j~Binomialpi,ρjni,j 2

where n i , j = t i , j + c i , j and ρ(j) represents the experimental condition (cell type, tissue or treatment) of the j -th biological replicate, and p i , ρ(j) denotes the percentage of methylation for the i -th feature in j -th biological replicate. The goal of differential RNA methylation analysis for a specific feature is to test whether the percentage of methylation remain the same under two different experimental conditions A and ℬ, i.e., the null hypothesis pi,A=pi, .

Considering the over-dispersion effect of sequencing reads count data, t i , jand c i , jare assumed to follow the negative binomial distribution

ti,j~NBμt,i,jσt,i,j2 3
ci,j~NBμc,i,jσc,i,j2 4

where their means can be decomposed by

μt,i,j=qipi,ρjei,ρjst,j 5
μc,i,j=qi1pi,ρjei,ρjsc,j 6

Here, q irepresents the expected abundance of feature i under all conditions in a standard sequencing library. s t , jand s c , j represent the size factor of the IP and input control sample of the j-th biological replicate and directly reflect their sequencing depth. p i , ρ(j) stands for risk of RNA methylation, or the true percentage of methylation for feature i under condition ρ(j) on the common scale, i.e., without rescaling by the size factors s c , j ands t , j. Additionally, e i , ρ(jis introduced to model differential expression at RNA level as a feature-specific size factor, which indicates the abundance of feature i under a specific experimental condition compared with the standard abundance q i.

In this model, the sequencing size factor s t , j and s c , j of the IP and input control sample can be conveniently estimated from the total number of the reads in a library or using the “geometric” approach developed for RNA-Seq data [23, 25]. The other parameters can be estimated as follows:

q^i=Ejti,jst,j+ci,jsc,j 7
p^i,ρj=j:ρj=ρti,jst,j/j:ρj=ρti,jst,j+ci,jsc,j 8
e^i,ρ=1ρq^ij:ρj=ρti,jst,j+ci,jsc,j 9

where |ρ| denotes the number of biological replicates under a specific experimental condition ρ .

Please note that, compared with the DRME model [26], a more robust estimator for background expression level of the feature is implemented Eq. (7) by taking advantage of both the IP and input control samples. In DRME model, the basal level of gene expression is estimated from the input control sample only, as in theory without anti-body based enrichment, the input control sample of MeRIP-Seq data should contain both methylated and unmodified molecules, and thus corresponds to the true expression level. However, since the reads are usually enriched in the IP samples for a methylation sites to be called, there is usually less reads in the input control samples, and thus the estimator is not robust for very lowly expressed genes. For this reason, the basal level is estimated from the sum of input and IP samples in the QNB model. The robust estimator should largely improve the testing performance for very lowly expressed genes.

Inspired by the DESeq formulation [23], the variance in Eqs. ( 3 ) and ( 4 ) can be further decomposed into the shot noise and raw variance, i.e.,

σt,i,j2=μt,i,jshot noise+ei,jst,j2υt,i,ρjrawvariance 10
σc,i,j2=μc,i,jshot noise+ei,jsc,j2υc,i,ρjrawvariance 11

where μ t , i , j and μ c , i , j are the variance of a Poisson distribution, which is often used to model technical replicates in NGS data. Additionally, due to biological variability, the over-dispersion of a Poisson model is represented by (e i , ρ(j) s t , j)2 υ t , i , ρ(j) and(e i , ρ(j) s c , j)2 υ c , i , ρ(j) , where e i , ρ(j) and s t , j (or s c , j ) quantify the impact of condition-specific gene differential expression and sample-specific library size (or the sequencing depth), respectively. We consider the per-feature raw variance parameter υ i , ρ is a smooth function of the expected methylation rate  p i , ρ and the feature abundance q i , ρ under a specific condition  ρ , i.e.,

υt,i,ρj=υt,ρpi,ρjqi,ρj 12
υc,i,ρj=υc,ρpi,ρjqi,ρj 13

For methylation reads count t i , j in the IP sample, the variances on the common scale w^t,i,ρ can be calculated with

w^t,i,ρ=1ρ1j:ρj=ρti,js^t,je^i,ρjq¯t,i,ρ2 14

where

q¯t,i,ρ=1ρj:ρj=ρti,js^t,je^i,ρj 15

Let

zt,i,ρ=q^ip^i,ρjρj:ρj=ρ1s^t,je^i,ρj 16

Following the methodology of DESeq model [23], we show in the supplementary materials (Additional file 1) thatw^t,i,ρzt,i,ρ is an unbiased estimator for the raw variance parameter υ t , i , ρ, with

υ^t,i,ρjp^i,ρq^i=wt,i,ρp^i,ρq^izt,i,ρ 17

as our estimate for the raw variance parameter υ t , i , ρ(j).

We use a 2-dimensional local regression on the graph p^i,ρq^iw^t,i,ρto obtain a smooth function ofwt,i,ρp^i,ρq^i. Since w^t,i,ρin Eq. ( 14 ) is the sum of squared random variable, the residuals of the modelwt,i,ρwt,i,ρp^i,ρq^i,ρ are skewed. Following reference [27] and the practice in DESeq [23], we also implemented a generalized linear model of the gamma family for the local regression with the implementation in R locfit package [28] for estimation of wt,i,ρp^i,ρq^i.

Similar to the estimation of υ t , i , ρ(j) and w t , i , ρ in the IP samples as described previously, the raw variance parameter υ c , i , ρ(j) and the variance of reads on the common scale w c , i , ρ for the input control samples can also be estimated.

Testing & Metrics

For differential RNA methylation analysis, we consider the null hypothesis that condition A and condition ℬ are of the same methylation rate on the common scale, i.e.,pi,A=pi,=pi,O, which can be estimated with

p^i,O=jAti,jst,j/jAti,jst,j+ci,jsc,j 18

For each feature i and replicate of its condition ρ(j), the reads counts t i , jand c i , jare considered independently distributed. For differential methylation analysis between condition A and ℬ, we construct 4 random variables following negative binomial distributions for the IP and input control samples under two experimental conditions, respectively, i.e.,

ti,A=jAti,j~NBμ^t,i,Aσ^t,i,A2 19
ti,=jti,j~NBμ^t,i,σ^t,i,2 20
ci,A=jAci,j~NBμ^c,i,Aσ^c,i,A2 21
ci,=jci,j~NBμ^c,i,σ^c,i,2 22

It is not difficult to calculate the distribution parameters in Eqs. (19), (20), (21) and (20). Taking ti,Afor example, we have

μ^t,i,A=p^i,Oq^ie^i,AjAs^t,j 23
σ^t,i,A2=p^i,Oq^ie^i,AjAst,j+υAp^i,Oq^ie^i,A2jAs^t,j2 24

Given the total number of methylation read count ti=ti,A+ti, and the total number of reads under each condition ni,A=ti,A+ci,A and (n i , ℬ = t i , ℬ + c i , ℬ) do not change, the joint conditional probability of the observation ti,A=t can be calculated with

Pti,A=ttini,Ani,=Pti,A=tPti,=titPci,A=ni,AtPci,=ni,ti+t 25

whose components are previously defined in Eqs. (19), (20), (21) and (22).

Please note that, the over-dispersion of reads counts in input control samples are also modeled and covered in the QNB test, making it substantially different from the DESeq, DRME or ChIPComp. The QNB test essentially covers all the 4 samples with 4 cross-linked binomial distributions; while in DRME model, the input control samples are used only for gene expression estimation, so the statistical test covers the IP samples only with 2 negative binomial distributions. The inclusion of input control samples in the test, rather than simply using it as a background, makes a major contribution to the performance improvement, and also makes QNB substantially different from all other count-based (negative-binomial distribution-based) approaches such as DRME, edgeR, DESeq and ChIPComp.

The statistical significance of an observation can then be calculated using a two-sided test

pvalue=t:PtPti,APttPt 26

Besides the p-value that quantifies the statistical significance, the risk ratio (RR) of RNA methylation level, which quantifies the degree of differential methylation, can also be calculated based on Eq. (8), with

RRi=p^i,A/p^i, 27

where conditionℬ is considered as the control group in a case-control study and A as the treated group. Please note that, the percentage of methylation under an experimental condition pi,A denotes a normalized degree of methylation observed on the data rather than the true percentage of methylation in biological sense. However, it still provides a good evaluation of the relative methylation level. Similar to the methylation risk ratio (RR), the odds ratio (OR) of RNA methylation, which also quantifies the degree of differential RNA methylation, can be calculated after compensating the sample sequencing depth

ORi=jAti,j/st,jjAci,j/sc,j/jti,j/st,jjci,j/sc,j 28

QNB package

The proposed method has been implemented in the QNB R package and is freely available through the Comprehensive R Archive Network (CRAN): https://cran.rstudio.com/web/packages/QNB/. For sample size factor estimation, QNB uses the “geometric” approach [23, 25] by default, but it is also possible for the user to provide the size factors calculated from other methods. It is also worth mentioning that, compared with the DRME model, QNB package allows 4 different modes for estimating the raw variance parameter in Eq. (17) for different scenarios, including, “per-condition”, “pooled”, “blind” and “auto”.

  • The mode “per-condition” calculates an empirical dispersion value by considering the data from samples for this condition for each condition with replicates.

  • The mode “pooled” estimates a single pooled dispersion value using the samples from all conditions with replicates.

  • The mode “blind” ignores the sample labels and estimates a dispersion value as if all samples were replicates of a single condition, so this mode supports variance estimation even if there are no real biological replicates from the same condition available.

  • The mode “auto” selects mode according to the number of samples automatically. Under this option, “per-condition” mode is adopted when biological replicates are available for a more sensitive estimation of the raw variance parameter; while the “blind” mode is used when no biological replicates are available.

QNB package implements the “auto” mode by default.

Results

To evaluate the performance of the proposed method, it is tested on simulated and real datasets, and compared with other approaches including exomePeak [12], MeTDiff [15], DRME [26] and Bltest [29]. We have also included in the comparison the DSS method [30], which is a most recent method developed for DNA differential methylation analysis, and the ChIPComp method [31], which was developed for differential binding analysis from ChIP-Seq data.

Test on simulated dataset

The simulated data mimics the reads count information of 20,000 methylation sites in 3 IP and input control samples from two experimental conditions. Specifically, to simulate the impact of differential expression, we let log(q i) follow a uniform distribution and the percentage of methylation p i , ρ(j) follow a uniform distribution between 0 and 1. The two size factors e i , ρ(j) and s t , j are set to follow normal distributions after log transformation, in which the variance can be adjusted to mimic the impact of condition-specific differential expression and different sequencing depth. In addition, p i , ρ(j) are set to be equal between two conditions for 50% of the RNA methylation sites, which are corresponding to the non-differential sites. The others are set different as the true differential RNA methylation sites. Additionally, we set υ t , i , ρ(j) = d/{e i , ρ(j) s t , j} and υ c , i , ρ(j) = d/{e i , ρ(j) s c , j}to mimic the impact of over-dispersion among biological replicates. Here, d is a constant value to quantify the degree of over-dispersion, with a greater value indicating increased difference among biological replicates from the same condition. To evaluate the performance of the methods tested, 100 random datasets are generated and tested against these methods, and their area under receiver operating characteristic curves (AUCs) are calculated to evaluate their performance, respectively.

In the first experiment, we tested the impact from the number of biological replicates on the performance of differential RNA methylation analysis. As shown from Fig. 4, when the number of biological replicates increases, the performance of all 7 approaches increases. This is reasonable as additional information is provided when the number of biological replicates increases. The proposed QNB method consistently outperforms the competing methods on datasets with 2, 3, 4 or 6 biological replicates; however, sufficient number of biological replicates is still essential for more reliable results.

Fig. 4.

Fig. 4

Impact from number of biological replicates on differential RNA methylation analysis. The performance of all 7 methods tested increases as the number of biological replicates increases, suggesting biological replicates are still essential for the proposed small-sample inference approach. QNB method outperforms competing approaches on datasets with 2, 3, 4 and 6 biological replicates, succeeded by DRME, DSS and ChIPComp

We then tested the impact of over-dispersion on the differential RNA methylation performance. As shown in Eqs. (10) and (11), over-dispersion is directly tied up with the variance of reads count, so it is not surprising to see from Fig. 5 that, the performance of all 7 approaches decreases as over-dispersion increases. Specifically, QNB method still consistently outperforms the competing methods on different dispersion settings tested.

Fig. 5.

Fig. 5

Impact of over-dispersion on differential RNA methylation analysis. The performance of differential RNA methylation decreases as the over-dispersion increases, and QNB method consistently outperforms the competing methods, succeeded by DRME, DSS and ChIPComp

In the 3rd experiment, we tested the impact of differential expression, which contributed to a major difference between RNA and DNA methylation analysis. As shown in Fig. 6, changes in expression level between different conditions hinder the performance of differential RNA methylation analysis, which is reasonable because it leads to unbalanced reads count in two experimental conditions, i.e., a lot of reads under one condition but very limited number of reads under the other condition. QNB can handle differential expression relatively well and perform better than the competing methods.

Fig. 6.

Fig. 6

Impact of RNA differential expression on differential RNA methylation analysis. In this experiment, we adjusted the variance of e i , ρ(j) for the impact of differential expression setting. It can be seen that, the performance of differential RNA methylation analysis decreases as the degree of differential expression increases, and QNB achieved better performance than competing approaches under all 4 setting tested

Test on human U2OS dataset

QNB approach was then tested on real RNA methylation sequencing dataset that profiles m6A methylome in untreated U2OS cells and after treated with SAH hydrolysis inhibitor 3-deazaadenosine (DAA) [32]. The original raw data in SRA format was obtained directly from GEO (GSE48037), which consists of 3 IP and 3 Input MeRIP-Seq replicates under control condition and after DAA treatment, respectively (a total of 12 libraries). The short sequencing reads are firstly aligned to human genome assembly hg19 with Tophat2 [33]. In the reads alignment step, other splice-aware aligners such as Tophat2 [33], HISAT [34], STAR [35], RSEM [36], Kallisto [37] and Salmon [38] are also applicable. Then, a total 29,427 RNA N6-methyl-adenosine (m6A) sites are called by using exomePeak R/Bioconductor package with UCSC gene annotation database. In the peak calling step, to obtain a consensus RNA methylation site set between two experimental conditions (control and DAA treatment), the IP and Input control samples are merged, respectively. Then we used Bioconductor packages GenomicFeatures and Rsamtools [39] on R platform to obtain the reads count of every RNA methylation sites from the 3 IP and input control samples under two conditions, respectively. The reads count information can then be used for comparing QNB method with the other competing approaches.

A major limitation for testing differential RNA methylation analysis with real dataset is the lack of experimentally validated true differential methylation site. Without ground truth, it is difficult to effectively compare the performance of different approaches. For this reason, we designed a sample-swop test by taking advantage of a set of true negative data generated by sample swop. In the designed sample-swop test, differential RNA methylation analysis is firstly conducted on the original data with correct sample class label information and generated a set of“genuine”result; then differential analysis is applied to a “mock” dataset with half of the samples swopped between the two conditions tested to generate a set of “mock” result. Compared with the “genuine” result that is expected to carry biological meaning, the “mock” result is generated with incorrect sample labels and thus represents a background associated with no biological meanings (see Fig. 7). For the aforementioned reasons, an effective differential RNA methylation method should report as many differential methylation sites as possible in the “genuine” result, and at the same time report as less differential methylation sites as possible in the “mock” result given a specific confidence level. In another word, when two approaches report the same number of DRMSs on the “mock” dataset, the one that reports more DRMSs on the “genuine” dataset achieved a better performance.

Fig. 7.

Fig. 7

Creation of the mock dataset with sample swop. A “mock” dataset can be created from the original dataset by swop half of the samples between the two experimental conditions. The differential RNA methylation result generated from the original data with correct sample label reflects biological meaningful difference; while the result generated from the “mock” dataset has no biological meaning. In theory, a good algorithm should pick up as many as differential methylation sites from the “genuine” dataset but as less as differential methylation sites from the “mock” dataset. The example above shows how a pair of “genuine” and “mock” datasets is created from two biological replicates - sample 1 and sample 2. Since the tested MeRIP-Seq dataset has 3 biological replicates under each condition, it is possible to create 3 pairs of “genuine” and “mock” datasets from 3 pairs of replicates, i.e., sample 1 and 2, sample 2 and 3, sample 3 and 1. It is then possible to compare the performance of different algorithms

As is shown in Fig. 8, QNB outperforms the other competing algorithm on real MeRIP-Seq dataset in the sample-swop tests, especially at more stringent significance level. In the figure, x-axis represents the percentage of DRMSs called on “mock” dataset, and y-axis represents the percentage of DRMSs detected on the corresponding “genuine” datasets. For QNB approach, when 1% of sites are reported as DRMSs on “mock” datasets, around 12% of DRMSs are reported on the corresponding “genuine” datasets. With an assumption that there exists similar background noise in “mock” and “genuine” datasets, the DRMSs reported in the “genuine” dataset should have a false discovery rate of around 0.073. Please note that, in the sample swop test above, a negative dataset was created when positive data is not available. Similar strategies have been used previously [13, 15, 40].

Fig. 8.

Fig. 8

Comparison of differential algorithms on human DAA treatment experiment with sample-swop test. We generated 3 pairs of “genuine” and “mock” datasets with the 3 biological replicates from the control and DAA treatment MeRIP-Seq experiment. By fixing the percentage of DRMSs in the 3 “mock” datasets, we calculated the percentage of DRMSs in their corresponding “genuine” datasets at the same significance level. QNB outperforms the competing methods especially at high significance level. The exomePeak method and Bltest achieved almost the same performance

We then applied the QNB method to the complete MeRIP-Seq dataset including all the replicates. In the end, 1355 out of 29,427 RNA methylation sites are identified as DRMSs at significance level 0.05 by QNB method. As shown in Fig. 9, the DRMSs identified by QNB method are mostly with large methylation risk ratio compared with the features of a similar abundance.

Fig. 9.

Fig. 9

Differential RNA methylation analysis. QNB method identified 1355 DRMSs out of a total of 29,427 RNA methylation sites after DAA treatment to U2OS cells at significance level 0.05. Compared with the features with less number of reads, the observed methylation fold changes for abundant features have a smaller range, and the DRMSs identified are mostly with larger methylation risk ratio between the two conditions compared with the features of a similar abundance

Test on mouse midbrain dataset

We showed previously with a sample-swop test that, QNB method outperforms competing methods on a real RNA methylation sequencing dataset that profiles the epitranscriptomic impact of DAA treatment to human U2OS cells. It is necessary to examine whether this is still true on a different dataset. For this purpose, we repeated this test on a different MeRIP-Seq dataset, which studies the impact of FTO knock down in mouse midbrain [41].

Similar settings are adopted as previously described in the human dataset. The sequencing reads are downloaded from NCBI GEO and then aligned to mouse mm10 genome assembly with Tophat2 aligner, then R/Bioconductor packages are used for identifying the RNA methylation sites and counting the number of reads associated with them. Similar to the DAA treatment experiment described previously, 3 pairs of “genuine” and “mock” datasets are generated with the 3 biological replicates from the control and FTO knock down MeRIP-Seq experiment. By fixing the percentage of differential RNA methylation sites (DRMSs) in the 3 “mock” datasets, we calculated the percentage of DRMSs in their corresponding “genuine” datasets at the same significance level. It can be seen from Fig. 10 that, QNB outperforms the competing approaches in the sample-swop test on this mouse MeRIP-Seq dataset, especially at more stringent significance level.

Fig. 10.

Fig. 10

Comparison of differential algorithms on mouse FTO knock down experiment with sample-swop test. Result suggests that, QNB outperforms the competing methods especially at high significance level, succeeded by ChIPComp, DRME and MetDiff. However, different from the human U2OS dataset, exomePeak and Bltest methods do not behave similarly on this dataset

Discussion

The newly proposed approach is in many ways related to DESeq sand DRME model, including the negative binomial assumption of reads count data, the decomposition of variance into the shot noise and the raw variance, the usage of local regression of gamma family for estimating the variance and the construction of the test; however, QNB also extended these two models by including the input control samples as additional components for a more comprehensive statistical evaluation. And compared with the DRME method [26], a more robust estimator of the background (RNA expression level) is used by merging information from both the IP and input control samples. Importantly, as shown on simulated system and the real MeRIP-Seq datasets from human and mouse, we showed in a sample-swop test that, QNB obviously outperforms the existing differential RNA methylation approaches, including exomePeak [12], MeTDiff [15], DRME [26] and Bltest [29]. It also outperforms DSS [30], a method developed for DNA methylation differential analysis, and ChIPComp [31], a method developed for ChIP-Seq analysis.

There exist a number of issues that may affect the performance of QNB method in differential RNA methylation analysis. Firstly, biological replicates are still essential for achieving reliable results. As shown in Fig. 4, increased number of replicates helps to improve the prediction performance of QNB and the other 6 methods tested. Secondly, due to the existence of very lowly expressed genes, adequate sequencing depth is still necessary for detecting the features of low abundance. Thirdly, QNB relies on accurate reads count data of the RNA methylation sites (or other features), so precise determination of RNA methylation sites on the transcripts and proper sequencing reads alignment and counting are indispensable. In MeRIP-Seq data, it can be difficult to differentiate isoform transcripts and thus difficult to perform isoform-specific differential RNA methylation analysis. Fourthly, data quality can still be a major limitation for RNA methylation sequencing experiments because of the technical difficulties and high costs. Without proper experiment design and implementation, the following computational analyses may end in vain. Fifthly, it is still an open question how to best estimate the library size factor of the samples for MeRIP-Seq data. Conceivably, the size factors of the IP and input control samples may not be directly comparable due to their instinct properties and their distinct distribution patterns, and the immunoprecipitation efficiency of different IP samples may not be the same. Sixthly, the proposed method assumes that the variability of methylation level is a smooth function of expression level and methylation level; however, as the number of biological replicates increases, a more straightforward approach might be directly modeled and estimate site-specific variability without this assumption. All the aforementioned issues call for further investigation and improvements.

Conclusions

RNA methylation has emerged as an important layer for gene regulation, where biological functions are modulated by reversible post-transcriptional RNA modifications. We proposed here a QNB model together with an R package for differential RNA methylation analysis at small sample size scenario. The method is based on four negative binomial distributions with their means and variances cross-linked together, which model the IP and input control samples under 2 experimental conditions, respectively. Compared with other methods on the simulated and real MeRIP-Seq datasets, QNB is much more effective for differential RNA methylation analysis with the small-sample sequencing data. QNB model can also be applied to other data types related to RNA modifications, such as RNA bisulfite sequencing, m1A-Seq, Par-CLIP and RIP-Seq.

Acknowledgements

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

Funding

This work has been supported by National Natural Science Foundation of China [No.61473232, No.31671373, No.61401370 and No.91430111] to SWZ and JM; National Institute on Minority Health and Health Disparities [G12MD007591] to YFH; National Institutes of Health [R01GM113245] to YFH; Jiangsu University Natural Science Program [16KJB180027] to JM; Jiangsu Science and Technology Program [BK20140403] to JM.

Availability of data and materials

QNB can be downloaded from https://cran.rstudio.com/web/packages/QNB/.

Abbreviations

DRMS

differential RNA methylation sites

IP

the immunoprecipitation

m1A

N1-methyladenosine

m6A

N6-methyladenosine

MeRIP-Seq

methylated RNA immunoprecipitation sequencing

NB

the negative binomial distribution

OR

the odds ratio

Par-CLIP

photoactivatable ribonucleoside-enhanced crosslinking and immunoprecipitation

QNB

quad-negative binomial model

RIP-Seq

RNA Immunoprecipitation sequencing

RR

the risk ratio

Additional file

Additional file 1: (383.3KB, pdf)

Proof: w^t,i,ρzt,i,ρ is an unbiased estimator for υ t , i , ρ. (PDF 383 kb)

Authors’ contributions

LL and JM designed and implemented the software package, and wrote the manuscript. SWZ and YFH conceived the idea and designed the research. All authors read and approved the final manuscript.

Ethics approval and consent to participate

Not applicable.

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Footnotes

Electronic supplementary material

The online version of this article (10.1186/s12859-017-1808-4) contains supplementary material, which is available to authorized users.

Contributor Information

Lian Liu, Email: liulian19860905@163.com.

Shao-Wu Zhang, Email: zhangsw@nwpu.edu.cn.

Yufei Huang, Email: yufei.huang@utsa.edu.

Jia Meng, Email: jia.meng@xjtlu.edu.cn.

References

  • 1.Bernstein BE, Meissner A, Lander ES. The mammalian epigenome. Cell. 2007;128(4):669–681. doi: 10.1016/j.cell.2007.01.033. [DOI] [PubMed] [Google Scholar]
  • 2.Bock C. Analysing and interpreting DNA methylation data. Nat Rev Genet. 2012;13(10):705–719. doi: 10.1038/nrg3273. [DOI] [PubMed] [Google Scholar]
  • 3.Laird PW. Principles and challenges of genomewide DNA methylation analysis. Nat Rev Genet. 2010;11(3):191–203. doi: 10.1038/nrg2732. [DOI] [PubMed] [Google Scholar]
  • 4.Meyer KD, Jaffrey SR. The dynamic epitranscriptome: N6-methyladenosine and gene expression control. Nat Rev Mol Cell Biol. 2014;15(5):313–326. doi: 10.1038/nrm3785. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Fu Y, Dominissini D, Rechavi G, He C. Gene expression regulation mediated through reversible m(6)a RNA methylation. Nat Rev Genet. 2014;15(5):293–306. doi: 10.1038/nrg3724. [DOI] [PubMed] [Google Scholar]
  • 6.Machnicka MA, Milanowska K, Oglou OO, Purta E, Kurkowska M, Olchowik A, Januszewski W, Kalinowski S, Dunin-Horkawicz S, Rother KM: MODOMICS: a database of RNA modification pathways—2012 update. Nucleic acids research 2012:gks1007. [DOI] [PMC free article] [PubMed]
  • 7.Dominissini D, Moshitch-Moshkovitz S, Schwartz S, Salmon-Divon M, Ungar L, Osenberg S, Cesarkas K, Jacob-Hirsch J, Amariglio N, Kupiec M, et al. Topology of the human and mouse m6A RNA methylomes revealed by m6A-seq. Nature. 2012;485(7397):201–206. doi: 10.1038/nature11112. [DOI] [PubMed] [Google Scholar]
  • 8.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–1646. doi: 10.1016/j.cell.2012.05.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Dominissini D, Moshitch-Moshkovitz S, Salmon-Divon M, Amariglio N, Rechavi G. Transcriptome-wide mapping of N(6)-methyladenosine by m(6)A-seq based on immunocapturing and massively parallel sequencing. Nat Protoc. 2013;8(1):176–189. doi: 10.1038/nprot.2012.148. [DOI] [PubMed] [Google Scholar]
  • 10.Harcourt EM, Kietrys AM, Kool ET. Chemical and structural effects of base modifications in messenger RNA. Nature. 2017;541(7637):339. doi: 10.1038/nature21351. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Zhao BS, Roundtree IA, He C. Post-transcriptional gene regulation by mRNA modifications. Nat Rev Mol Cell Biol. 2017;18(1):31. doi: 10.1038/nrm.2016.132. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Meng J, Cui X, Rao MK, Chen Y, Huang Y. Exome-based analysis for RNA epigenome sequencing data. Bioinformatics. 2013;29(12):1565–1567. doi: 10.1093/bioinformatics/btt171. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Cui X, Meng J, Zhang S, Chen Y, Huang Y. A novel algorithm for calling mRNA m6A peaks by modeling biological variances in MeRIP-seq data. Bioinformatics. 2016;32(12):i378–i385. doi: 10.1093/bioinformatics/btw281. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Meng J, Lu Z, Liu H, Zhang L, Zhang S, Chen Y, Rao MK, Huang Y. A protocol for RNA methylation differential analysis with MeRIP-Seq data and exomePeak R/Bioconductor package. Methods. 2014;69(3):274–281. doi: 10.1016/j.ymeth.2014.06.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Cui X, Zhang L, Meng J, Rao M, Chen Y, Huang Y: MeTDiff: a Novel Differential RNA Methylation Analysis for MeRIP-Seq Data. IEEE/ACM Trans Comput Biol Bioinform 2015, PP(99):1–1. [DOI] [PubMed]
  • 16.Jones PA. Functions of DNA methylation: islands, start sites, gene bodies and beyond. Nat Rev Genet. 2012;13(7):484–492. doi: 10.1038/nrg3230. [DOI] [PubMed] [Google Scholar]
  • 17.Wang X, Gu J, Hilakivi-Clarke L, Clarke R, Xuan J: DM-BLD: Differential methylation detection using a hierarchical Bayesian model exploiting local dependency. Bioinformatics 2016:btw596. [DOI] [PMC free article] [PubMed]
  • 18.Klein H-U, Hebestreit K: An evaluation of methods to test predefined genomic regions for differential methylation in bisulfite sequencing data. Briefings in bioinformatics 2015:bbv095. [DOI] [PubMed]
  • 19.Stockwell PA, Chatterjee A, Rodger EJ, Morison IM: DMAP: differential methylation analysis package for RRBS and WGBS data. Bioinformatics 2014:btu126. [DOI] [PubMed]
  • 20.Saito Y, Tsuji J, Mituyama T. Bisulfighter: accurate detection of methylated cytosines and differentially methylated regions. Nucleic Acids Res. 2014;42(6):e45. doi: 10.1093/nar/gkt1373. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Robinson MD, Kahraman A, Law CW, Lindsay H, Nowicka M, Weber LM, Zhou X. Statistical methods for detecting differentially methylated loci and regions. Front Genet. 2014;5 [DOI] [PMC free article] [PubMed]
  • 22.Assenov Y, Müller F, Lutsik P, Walter J, Lengauer T, Bock C. Comprehensive analysis of DNA methylation data with RnBeads. Nat Methods. 2014;11(11):1138–1140. doi: 10.1038/nmeth.3115. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Anders S, Huber W. Differential expression analysis for sequence count data. Genome Biol. 2010;11(10):R106. doi: 10.1186/gb-2010-11-10-r106. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Robinson MD, McCarthy DJ. Smyth GK: edgeR: a Bioconductor package for differential expression analysis of digital gene expression data. Bioinformatics. 2010;26(1):139–140. doi: 10.1093/bioinformatics/btp616. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Robinson MD, Oshlack A. A scaling normalization method for differential expression analysis of RNA-seq data. Genome Biol. 2010;11(3):R25. doi: 10.1186/gb-2010-11-3-r25. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Liu L, Zhang S-W, Gao F, Zhang Y, Huang Y, Chen R, Meng J. DRME: count-based differential RNA methylation analysis at small sample size scenario. Anal Biochem. 2016; [DOI] [PubMed]
  • 27.McCullagh P, Weiss MR, Ross D. Modeling considerations in motor skill acquisition and performance: an integrated approach. Exerc Sport Sci Rev. 1989;17:475–513. [PubMed] [Google Scholar]
  • 28.Loader C. Locfit: local regression, likelihood and density estimation. R package version. 2007:1.5–4.
  • 29.Zhang L, Meng J, Liu H, Cui X, Zhang S-W, Chen Y, Huang Y: Detecting differentially methylated mRNA from MeRIP-Seq with likelihood ratio test. In: Signal and Information Processing (GlobalSIP), 2014 IEEE Global Conference on: 2014: IEEE; 2014: 1368–1371.
  • 30.Park YWH. Differential methylation analysis for BS-seq data under general experimental design. Bioinformatics. 2016;32(10):1446–1453. doi: 10.1093/bioinformatics/btw026. [DOI] [PubMed] [Google Scholar]
  • 31.Chen L, Wang C, Qin ZS, Wu H. A novel statistical method for quantitative comparison of multiple ChIP-seq datasets. Bioinformatics. 2015;31(12):1889–1896. doi: 10.1093/bioinformatics/btv094. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Fustin JM, Doi M, Yamaguchi Y, Hida H, Nishimura S, Yoshida M, Isagawa T, Morioka MS, Kakeya H, Manabe I, et al. RNA-methylation-dependent RNA processing controls the speed of the circadian clock. Cell. 2013;155(4):793–806. doi: 10.1016/j.cell.2013.10.026. [DOI] [PubMed] [Google Scholar]
  • 33.Kim D, Pertea G, Trapnell C, Pimentel H, Kelley R, Salzberg SL. TopHat2: accurate alignment of transcriptomes in the presence of insertions, deletions and gene fusions. Genome Biol. 2013;14(4):R36. doi: 10.1186/gb-2013-14-4-r36. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Kim D, Langmead B, Salzberg SL. HISAT: a fast spliced aligner with low memory requirements. Nat Methods. 2015;12(4):357–360. doi: 10.1038/nmeth.3317. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Dobin A, Davis CA, Schlesinger F, Drenkow J, Zaleski C, Jha S, Batut P, Chaisson M, Gingeras TR. STAR: ultrafast universal RNA-seq aligner. Bioinformatics. 2013;29(1):15–21. doi: 10.1093/bioinformatics/bts635. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Dewey CN, Li B. RSEM: accurate transcript quantification from RNA-Seq data with or without a reference genome. Bmc Bioinformatics. 2011;12(1):323. doi: 10.1186/1471-2105-12-323. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Bray NL, Pimentel H, Melsted P, Pachter L. Near-optimal probabilistic RNA-seq quantification. Nat Biotechnol. 2016;34(5):525. doi: 10.1038/nbt.3519. [DOI] [PubMed] [Google Scholar]
  • 38.Patro R, Duggal G, Kingsford C. Salmon: accurate, versatile and ultrafast quantification from RNA-seq data using lightweight-alignment. 2015. [Google Scholar]
  • 39.Morgan M. An introduction to Rsamtools. 2011. [Google Scholar]
  • 40.Zhang Y, Liu T, Meyer CA, Eeckhoute J, Johnson DS, Bernstein BE, Nusbaum C, Myers RM, Brown M, Li W. Model-based analysis of ChIP-Seq (MACS) Genome Biol. 2008;9(9):R137. doi: 10.1186/gb-2008-9-9-r137. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Hess ME, Hess S, Meyer KD, Verhagen LA, 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–1048. doi: 10.1038/nn.3449. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

QNB can be downloaded from https://cran.rstudio.com/web/packages/QNB/.


Articles from BMC Bioinformatics are provided here courtesy of BMC

RESOURCES