Skip to main content

Identification of DNA N6-methyladenine sites by integration of sequence features



An increasing number of nucleic acid modifications have been profiled with the development of sequencing technologies. DNA N6-methyladenine (6mA), which is a prevalent epigenetic modification, plays important roles in a series of biological processes. So far, identification of DNA 6mA relies primarily on time-consuming and expensive experimental approaches. However, in silico methods can be implemented to conduct preliminary screening to save experimental resources and time, especially given the rapid accumulation of sequencing data.


In this study, we constructed a 6mA predictor, p6mA, from a series of sequence-based features, including physicochemical properties, position-specific triple-nucleotide propensity (PSTNP), and electron–ion interaction pseudopotential (EIIP). We performed maximum relevance maximum distance (MRMD) analysis to select key features and used the Extreme Gradient Boosting (XGBoost) algorithm to build our predictor. Results demonstrated that p6mA outperformed other existing predictors using different datasets.


p6mA can predict the methylation status of DNA adenines, using only sequence files. It may be used as a tool to help the study of 6mA distribution pattern. Users can download it from


DNA N6-methyladenine (6mA) is an important epigenetic modification of nucleic acid, firstly characterized in bacteria [1]. In contrast to 5mC, 6mA remains poorly studied and was previously thought to only occur in prokaryotes [2]. Accumulating evidences, however, has confirmed that it also exists in eukaryotes, including zoological and botanical species (e.g., Arabidopsis thaliana, Mus musculus, Danio rerio, and Sus scrofa). Recently, two studies found that DNA 6mA sites also exist extensively in the genomes of humans [3] and rice [4], thus deepening our understanding of this modification in high-grade organisms.

DNA 6mA plays important roles in various biological processes, such as the restriction–modification system [5, 6], DNA replication and repair [7, 8], nucleoid segregation [9, 10], and transcription [11]. To detect DNA 6mA modification, a series of experimental methods have been developed, such as methylated DNA immunoprecipitation sequencing [12], liquid chromatograph–tandem mass spectrometry [3], capillary electrophoresis and laser-induced fluorescence [13], and single-molecule real-time sequencing (SMRT-seq) [14]. However, these experimental procedures are expensive and time-consuming and thus largely limited its application in DNA 6mA study, urging the necessity for the development of bioinformatics-based approaches to predict methylated adenine sites in genomes.

Machine learning builds models by handling features to perform specific tasks and has been widely applied in biological issues, including post-transcription RNA identification [15,16,17], promoter discovery [18,19,20], and nucleotide modification prediction [21,22,23]. The occurrence of 6mA relies on the properties of its surrounding sequences, which play vital roles in methyltransferase/demethylase-dependent catalytic processes [3, 24, 25]. Recently, some machine learning-based predictors, e.g., iDNA6mA-PseKNC [26] and i6mA-Pred [27], were developed to identify 6mA sites at the genomic level. The former was trained with mouse data and achieved a high recall ratio in several datasets, whereas the latter was designed to predict 6mA sites in rice. To the best of our knowledge, however, there is no 6mA predictor trained on multi-species data.

In this study, we constructed a predictor, p6mA, to identify DNA 6mA sites by sequence-based features. The predictor was trained on dataset from four species: i.e., Oryza sativa (rice), Drosophila melanogaster (fruit fly), Caenorhabditis elegans (worm), and Homo sapiens (human). The DNA sequences were transformed into numeric vectors by extracting 172 features. We selected key features using the maximum relevance maximum distance (MRMD) method [28] and constructed the predictor using the Extreme Gradient Boosting (XGBoost) algorithm [29]. Comparison with other existing tools demonstrated that p6mA outperformed other methods in several aspects. Users can download p6mA from


Nucleotide composition and conservation analysis

In this study, we constructed an aggregated benchmark dataset by four species’ data. There are 3040 positive samples and 3040 negative samples (Table 1). All the samples are 41 nt long with an adenosine (A) in the center. We adopted Two Sample Logos [30] to visualize significantly overrepresented and underrepresented sites with a threshold of p < 0.05. The nucleotide enrichment status, as shown in Fig. 1a, showed that there exists nucleotide distribution bias between 6mA and non-6mA containing sequences. For example, in 6mA-containing sequences, GAGG motif was enriched in center and adenosine was enriched in the + 4 nt position. The above results indicated that the surrounding nucleotide composition information can be adopted to discriminate 6mA and non-6mA sites.

Table 1 The statistics of benchmark dataset in this study
Fig. 1
figure 1

Nucleotide composition of benchmark dataset. a Two Sample Logos result of benchmark dataset, top panel denotes the nucleotide enrichment status of 6mA-containing sequences and bottom panel is of non-6mA-containing sequences. b Entropy analysis of 6mA- and non-6mA-containing sequence. Red line denote 6mA-containing sequences and blue one denotes non-6mA sequences

Next, we investigated whether sequence bias can cause differences in conservatism. We then performed entropy analysis, aiming to determine trinucleotide-positioned conservatism differences between 6mA and non-6mA sites [31]. The entropy of trinucleotides at each position was calculated as follows:

$${\text{Ent}}_{i} = - \mathop \sum \limits_{j - 1}^{n} p(3{\text{mer}}_{j} |i) \cdot \log_{2} p(3{\text{mer}}_{j} |i),$$

where n denotes the total number of trinucleotide combinations in the ith position and p(3merj|i) denotes the frequency of the jth trinucleotide at the ith position in the positive/negative samples. Two 39-dimensional numerical vectors were generated to express the entropy values at positions of positive and negative samples.

Information entropy was used to evaluate chaos in the signal processing field and help to reflect conservatism [31]. A lower entropy value, which means less chaos, indicates that the site concerned is more conserved. Figure 1b shows the comparison of trinucleotide entropy at different positions in the 6mA and non-6mA samples. Samples with 6mA sites display lower entropy values, especially at center adenine positions, than those with non-6mA sites. Our results showed that the positive samples possessed more conservatism that negative samples in specified positions, especially in regions surrounding center adenine sites.

The Two Sample Logos and entropy analysis results both supported that positioned nucleotide information is able to discriminate between 6mA and non-6mA sites, thus providing a reasonable basis for the application of positioned sequence feature extraction methods like PSTNP.

Feature selection and parameter tuning

We used three methods (i.e., PSTNP, EIIP, and physicochemical properties) to extract features. Each sample was transformed into a 172-dimensional numerical vector, though the feature set also included redundant features. To reduce computational resource waste, we used MRMD score, an index positively related to feature importance, and incremental feature selection (IFS) to select optimal feature sets for each dataset. Features were ranked by MRMD score from highest to lowest. The features from the ranked list were then added one-by-one to a new set and used to construct an XGBoost-based model with default parameters. Model performance was evaluated by tenfold cross-validation and the feature set with highest accuracy was chosen as the optimal set. As shown in Fig. 2a, the highest accuracy (82.47%) was obtained when the optimal 124 features were included. Therefore, we trained the model by its top-ranked 124 features.

Fig. 2
figure 2

Feature selection and parameters tuning. a IFS curve of feature selection. b Grid-search results of parameter tuning

We then trained models for each dataset using their optimal feature sets. To obtain better performance, a grid search strategy was used to conduct model tuning. Three parameters (i.e., gamma, eta, and max_depth) of XGBoost were optimized in the spaces [0, 0.2], [0.1, 0.5], and [2, 10] with steps of 0.1, 0.1, and 2, respectively. We trained 525 models and the parameter set with the highest tenfold cross-validation accuracy was chosen as the parameter set of the model. Accuracy scatter plots of the model based on different parameter combinations are shown in Fig. 2b. Results demonstrated that the optimal parameter set was gamma = 0.16, eta = 0.3, and max_depth = 4. Thus, we trained the model using the three optimal parameters. Then we performed jackknife test to evaluate its performance and the accuracy is 82.04%. Accordingly, a predictor named p6mA was implemented.

Comparison with existing predictors

To evaluate the prediction performance of p6mA, we compared it with three existing predictors, i.e., iDNA6mA-Pred [27], iDNA6mA-PseKNC [26] and MM-6mAPred [32]. The jackknife test result was applied to measure the predictive power of our methods.

As shown in Fig. 3a, p6mA performed better than the three predictors, it obtained the highest values among the four metrics (i.e., sensitivity, specificity, accuracy, and Matthews Correlation Coefficient). MM-6mAPred has the second highest accuracy (Acc) and second highest Matthews Correlation Coefficient (MCC), while its sensitivity (Sn) is 70.46%, which is ~ 10% lower than that of p6mA. iDNA6mA-PseKNC’s sensitivity is 77.27%, while its specificity is only 5.95%. i6mA-Pred obtains specificity of 82.37%, while the sensitivity is 64.31%. The details of the performances can be found in Additional file 1: Table S1.

Fig. 3
figure 3

Comparison between p6mA and other existing predictors by benchmark dataset. a The performance of the 4 predictors. b ROC curves of p6mA and MM-6mAPred

MM-6mAPred provides the prediction score for each sample, so we plotted its receiver operating characteristic (ROC) curve and compared it with ROC curve of p6mA (Fig. 3b). The area under the ROC curve (auROC) were calculated, p6mA has a larger auROC (0.8871) than MM-6mAPred (0.824).

Independent validation on A. thaliana dataset

We then performed independent validation on a dataset from another species. As a vital model flowering plant, A. thaliana is a good species to test our predictor, with its N6-methyladenine modification landscape previously reported in 2015 [33]. The modification data of A. thaliana were downloaded from MethSMRT and a dataset for independent validation was constructed. We obtained 1055 non-redundant positive samples and 1055 non-redundant negative samples from the reference genome TAIR10. The dataset construction method was similar to the benchmark dataset.

We compared p6mA with iDNA6mA-Pred, iDNA6mA-PseKNC and MM-6mAPred by the A. thaliana dataset. As shown in Fig. 4a, iDNA6mA-PseKNC obtained the highest Sn (84.36%), but performed less well in the other three indicators, especially Sp (5.88%). The p6mA achieved better overall performance in comparison with the other predictors: the highest Sp (80.66%), Acc (76.82%), and MCC (0.5379). We also plotted MM-6mAPred’s ROC curve and compared it with ROC curve of p6mA (Fig. 4b), p6mA has a higher auROC (0.8246) than that of MM-6mAPred (0.8141). Overall, we demonstrated the robustness of p6mA and its superiority over other existing methods by independent validation. The details of the performances can be found in Additional file 1: Table S2.

Fig. 4
figure 4

Results of independent validation by A. thaliana dataset. a The performance of the 4 predictors. b ROC curves of p6mA and MM-6mAPred

Software package introduction

To facilitate the application of our predictor, we implemented p6mA in R language, with the code stored in GitHub ( The feature extractor methods were also implemented, users just need to provide the input data in fasta format files. Each sequence of the input file should be a 41-bp-length sequence and the center position (e.g., the 21th nucleotide) is the A (adenine) for predict, like:

> human_seq_1101_hg19


The output file of p6mA is a text file containing sequence names, scores, and predicted modification status. The detailed usage and installation guide and the example input/output files can also be found on the repository page.


In this study, we built a 6mA predictor p6mA and showed that it is a more robust and competitive 6mA predictor than other existing ones, as determined using benchmark dataset and independent validation. We not only developed a convenient tool for predicting 6mA, but also indicated the portability of the position-based feature extraction method in biological subjects, especially in nucleotide modification prediction. Besides, recent research showed that different species may have different 6mA preference motifs, e.g., the AGAAT motif of C. elegans [34]. This phenomenon prompts us that it is necessary to build 6mA predictors by multiple species’ data.

In the independent test by A. thaliana data, although p6mA obtained a higher auROC than that of MM-6mAPred, the ROC cures displayed that the specificity of p6mA needs to be improved. Due to the rarity of modified nucleotides in genome, some rare category exploration methods, e.g., RCLens [35], could also be adopted into uncommon nucleic acid modification prediction problems in the future.

As an epigenetic modification, methylation of adenine is a complex biological process that may be affected by other factors, such as chromatin topology and cytoplasmic physicochemical properties. Therefore, we will incorporate additional information to improve the performance of the discrimination ability in the future and different feature extraction methods may be used to construct a more powerful epigenetic modification predictor.


In summary, we developed a new bioinformatics tool, p6mA, for predicting 6mA-modified sites. We also implemented the predictor as an R software package for ease of use. p6mA was built by multiple species’ data and it may help the investigation of 6mA modification pattern in different species’ genomes.


Benchmark dataset construction

Fruit fly and worm 6mA-positive samples were obtained from the MethSMRT database [36] and human 6mA-positive samples were obtained from the HuaXia1 assembly [37]. To construct a high-quality dataset, 6mA sites with identification Qv scores, which represent the confidence level of a modification, of less than 30 (p-values < 0.001) were filtered. We extracted ± 20 nt sequences from the 6mA sites for each sample to a final sequence length of 41 nt. To reduce sequence-homology bias, CD-HIT v4.6.8 [38] was utilized to generate non-redundant sequence sets with an identity threshold of 0.6.

The 6mA-negative samples from the above three species (i.e., fruit fly, worm, and human) were constructed by selecting non-6mA adenines randomly from the reference genomes (hg38, dm3, and ce10). To ensure negative sample quality, the non-6mA sites were not located in the ± 500-bp flanking regions of positive 6mA sites. We also extracted ± 20 nt sequences for each negative site as the negative samples, and sequence identity was also less than 0.6.

880 6mA-positive and 880 6mA-negative samples of rice were obtained from i6mA-Pred ( and retrieved by SMRT-seq [4]. All sequences were 41 nt long, with the 6mA site at the center position.

Finally, we constructed benchmark dataset from four species’ data: i.e., rice, fruit fly, worm, and human. The final benchmark dataset contains 3040 positive samples and 3040 negative samples. Each DNA sequence in the study could be simplified as the formation:

$${\text{Se}} = N_{1} N_{2} N_{3} \ldots N_{L - 1} N_{L} ,$$


$$N_{i} \in \left[ {{\text{A}}\left( {\text{adenine}} \right), {\text{C}}\left( {\text{cytosine}} \right), {\text{G}}\left( {\text{guanine}} \right), {\text{T}}\left( {\text{thymine}} \right)} \right]$$

represents the ith nucleotide in the sequence. Here, we used the following three sequence-based features: (1) electron–ion interaction pseudopotential (EIIP); (2) position-specific triple-nucleotide propensity (PSTNP), and (3) physicochemical properties. These feature extraction methods were implemented in our in-home R package RTFE (, the details of which are introduced in the following sections. Briefly, we transformed each sample into a 172-dimensional numerical vector.

EIIP features

Electron–ion interaction pseudopotential, which reflects the electronic properties of nucleotides, was first used to predict the coding potential of genomic regions [39]. EIIP-based feature extraction methods were then widely applied in field prediction and classification, including the prediction of nucleosome positioning [40] and identification of E-gene signature [41].

The EIIP feature vector was constructed as follows:

$$D = \left[ {{\text{EIIP}}_{\text{AAA}} \cdot f_{\text{AAA}} , {\text{EIIP}}_{\text{AAC}} \cdot f_{\text{AAc}} , \cdots {\text{EIIP}}_{\text{TTT}} \cdot f_{\text{TTT}} ,} \right],$$

where EIIPxyz denotes the average EIIP value of three nucleotides (x, y, and z), fxyz denotes the frequency of the 3-tuple nucleotides xyz in the sample sequence and x, y, z  (A, C, G, T). The EIIP values for the four nucleotides are:

$$\left\{ {\begin{array}{*{20}c} {{\text{EIIP}}_{\text{A}} = 0.1260} \\ {{\text{EIIP}}_{\text{C}} = 0.1340} \\ {{\text{EIIP}}_{\text{G}} = 0.0806} \\ {{\text{EIIP}}_{\text{T}} = 0.1335} \\ \end{array} } \right..$$

Using this method, we generated 64 features.

PSTNP features

Position-specific triple-nucleotide propensity describes the differences in nucleotide composition at each position between the sequences with and without 6mA modification. As a statistics-based feature extraction method, PSTNP has been used to address multiple molecular biological problems, including DNA N4-methylcytosine (4mC) site prediction [22], enhancer prediction [42], and σ70 promoter predictor [43].

Two subtypes of PSTNP were used in this study, i.e., single-stranded and double-stranded (PSTNPSS and PSTNPDS, respectively). The PSTNPSS features are based on the single-stranded characteristics of DNA and contain 64 (43) trinucleotides: AAA, AAC, AAG, …, TTT. Thus, for a sequence with a length of l-bp, the detailed information of the trinucleotide positions can be expressed by a 64 × (l − 2) matrix Z:

$$Z = \left[ {\begin{array}{*{20}c} {Z_{1,1} } & \cdots & {Z_{1,l - 2} } \\ \vdots & \ddots & \vdots \\ {Z_{64,1} } & \cdots & {Z_{64,l - 2} } \\ \end{array} } \right],$$

where the variable

$$Z_{i,j} = F^{ + } \left( {3{\text{mer}}_{i} |j} \right) - F^{ - } \left( {3{\text{mer}}_{i} |j} \right) \left( {i = 1,2, \ldots ,64; j = 1,2, \ldots l - 2} \right) .$$

F+(3meri|j) and F(3meri|j) denote the frequency of the ith trinucleotide (3meri) at the jth position in the positive and negative datasets, respectively. 3mer1 is AAA, 3mer2 is AAC,… 3mer64 is TTT in Eq. 6.

The sample in Eq. 1 can be expressed as the PSTNPSS vector:

$$S = \left[ {\phi_{1} , \phi_{2} ,\phi_{3} ,\phi_{4} , \ldots , \phi_{l - 2, } } \right]^{\text{T}} ,$$

where T is the transpose operator and ϕv is defined as:

$$\phi_{u} = \left\{ {\begin{array}{*{20}c} {Z_{1,u} ,\,{\text{when}}\;N_{u} N_{u + 1} N_{u + 2} = {\text{AAA}}} \\ {Z_{2,u} ,\,{\text{when }}\;N_{u} N_{u + 1} N_{u + 2} = {\text{AAC}}} \\ {Z_{3,u} ,\,{\text{when}}\;N_{u} N_{u + 1} N_{u + 2} = {\text{AAG}}} \\ \vdots \\ {Z_{64,u} ,\,{\text{when}}\;N_{u} N_{u + 1} N_{u + 2} = {\text{TTT}}} \\ \end{array} } \right. \left( {1 \le u \le l - 2} \right).$$

PSTNPDS features characterize double-stranded position-specified information according to complementary pairing. We deemed A and T as identical, the same to C and G. Each sample could be converted into a sequence containing A and C only. For example, the DNA sequence “TCGAGTGAC” could be converted into “ACCACACAC”. There are only eight (23) trinucleotides: AAA, AAC,…, CCC. Thus, for a sequence whose length is l-bp, detailed information on trinucleotide positions can be expressed by an 8 × (l − 2) matrix Z′:

$$Z^{\prime} = \left[ {\begin{array}{*{20}c} {Z^{\prime}_{1,1} } & \cdots & {Z^{\prime}_{1,l - 2} } \\ \vdots & \ddots & \vdots \\ {Z^{\prime}_{8,1} } & \cdots & {Z^{\prime}_{8,l - 2} } \\ \end{array} } \right],$$

where the variable

$$Z^{\prime}_{i,j} = F^{ + } \left( {3{\text{mer}}_{i} |j} \right) - F^{ - } \left( {3{\text{mer}}_{i} |j} \right) \left( {i = 1,2, \ldots ,8; j = 1,2, \ldots l - 2} \right).$$

F+ (3meri|j) and F (3meri|j) denote the frequency of the ith trinucleotide (3meri) at the jth position in the positive and negative datasets, respectively. 3mer1 is AAA, 3mer2 is AAC, …, 3mer8 is CCC in Eq. 10.

The sample in Eq. 1 can be expressed as the PSTNPDS vector:

$$S^{\prime} = \left[ {\phi^{\prime}_{1} , \phi^{\prime}_{2} ,\phi^{\prime}_{3} ,\phi^{\prime}_{4} , \ldots , \phi^{\prime}_{l - 2, } } \right]^{\text{T}} ,$$

where S′ is the converted sequence and T is the transpose operator. In this formula, ϕv is defined as:

$$\phi^{\prime}_{u} = \left\{ {\begin{array}{*{20}c} {Z^{\prime}_{1,u} , \,{\text{when}} N_{u} N_{u + 1} N_{u + 2} = {\text{AAA}}} \\ {Z^{\prime}_{2,u} ,\,{\text{when}} N_{u} N_{u + 1} N_{u + 2} = {\text{AAC}}} \\ {Z^{\prime}_{3,u} ,\,{\text{when}} N_{u} N_{u + 1} N_{u + 2} = {\text{ACA}}} \\ \vdots \\ {Z^{\prime}_{64,u} ,\,{\text{when}} N_{u} N_{u + 1} N_{u + 2} = {\text{CCC}}} \\ \end{array} } \right. \left( {1 \le u \le l - 2} \right).$$

Here, both PSTNPSS and PSTNPDS generated 39 features.

Physicochemical properties

The pseudo-amino acid composition (PseAAC) method has been successful used to address many computational proteomics problems [44,45,46,47] and hastened the application of the pseudo k-tuple nucleotide composition (PseKNC) method. In this study, we used a simplified Type-II PseKNC based on physicochemical properties, which can represent the long-range interaction between oligonucleotides. The physicochemical Type-II PseKNC feature was constructed as follows:

$${\text{Dp}} = \left[ {d_{1} ,d_{2} ,d_{4} ,d_{4} , \ldots d_{\varLambda } , d_{\varLambda + 1} , \ldots d_{\lambda \varLambda } } \right]^{\text{T}} ,$$

where di reflects the long-range sequence-order physicochemical effect of a DNA sequence whose length is L-bp and definition is:

$$\left\{ {\begin{array}{*{20}l} {d_{1} = \frac{1}{L - k - 1}\sum\nolimits_{i = 1}^{L - k - 1} {J_{i,i + 1}^{1} } } \\ {d_{2} = \frac{1}{L - k - 1}\sum\nolimits_{i = 1}^{L - k - 1} {J_{i,i + 1}^{2} } } \\ {d_{3} = \frac{1}{L - k - 1}\sum\nolimits_{i = 1}^{L - k - 1} {J_{i,i + 1}^{3} } } \\ \vdots \\ {d_{\varLambda } = \frac{1}{L - k - 1}\sum\nolimits_{i = 1}^{L - k - 1} {J_{i,i + 1}^{\varLambda } } } \\ \vdots \\ {d_{\lambda \varLambda - 1} = \frac{1}{L - k - 1}\sum\nolimits_{i = 1}^{L - k - \lambda } {J_{i,i + \lambda }^{\varLambda - 1} } } \\ {d_{\lambda \varLambda } = \frac{1}{L - k - 1}\sum\nolimits_{i = 1}^{L - k - \lambda } {J_{i,i + \lambda }^{\varLambda } } } \\ \end{array} } \right..$$

In Eq. 15, λ denotes the tiers or correlation ranks along a DNA sequence and should be set to a signless integer less than L − k. Λ is the number of physicochemical properties used in feature construction. \(J_{i,i + m}^{\psi }\) denotes the correlation of the ψth physicochemical property between the ith dinucleotide (NiNi+1) and (i + m)th dinucleotide (Ni+mNi+m+1). \(J_{i,i + m}^{\psi }\) can be calculated by:

$$\left\{ {\begin{array}{*{20}l} {J_{i,i + m}^{\psi } = H_{\psi } \left( {N_{i} N_{i + 1} } \right) \cdot H_{\psi } \left( {N_{i + m} N_{i + m + 1} } \right)} \\ {\psi = 1,2, \ldots ,\varLambda ;m = 1,2, \ldots ,\lambda ;i = 1,2, \ldots ,L - k - \lambda } \\ \end{array} }, \right.$$

where Hψ(NiNi+1) and Hψ(Ni+mNi+m+1) are the values of the ψth physicochemical property for dinucleotides NiNi+1 and Ni+mNi+m+1, respectively. In this study, six double-stranded B-DNA physicochemical properties (e.g., rise, ring, shift, slide, tilt, and twist) from DiProGB ( were used.

Before substituting values into Eq. 16, the original property values were standardized by the formula:

$$H_{\psi } \left( {N_{i} N_{i + 1} } \right) = \frac{{H_{\psi }^{0} \left( {N_{i} N_{i + 1} } \right) \cdot \left\langle {H_{\psi }^{0} \left( {N_{i} N_{i + 1} } \right)} \right\rangle }}{{{\text{SD}}\left[ {H_{\psi }^{0} \left( {N_{i} N_{i + 1} } \right)} \right]}},$$

where \(H_{\psi }^{0} (N_{i} N_{i + 1} )\) is the original ψth physicochemical property value for NiNi+1 and \(\left\langle \bullet \right\rangle\) brackets are the average of quantity therein over the 16 different combinations of A, C, G, and T for NiNi+1. SD is the standard deviation of the corresponding 16 property values.

In this study, λ = 5 and there were six (Λ = 6) properties. This method generated 30 features.

Feature selection

Maximum relevance maximum distance (MRMD) [28] was used to select the features. The software package of MRMD was obtained from

Gradient Boosting decision trees

The Gradient Boosting algorithm constructs a strong ensemble learner using multiple weak learners, such as decision trees, and has been applied in a series of biologically supervised classification projects, including prediction of gamma-aminobutyric acid type-A receptors and hot spots at protein–protein interfaces [48, 49]. The Extreme Gradient Boosting (XGBoost) algorithm proposed by Chen and Guestrin [29] is an efficient implementation of Gradient Boosting and has been used extensively by data scientists [50]. The R interface in xgboost v0.81.0.1 was used in this study.

Appropriate tuning of parameters can strengthen a predictor’s discrimination ability. We performed parameter tuning by grid search, with three parameters thus optimized: i.e., maximum tree depth for base weak learners (max_depth, from 2 to 10, step by 1), learning rate (eta, from 0.1 to 0.9, step by 0.05), and gamma (gamma, from 0 to 0.2, step by 0.002). We herein used tenfold cross-validation to select the optimal parameters by accuracy.

Performance assessment

We used the jackknife test to evaluate the predictor’s performance [51]. Four indices were adopted: i.e., sensitivity (Sn), specificity (Sp), accuracy (Acc), and Matthews Correlation Coefficient (MCC). The indices were defined as:

$$\left\{ {\begin{array}{*{20}l} {{\text{Sn}} = 1 - \frac{{N_{ - }^{ + } }}{{N^{ + } }}} \\ {{\text{Sp}} = 1 - \frac{{N_{ + }^{ - } }}{{N^{ - } }}} \\ {{\text{Acc}} = 1 - \frac{{N_{ - }^{ + } + N_{ + }^{ - } }}{{N^{ + } + N^{ - } }}} \\ {{\text{MCC}} = \frac{{1 - \left( {\frac{{N_{ - }^{ + } }}{{N^{ + } }} + \frac{{N_{ + }^{ - } }}{{N^{ - } }}} \right)}}{{\sqrt {\left( {1 + \frac{{N_{ + }^{ - } - N_{ - }^{ + } }}{{N^{ + } }}} \right)\left( {1 + \frac{{N_{ - }^{ + } - N_{ + }^{ - } }}{{N^{ - } }}} \right)} }}} \\ \end{array} } \right.,$$

where \(N_{ - }^{ + }\) is the number of positive samples incorrectly predicted to be negative, \(N_{{}}^{ + }\) is the total number of positive samples, \(N_{ + }^{ - }\) is the number of negative samples incorrectly predicted to be positive, and \(N_{{}}^{ - }\) is the total number of negative samples. The four metrics above are valid only for single-label systems.

Availability of data and materials

The datasets used and analyzed during the current study are available from MethSMRT database ( and i6mA-Pred ( (Readers can download the *.fasta sequence files of benchmark dataset and A. thaliana dataset from p6mA was implemented by R language 3.6.1 and the code can also be found at



Extreme Gradient Boosting




Position-specific triple-nucleotide propensity


Electron–ion interaction pseudopotential


Maximum relevance maximum distance


Incremental feature selection

ROC curve:

Receiver operating characteristic curve


Area under ROC curve








Matthews Correlation Coefficient


  1. Dunn DB, Smith JD. Occurrence of a new base in the deoxyribonucleic acid of a strain of Bacterium coli. Nature. 1955;175(4451):336–7.

    Article  CAS  PubMed  Google Scholar 

  2. Vanyushin BF, Tkacheva SG, Belozersky AN. Rare bases in animal DNA. Nature. 1970;225(5236):948–9.

    Article  CAS  PubMed  Google Scholar 

  3. Xiao CL, Zhu S, He M, Chen D, Zhang Q, Chen Y, et al. N(6)-methyladenine DNA modification in the human genome. Mol Cell. 2018;71(2):306–18.

    Article  CAS  PubMed  Google Scholar 

  4. Zhou C, Wang C, Liu H, Zhou Q, Liu Q, Guo Y, et al. Identification and analysis of adenine N(6)-methylation sites in the rice genome. Nat Plants. 2018;4(8):554–63.

    Article  CAS  PubMed  Google Scholar 

  5. Linn S, Arber W. Host specificity of DNA produced by Escherichia coli, X. In vitro restriction of phage fd replicative form. Proc Natl Acad Sci USA. 1968;59(4):1300–6.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  6. Meselson M, Yuan R. DNA restriction enzyme from E. coli. Nature. 1968;217(5134):1110–4.

    Article  CAS  PubMed  Google Scholar 

  7. Campbell JL, Kleckner N. E. coli oriC and the dnaA gene promoter are sequestered from dam methyltransferase following the passage of the chromosomal replication fork. Cell. 1990;62(5):967–79.

    Article  CAS  PubMed  Google Scholar 

  8. Pukkila PJ, Peterson J, Herman G, Modrich P, Meselson M. Effects of high levels of DNA adenine methylation on methyl-directed mismatch repair in Escherichia coli. Genetics. 1983;104(4):571–82.

    CAS  PubMed  PubMed Central  Google Scholar 

  9. Vasu K, Nagaraja V. Diverse functions of restriction-modification systems in addition to cellular defense. Microbiol Mol Biol Rev. 2013;77(1):53–72.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  10. Wion D, Casadesus J. N6-methyl-adenine: an epigenetic signal for DNA–protein interactions. Nat Rev Microbiol. 2006;4(3):183–92.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  11. Robbins-Manke JL, Zdraveski ZZ, Marinus M, Essigmann JM. Analysis of global gene expression and double-strand-break formation in DNA adenine methyltransferase- and mismatch repair-deficient Escherichia coli. J Bacteriol. 2005;187(20):7027–37.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  12. Pomraning KR, Smith KM, Freitag M. Genome-wide high throughput analysis of DNA methylation in eukaryotes. Methods. 2009;47(3):142–50.

    Article  CAS  PubMed  Google Scholar 

  13. Krais AM, Cornelius MG, Schmeiser HH. Genomic N(6)-methyladenine determination by MEKC with LIF. Electrophoresis. 2010;31(21):3548–51.

    Article  CAS  PubMed  Google Scholar 

  14. Flusberg BA, Webster DR, Lee JH, Travers KJ, Olivares EC, Clark TA, et al. Direct detection of DNA methylation during single-molecule, real-time sequencing. Nat Methods. 2010;7(6):461–5.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  15. de Araujo Oliveira JV, Costa F, Backofen R, Stadler PF, Machado Telles Walter ME, Hertel J. SnoReport 2.0: new features and a refined Support Vector Machine to improve snoRNA identification. BMC Bioinform. 2016;17(Suppl 18):464.

    Article  CAS  Google Scholar 

  16. Gupta Y, Witte M, Moller S, Ludwig RJ, Restle T, Zillikens D, et al. ptRNApred: computational identification and classification of post-transcriptional RNA. Nucleic Acids Res. 2014;42(22):e167.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  17. Hertel J, Hofacker IL, Stadler PF. SnoReport: computational identification of snoRNAs with unknown targets. Bioinformatics. 2008;24(2):158–64.

    Article  CAS  PubMed  Google Scholar 

  18. Song K. Recognition of prokaryotic promoters based on a novel variable-window Z-curve method. Nucleic Acids Res. 2012;40(3):963–71.

    Article  CAS  PubMed  Google Scholar 

  19. Umarov RK, Solovyev VV. Recognition of prokaryotic and eukaryotic promoters using convolutional deep learning neural networks. PLoS ONE. 2017;12(2):e0171410.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  20. Wu Q, Wang J, Yan H. An improved position weight matrix method based on an entropy measure for the recognition of prokaryotic promoters. Int J Data Min Bioinform. 2011;5(1):22–37.

    Article  PubMed  Google Scholar 

  21. Chen W, Yang H, Feng P, Ding H, Lin H. iDNA4mC: identifying DNA N4-methylcytosine sites based on nucleotide chemical properties. Bioinformatics. 2017;33(22):3518–23.

    Article  CAS  PubMed  Google Scholar 

  22. He W, Jia C, Zou Q. 4mCPred: machine learning methods for DNA N4-methylcytosine sites prediction. Bioinformatics. 2019;35(4):593–601.

    Article  CAS  PubMed  Google Scholar 

  23. Liu Z, Xiao X, Qiu WR, Chou KC. iDNA-methyl: identifying DNA methylation sites via pseudo trinucleotide composition. Anal Biochem. 2015;474:69–77.

    Article  CAS  PubMed  Google Scholar 

  24. Fu Y, Luo GZ, Chen K, Deng X, Yu M, Han D, et al. N6-methyldeoxyadenosine marks active transcription start sites in Chlamydomonas. Cell. 2015;161(4):879–92.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  25. Iyer LM, Abhiman S, Aravind L. Natural history of eukaryotic DNA methylation systems. Prog Mol Biol Transl Sci. 2011;101:25–104.

    Article  CAS  PubMed  Google Scholar 

  26. Feng P, Yang H, Ding H, Lin H, Chen W, Chou KC. iDNA6mA-PseKNC: identifying DNA N(6)-methyladenosine sites by incorporating nucleotide physicochemical properties into PseKNC. Genomics. 2019;111(1):96–102.

    Article  CAS  PubMed  Google Scholar 

  27. Chen W, Lv H, Nie F, Lin H. i6mA-Pred: identifying DNA N6-methyladenine sites in the rice genome. Bioinformatics. 2019.

    Article  PubMed  PubMed Central  Google Scholar 

  28. Zou Q, Wan S, Ju Y, Tang J, Zeng X. Pretata: predicting TATA binding proteins with novel features and dimensionality reduction strategy. BMC Syst Biol. 2016;10(Suppl 4):114.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  29. Chen T, Guestrin C, editors. XGBoost: a scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining KDD’16. New York: ACM; 2016.

  30. Crooks GE, Hon G, Chandonia JM, Brenner SE. WebLogo: a sequence logo generator. Genome Res. 2004;14(6):1188–90.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  31. Fickett JW. Quantitative discrimination of MEF2 sites. Mol Cell Biol. 1996;16(1):437–41.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  32. Pian C, Zhang G, Li F, Fan X. MM-6mAPred: identifying DNA N6-methyladenine sites based on Markov Model. Bioinformatics. 2019.

    Article  Google Scholar 

  33. Berlin K, Koren S, Chin CS, Drake JP, Landolin JM, Phillippy AM. Assembling large genomes with single-molecule sequencing and locality-sensitive hashing. Nat Biotechnol. 2015;33(6):623–30.

    Article  CAS  PubMed  Google Scholar 

  34. Greer EL, Blanco MA, Gu L, Sendinc E, Liu J, Aristizabal-Corrales D, et al. DNA methylation on N6-adenine in C. elegans. Cell. 2015;161(4):868–78.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  35. Lin H, Gao S, Gotz D, Du F, He J, Cao N. RCLens: interactive rare category exploration and identification. IEEE Trans Vis Comput Graph. 2018;24(7):2223–37.

    Article  PubMed  Google Scholar 

  36. Ye P, Luan Y, Chen K, Liu Y, Xiao C, Xie Z. MethSMRT: an integrative database for DNA N6-methyladenine and N4-methylcytosine generated by single-molecular real-time sequencing. Nucleic Acids Res. 2017;45(D1):D85–9.

    Article  CAS  PubMed  Google Scholar 

  37. Shi L, Guo Y, Dong C, Huddleston J, Yang H, Han X, et al. Long-read sequencing and de novo assembly of a Chinese genome. Nat Commun. 2016;7:12065.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  38. Fu L, Niu B, Zhu Z, Wu S, Li W. CD-HIT: accelerated for clustering the next-generation sequencing data. Bioinformatics. 2012;28(23):3150–2.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  39. Nair AS, Sreenadhan SP. A coding measure scheme employing electron-ion interaction pseudopotential (EIIP). Bioinformation. 2006;1(6):197–202.

    PubMed  PubMed Central  Google Scholar 

  40. Jia C, Yang Q, Zou Q. NucPosPred: predicting species-specific genomic nucleosome positioning via four different modes of general PseKNC. J Theor Biol. 2018;450:15–21.

    Article  CAS  PubMed  Google Scholar 

  41. Cai R, Qian D, Wang D, Zhu P. E-gene signature method with biological and physical characteristics—case in p53 gene family. Comput Eng Appl. 2017;53(13):155–9.

    Google Scholar 

  42. He WY, Jia CZ. EnhancerPred2.0: predicting enhancers and their strength based on position-specific trinucleotide propensity and electron–ion interaction potential feature selection. Mol Biosyst. 2017;13(4):767–74.

    Article  CAS  PubMed  Google Scholar 

  43. He W, Jia C, Duan Y, Zou Q. 70ProPred: a predictor for discovering sigma70 promoters based on combining multiple features. BMC Syst Biol. 2018;12(Suppl 4):44.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  44. Chou KC. Prediction of protein cellular attributes using pseudo-amino acid composition. Proteins. 2001;43(3):246–55.

    Article  CAS  PubMed  Google Scholar 

  45. Liao B, Jiang JB, Zeng QG, Zhu W. Predicting apoptosis protein subcellular location with PseAAC by incorporating tripeptide composition. Protein Pept Lett. 2011;18(11):1086–92.

    Article  CAS  PubMed  Google Scholar 

  46. Xu Y, Ding J, Wu LY, Chou KC. iSNO-PseAAC: predict cysteine S-nitrosylation sites in proteins by incorporating position specific amino acid propensity into pseudo amino acid composition. PLoS ONE. 2013;8(2):e55844.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  47. Xu Y, Wen X, Shao XJ, Deng NY, Chou KC. iHyd-PseAAC: predicting hydroxyproline and hydroxylysine in proteins by incorporating dipeptide position-specific propensity into pseudo amino acid composition. Int J Mol Sci. 2014;15(5):7594–610.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  48. Liao Z, Huang Y, Yue X, Lu H, Xuan P, Ju Y. In silico prediction of gamma-aminobutyric acid type-A receptors using novel machine-learning-based SVM and GBDT approaches. Biomed Res Int. 2016;2016:2375268.

    PubMed  PubMed Central  Google Scholar 

  49. Wang H, Liu C, Deng L. Enhanced prediction of hot spots at protein–protein interfaces using extreme gradient boosting. Sci Rep. 2018;8(1):14285.

    Article  PubMed  PubMed Central  CAS  Google Scholar 

  50. Chen H, Engkvist O, Wang Y, Olivecrona M, Blaschke T. The rise of deep learning in drug discovery. Drug Discov Today. 2018;23(6):1241–50.

    Article  PubMed  Google Scholar 

  51. Chou KC. Using subsite coupling to predict signal peptides. J Protein Eng. 2001;14(2):75–9.

    Article  CAS  Google Scholar 

Download references


We thank Dr. Christine Watts and Mr. Zia Ur Rahman for help in proof-reading the manuscript.


The work was supported by Grants from National Key R&D Program of China (No. 2018YFC2000400), The Second Tibetan Plateau Scientific Expedition and Research (No. 2019QZKK0607), the National Natural Science Foundation of China (91749109, 81701394), and Key Research Program of Frontiers Science of the Chinese Academy of Sciences (QYZDB-SSW-SMC020).

Author information

Authors and Affiliations



QPK designed and supervised the project. HTW, FHX and GHL collected the data. HTW performed the data analyses. HTW implemented the R package. HTW, FHX, and QPK wrote the paper. GHL revised the paper. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Qing-Peng Kong.

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.

Additional information

Publisher's Note

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

Supplementary information

Additional file 1: Tables S1

, S2. Summary of performances of 4 predictors on benchmark dataset and A. thaliana dataset.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit The Creative Commons Public Domain Dedication waiver ( applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Wang, HT., Xiao, FH., Li, GH. et al. Identification of DNA N6-methyladenine sites by integration of sequence features. Epigenetics & Chromatin 13, 8 (2020).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: