Skip to main content
  • Methodology Article
  • Open access
  • Published:

A novel semi-supervised algorithm for the taxonomic assignment of metagenomic reads

Abstract

Background

Taxonomic assignment is a crucial step in a metagenomic project which aims to identify the origin of sequences in an environmental sample. Among the existing methods, since composition-based algorithms are not sufficient for classifying short reads, recent algorithms use only the feature of similarity, or similarity-based combined features. However, those algorithms suffer from the computational expense because the task of similarity search is very time-consuming. Besides, the lack of similarity information between reads and reference sequences due to the length of short reads reduces significantly the classification quality.

Results

This paper presents a novel taxonomic assignment algorithm, called SeMeta, which is based on semi-supervised learning to produce a fast and highly accurate classification of short-length reads with sufficient mutual overlap. The proposed algorithm firstly separates reads into clusters using their composition feature. It then labels the clusters with the support of an efficient filtering technique on results of the similarity search between their reads and reference databases. Furthermore, instead of performing the similarity search for all reads in the clusters, SeMeta only does for reads in their subgroups by utilizing the information of sequence overlapping. The experimental results demonstrate that SeMeta outperforms two other similarity-based algorithms on different aspects.

Conclusions

By using a semi-supervised method as well as taking the advantages of various features, the proposed algorithm is able not only to achieve high classification quality, but also to reduce much computational cost. The source codes of the algorithm can be downloaded at http://it.hcmute.edu.vn/bioinfo/metapro/SeMeta.html

Background

Metagenomics is a powerful approach for studying microbial samples, without the needs of isolating and culturing single organisms. The discipline offers opportunities to discover the complexity and diversity of microbial communities. Earlier metagenomic projects have provided a good understanding of various microbial environments such as acid mine drainage [1], seawater [2], and human gut [3]. With the development of the next-generation sequencing (NGS) techniques, e.g., 454 pyrosequencing, Illumina Genome Analyzer, AB SOLiD [4], current metagenomic projects usually process an unprecedented amount of biological data. Moreover, reads generated by the NGS techniques are often less than 700 bp [5]. For instance, current Illumina read lengths are from 36 to 300 bp (single-end or paired-end reads). These aspects pose major challenges for computational analysis [6, 7].

One of the crucial tasks in a metagenomic project, referred to as taxonomic assignment problem, is to identify the origin of each sequence in an environmental sample. This task helps in grouping the sequences into bins and determining how they are related to known taxa. Current taxonomic assignment algorithms are mainly based on the composition and similarity features of genomic sequences.

Some algorithms only use composition features, e.g., GC-content (TAC-ELM [8]), oligonucleotide frequencies (TACOA [9], MetaID [10], AKE [11]), which are extracted from both analyzed and reference sequences. Most of those algorithms are proposed to process long reads (≥1000 bp), and consequently to be inaccurate in short read classification, though they are really fast. For example, TACOA can only achieve the sensitivity values from 3 % to 17 % for reads as short as 800 bp at the taxonomic levels of order and genus. It is clear that the lack of composition information in short reads results in the low classification performance of those methods. Besides, some unsupervised binning methods [1214] use composition features, but they do not assign taxonomic identity for reads.

Recent taxonomic assignment methods are commonly based on the similarity information between analyzed sequences and sequences in reference databases, which can be obtained by an alignment tool (e.g., BLAST, BLAT). MEGAN [15] is a similarity-based method using the lowest common ancestor (LCA) algorithm to find the best common ancestor based on BLAST bit-scores. One of the drawbacks of the LCA is that ambiguous hits may result in assigning reads to taxonomic levels higher than those of their origin. MEGAN overcomes the problem by using some thresholds related to the bit-scores to filter out the ambiguous hits. Other BLAST-based algorithms, SOrt-ITEMS [16], and CARMA3 [17], also attempt to address the drawback by using a reciprocal search step to identify significant hits. The similarity-based methods are demonstrated to be able to work with short reads. However, a large percentage of reads cannot be classified because those reads do not match to reference sequences or match with extremely low bit-scores. Besides, those methods are very time-consuming because the task of similarity search requires an enormous amount of time.

Utilizing the advantages of the combined usage of composition and similarity features are major motivations for currently available hybrid algorithms. In order to reduce computational time, but still retaining the accuracy like similarity-only based methods, SPHINX [18] firstly classifies reference sequences into clusters, and computes the distance between each query sequence and the centriod of the clusters. The algorithm then only needs to perform BLAST search for each query against sequences in a cluster, instead of the whole reference sequences. MetaCluster-TA [19] and PhymmBL [20] are also known as hybrid algorithms. PhymmBL, an extension of Phymm [20], uses BLAST tool to perform similarity search for all reads to provide reference information supporting for the classification process in Phymm. MetaCluster-TA, on the other hand, can be classified as a semi-supervised method, is a combination of three available algorithms, IDBA-UD [21] for assembling reads into virtual contigs, MetaCluster 5.0 [22] for clustering the contigs as well as unassembled sequences, and MEGAN [15] for labeling clusters. The two algorithms aim to improve the classification quality, but this could make them suffer from more computational expense than similarity-only based methods. Moreover, due to the usage of MEGAN, MetaCluster-TA does not combinedly use the similarity information of reads with reference sequences in each cluster in the process of cluster labeling.

In this paper, we present a new taxonomic assignment algorithm which uses a semi-supervised cluster-and-label method for metagenomic reads. The proposed algorithm, called SeMeta (i.e., a semi-unsupervised taxonomic assignment of metagenomic reads), aims to improve both the quality and computational efficiency of the classification for short reads which sufficiently overlap each other. After separating reads into clusters, the proposed method assigns each cluster to the best suitable taxon basing on the similarity between their reads and reference databases. Two main new ideas contributed in this work mainly support to the assignment step of the clusters, utilizing output of the clustering process. Firstly, instead of performing the similarity search of all reads in the clusters against reference databases, the method only needs to do for their subgroup of non-overlapping reads so that it can help in reducing overall run-time significantly. Secondly, the similarity information of reads with reference sequences in each cluster are combinedly used for the cluster assignment to produce better classification quality.

The next section presents the details of the proposed algorithm. The strength of SeMeta on both simulated and real metagenomic datasets is demonstrated in the section of experimental results. The final sections are for discussions and conclusions.

Methods

Fundamentals of proposed method

Semi-supervised learning has been known as an efficient technique in many fields, especially in the fields of labeling a large amount of data. It is expected that the technique helps more data items to be labeled, and the labeling to be more accurate comparing to supervised algorithms due to the support of unsupervised process. Several semi-supervised classification methods have been proposed in the literature [23]. In this study, we proposed a semi-supervised algorithm which can be classified as a cluster-and-label method [23]. The proposed algorithm is based on an assumption that reads tend to form separated clusters, and reads in the same cluster are more likely to share a same label.

Given a list of n metagenomic reads. By using the above assumption, the first step of the proposed method aims to partition the n reads into k sets C 1,C 2,…,C k ,kn. In the second step, each cluster C i is labeled based on the similarity search of its reads against reference databases. One of the ideas applied in this study is that instead of performing the similarity search for all reads in each cluster, our method only does for its representative defined as follows. Each representative K(C i ) of a cluster C i ,1≤ik, called a core of C i , is its subset which contains only non-overlapping reads. This is motivated by an observation that although a core K(C i ) consists of a small number of reads of C i , it still keeps most of the sequence information of C i . It thus contains the majority of the similarity information between C i and reference sequences. The idea is exemplified in Fig. 1. Given a cluster consisting of 16 reads which covers from position x to y in a reference sequence. Choosing a subset of the cluster consisting 5 reads from r 1 to r 5. It can be seen that the subset also covers most of positions from x to y in the reference sequence. An experiment conducted in this work (presented in the section of Experimental results) demonstrates that the usage of cluster cores has an extremely light effect on the classification quality while reducing much computation cost. Besides, it can be realized that the cores of clusters are similar to assembled contigs which are possibly generated from the reads. The procedure applied in this work helps to avoid an assembly process which is very time-consuming [24] while still keeping classification quality.

Fig. 1
figure 1

A subset of non-overlapping reads in a cluster. A cluster consists of 16 reads. A subset of 5 non-overlapping reads from r 1 to r 5 covers most of positions from x to y in the reference sequence. Those reads are also mapped with reference sequences G 1,G 2,G 3,G 4 with high bit-scores

In order to determine whether two reads r,sR overlap each other or not, this work uses a same method as described in [25] which is based on the number of shared l-mers between reads. It is stated as follows. Given \( m,l\in N \) (l is sufficiently large), if r, and s share at least m l-mers, the two reads are considered as overlapping reads. Otherwise, they are non-overlapping reads [25].

In the step of cluster labeling, a two-level filtering technique is proposed to reduce insignificant hits of the similarity search output (by BLAST tool). The first level filters out the BLAST hits of low bit-scores for each read by using two basic thresholds min-score and top-percent similar to existing studies [15, 16, 26]. The repeat of short sequences between different organisms may cause for the fact that a read may be mapped against reference sequences of different organisms with all high bit-scores, especially with the case of short reads. Thus, it is difficult to distinguish which hits are reliable by only using the first level filtering. By taking the advantage of the clustering process, an additional filtering is applied at the cluster level. Because reads in the same cluster are more likely to have the same taxon, we label reads in the same cluster together. The proposed method only chooses the hits which are mapped by the majority of reads in the core of clusters. For example, assuming that after performing the similarity search for the core consisting of 5 reads (from r 1 to r 5) in Fig. 1, and applying a filtering at the read level, we have 5 lists of hits corresponding to the reads (the list of hits for read r j is denoted by h j ,1≤j≤5). h 1={G 1,G 2,G 3}, h 2={G 1,G 4}, h 3={G 2,G 3}, h 4={G 2,G 4}, h 5={G 2}, in which, G 1,G 2,G 3,G 4 are the names of genomes (BLAST hits). If we choose a threshold is 60 %, it means that the hits mapped by at least 0.6×5=3 reads in the cluster core will be chosen. Therefore, the hit G 2 is retained, while the others are discarded.

Algorithms

This section describes algorithmic aspects of the proposed method in details. Figure 2 presents the process of SeMeta, including two major steps: Clustering and Taxonomic Assignment.

Fig. 2
figure 2

Process of SeMeta. Step 1 separates reads into clusters, and builds the cluster cores. Step 2 does similarity searching between the cores and reference sequences, then labels each cluster

Step 1: clustering

In this step, reads are classified into clusters of closely related organisms using an improvement of BiMeta [25] - an efficient clustering algorithm for metagenomic reads. It is similar to BiMeta, the proposed algorithm firstly groups reads based on their overlapping information among them. A k-means algorithm is used to merge the groups into clusters basing on extracted l-mer frequencies of the groups themselves. However, there are two differences in SeMeta compared to BiMeta. Firstly, since l-mer frequencies extracted from extremely small groups are usually not reliable due to the lack of composition information, SeMeta removes them from the phase of group merging to improve the clustering precision. Secondly, while BiMeta requires the number of clusters in data from users, SeMeta is able to detect it automatically by using the evaluation function f(k) from the study in [27]. The evaluation method has been demonstrated to be effective for k-means based algorithms.

Building cores of clusters

After reads are separated into k clusters C 1,…,C k , cores of the clusters are built based on the information of overlapping sequence between reads. A core K(C i ),1≤ik, of a cluster C i , which will be a representative of the cluster, is equivalent to an independent set or stable set on graphs. An independent set defined on a graph is a set of vertices which does not consist any pair of adjacent vertices [28]. In this work, a greedy heuristic algorithm is applied to find a maximal independent set of the cluster.

In practice, datasets may contain reads of extremely low-abundance genomes. These reads are more likely separated into extremely small groups due to the lack of reads overlapping with them. As a result, they could be removed from the clustering step. As an effort to label the reads, the proposed algorithm considers them as clusters and puts them to the taxonomic assignment process. This means that in this case, C i K(C i ).

Step 2: taxonomic assignment

This step consists of the three following tasks:

  • Task 1 - Similarity search: All reads in cluster cores generated in step 1 are mapped against reference databases by the BLAST tool. As denoted above, \( {h}_j,j\in N \), is a list of distinct hits returned by the similarity search for a read r j . Each hit th j has a bit-score denoted by b s(t).

  • Task 2 - Labeling clusters: The labeling of each cluster C i ,1≤ik, is based on the mapping results of the reads in its core K(C i ) against reference databases, described in Algorithm 1. The idea behind the algorithm is as follows. Given a list L={h j ,1≤j≤|L|}, consisting |L| lists of hits returned by the similarity search for all reads r j K(C i ), the algorithm performs a filtering technique at two levels: read level and cluster level.

    • Read level: Two parameters min-score s min and top-percent p top are applied. The threshold min-score s min is used to discard the hits of extremely low bit-scores. Among the remaining hits of each read, the second threshold top-percent p top allows to choose the highest bit-score hits of them.

    • Cluster level: This level uses a threshold o max to reduce further unreliable hits. Let U be a set of hits, and \(U=\cup _{j=1}^{|L|} h_{j}\). We define a function \( f:U\to N \) by f(t)=the number of the occurrences of a hit t in L. By using the function, the algorithm only retains the hits which occur in at least o max percentage of the lists in L. If the value of o max leads to that all list h j L,1≤j≤|L|, are empty, it will be decreased by half once.

    Finally, the Lowest Common Ancestor (LCA) algorithm is used to find the lowest common taxon of remaining hits after the filtering. Cluster C i as well as all reads rC i will be labeled by the common taxon.

  • Task 3 - Post processing: This task is to merge clusters which have the same label into the same cluster. Some clusters may not be labeled because their reads do not match with any reference sequences or match with extremely low bit-scores. Those reads and the reads of clusters assigned at the highest level of the taxonomy tree will be considered as unassigned reads.

Databases

The protein RefSeq database (release 69, January 2, 2015), including 51,661 microbial organisms from the NCBI (National Center for Biotechnology Information), is used as a reference database. In order to validate the proposed method in the aspects of assignment for known and unknown species, different variants of the database are created corresponding to two scenarios:

  • Known species: This scenario simulates the case that reference databases contain sequences of species in queries.

  • Unknown species: In this case, sequences of query species are absent in reference databases.

Performance metrics

The proposed method is evaluated with metrics which are commonly used in literature [17, 29, 30]. They can be defined as follows. Let N be the total number of reads, and A be the number of assigned reads. Considering at taxonomic level i, let E i be the number of reads assigned to the correct taxa exactly at this level, and U i be the number of reads assigned to the correct taxa under this level. Two metrics sensitivity and precision (notated by s e n s i t i v i t y A and p r e c i s i o n A , respectively in this work) can be calculated by the following formulations (From now, when we only mention that reads are assigned at a taxonomic level, it means that the reads are assigned exactly at or under the taxonomic level).

$$sensitivity_{A}\, \text{(at level \textit{i})} = \frac{E_{i} + U_{i}}{N}, $$
$$precision_{A}\, \text{(at level \textit{i})}= \frac{E_{i} + U_{i}}{A}. $$

For example, given a read originating from Mycoplasma fermentans, when we consider at genus level, an assignment of the read as Mycolasma would increase E i , and Mycoplasma fermentans, Mycoplasma gallisepticum would increase U i . These values are computed at five taxonomic levels: species, genus, family, order, and class.

Because each of the metrics precision and sensitivity itself does not fully reflect the performance of an assignment algorithm, we use an additional metric named F-measure emphasizing comprehensively on the both metrics. It is defined as in [31].

$$F-measure_{A}=\frac{2}{\frac{1}{precision_{A}}+ \frac{1}{sensitivity_{A}}}. $$

One of the meaningful goals of metagenomic analysis is to discover the DNA sequences belonging to novel organisms whose genomes are not present in reference databases. This can be measured by calculating the total number of reads assigned to the correct taxa exactly at taxonomic levels supported by the evidence. The assignment to the correct taxa under the taxonomic levels would be counted as incorrect assignment [30]. This study applies the measurement for the database scenario of unknown species as follows.

$$sensitivity_{B} = \frac{\sum_{i \in T} E_{i}}{N}, $$
$$precision_{B} = \frac{\sum_{i \in T} E_{i}}{A}, $$

in which, T=the lowest levels of the correct taxa supported by the evidence. For example, given a read from a species not present in a reference database. Assuming that sequences from the same family with the organism are available, but no sequences from the same genus are present in the reference database, E i would be counted exactly at family level.

Results

SeMeta is compared with two well-known similarity-based algorithms on the RefSeq database: MEGAN [15] (version 5.8.6), and SOrt-ITEMS [16]. Two common parameter thresholds, namely minimum bit-score, and the top-percent, of the three algorithms are set equally of 35 and 10 %, respectively. Remaining parameters of the MEGAN and SOrt-ITEMS are set by default. The max-occur threshold o max of the proposed algorithm is set of 50 % for all tests. In order to perform the similarity search, the BLASTx tool (version 2.2.30) is downloaded from the NCBI website. The tool runs with the fast mode (parameter -task is blastx-fast), and other parameters are set to default values. Besides, the algorithms use the NCBI taxonomy versions reported in Additional file 1.

Datasets Three simulated datasets (described in Additional file 2: Table S1, S2 and S3), named d s1,d s2 and d s3, respectively, are generated using bacterial genomes from the NCBI database. These datasets are created by MetaSim tool [32] following the Illumina error profile with length of 80 bp, and 100 bp, and an error rate of 1 %. The number of genomes in the datasets are 5, 10, and 15. Dataset d s1 and d s3 consists of genomes which are described in [16, 30], respectively.

SeMeta also is used to analyze two real metagenomes. The first dataset is the Acid Mine Drainage (AMD) dataset [1] which consists of 180,713 sequences, downloaded from NCBI trace archive. The second real dataset is the sample MH0051 containing of human gut metagenomic (HGM) data [3]. It consists of 20,309,712 Illumina paired-end reads with the length of 75 bp.

Validation of SeMeta on simulated datasets

SeMeta is compared with MEGAN and SOrt-ITEMS on the dataset d s1, d s2 and d s3 for two scenarios of reference databases: known species and unknown species. For the first scenario, it can be seen from Table 1 that SeMeta returns much better results than MEGAN and SOrt-ITEMS at species level. While SOrt-ITEMS is unable to detect any organisms at this level, SeMeta achieves from 10.12 % to 29.46 % s e n s i t i v i t y A higher than those of MEGAN, and from 0.04 % to 27.54 % p r e c i s i o n A higher those of the method for the three datasets. At the higher levels from genus to class, SeMeta and MEGAN outperform SOrtITEMS in both aspects of the s e n s i t i v i t y A and the p r e c i s i o n A . Although MEGAN gets higher p r e c i s i o n A values than SeMeta in the levels for dataset d s1 and d s2, the proposed method returns better s e n s i t i v i t y A values than MEGAN for all cases.

Table 1 The performance of MEGAN, SOrt-ITEMS and SeMeta on the simulated datasets at different taxonomic levels - The scenario of known species

Figure 3 presents the F- m e a s u r e s A of the three algorithms, which reflects the overall classification quality of them in this scenario. At species level, SeMeta achieves 5.5 %, 24.77 %, 25.77 % F- m e a s u r e A higher than those of MEGAN for dataset d s1, d s2 and d s3, respectively. At the remaining levels, MEGAN gets slightly higher F- m e a s u r e s A than those of SeMeta for dataset d s1. Conversely, SeMeta returns better F- m e a s u r e s A than those of MEGAN for dataset d s2 and d s3.

Fig. 3
figure 3

The F- m e a s u r e A of MEGAN, SOrt-ITEMS, and SeMeta on simulated datasets for the scenario of known species. The left chart is for the dataset d s1, the middle chart is for dataset d s2, and the right chart is for the dataset d s3

Table 2 shows the experimental results of the three algorithms for the scenario of unknown species. Because all sequences of species in each dataset are removed from the reference database (RefSeq database), we only validate the methods at genus level to higher levels. It is interesting that SeMeta also achieves much better p r e c i s i o n A and s e n s i t i v i t y A than those of MEGAN and SOrt-ITEMS at genus level for the three datasets. SeMeta gets from 5.24 % to 46.91 % s e n s i t i v i t y A , and from 2.82 % to 47.57 % p r e c i s i o n A higher than those of the two remaining methods.

Table 2 The performance of MEGAN, SOrt-ITEMS, and SeMeta on the simulated datasets at different taxonomic levels - The scenario of unknown species

For the higher levels from family to class, it is different from the scenario of known species, SeMeta outperforms the remaining algorithms for all cases. Our method achieves higher both p r e c i s i o n A and s e n s i t i v i t y A than those of MEGAN and SOrt-ITEMS for most of the cases (7 out of 9 cases). Consequently, the F- m e a s u r e s A of our algorithm are much higher than those of the other methods for all cases in this scenario (presented in Fig. 4).

Fig. 4
figure 4

The F- m e a s u r e A of MEGAN, SOrt-ITEMS, and SeMeta on simulated dataset for the scenario of unknown species. The left chart is for the dataset d s1, the middle chart is for dataset d s2, and the right chart is for the dataset d s3

In the aspect of assigning reads to the correct taxa exactly at the lowest levels supported by the evidence (for the scenario of unknown species), SeMeta and SOrt-ITEMS get higher s e n s i t i v i t y B and p r e c i s i o n B than those of MEGAN for the three datasets (Fig. 5). In addition, while SOrt-ITEMS achieves higher results than SeMeta for dataset d s2, the proposed algorithm is better than SOrt-ITEMS for dataset d s1 and d s3.

Fig. 5
figure 5

The s e n s i t i v i t y B and p r e c i s i o n B of MEGAN, SOrt-ITEMS, and SeMeta in the case of assigning reads exactly at the lowest taxonomic levels supported by the evidence on simulated datasets

Computational costs

Considering the computational efficiency, we compute the runtime of different steps of SeMeta on dataset d s2, and compare them with those of MEGAN, and SOrt-ITEMS. This experiments is conducted on virtual machines with a hardware configuration of 4-core processor, 132 GB RAM, running at 2.4 GHz. It can be seen from the Table 3 that SeMeta spends running time approximately 5.6 times less than those of MEGAN and SOrt-ITEMS (187.67 h compared with 1052.57 h, and 1061 h, respectively). For more details, although SeMeta has to spend time to perform the clustering step while the two other methods do not, the proposed method requires much less runtime than MEGAN and SOrt-ITEMS at the similarity search and assignment steps.

Table 3 The running time of MEGAN, SOrt-ITEMS, and SeMeta on dataset d s2

In addition, the similarity search by BLAST against the reference database (RefSeq) is very time-consuming, and the majority of computational costs of the three algorithms are used for this task. For example, it costs approximately 1052 CPU hours to perform the BLAST search for all 428,674 queries of dataset d s2 on our system, and the task accounts for 99.9 % of the total running time of MEGAN on this dataset. Thus, the number of BLAST search against the reference database can help us to estimate roughly the computational costs of the algorithms.

Figure 6 presents the number of BLAST queries required by MEGAN or SOrt-ITEMS on three datasets d s1, d s2, and d s3. Since MEGAN and SOrt-ITEMS have to perform the similarity search against reference database for all reads in the datasets, the number of BLAST queries required by the two algorithms is the same (Note that, SOrt-ITEMS also performs the BLAST search at the assignment step, called reciprocal search. However, it does not search against the given reference database, and is not counted in this experiment). Due to the usage of cluster cores, SeMeta requires the number of BLAST queries approximately 4.5 times less than in average those of MEGAN or SOrt-ITEMS for the three datasets.

Fig. 6
figure 6

The number of BLAST queries of MEGAN/SOrt-ITEMS, and SeMeta for simulated datasets

Parameter evaluation

Further experiments are conducted for dataset d s2 to validate the impact of parameters on the performance of SeMeta. It can be seen from Additional file 1: Figures S1 to S6 that when parameter min-score m min , and top-percent p max are not too high (m min ≤50,p max ≤20 %), the classification quality of SeMeta is relatively stable at considered taxonomic levels. In the other hand, the various values of parameter max-occur o max do not highly affect the performance of SeMeta at class level. However, the proposed algorithm gets high s e n s i t i v i t y A and p r e c i s i o n A at species level or genus level when 40 %o max ≤60 %.

In another aspect, SeMeta achieves high s e n s i t i v i t y B and p r e c i s i o n B values when 40≤m min ≤60 in the case of assigning reads from unknown species exactly at the lowest taxonomic levels supported by the evidence (presented in Additional file 1: Figures S7 to S9). When parameter p max increases, the trend is that the s e n s i t i v i t y B and p r e c i s i o n B of SeMeta decrease. In addition, the increase of parameter o max can increase the s e n s i t i v i t y B , but decrease the p r e c i s i o n B of SeMeta.

The effect of the usage of cluster cores

In order to validate the effect of usage of cluster cores on the classification quality, we compare SeMeta with its variant in which all reads in each cluster are used for labeling the cluster, instead of using cluster cores. Additional file 1: Figure S10, S11 and S12 compare the performance of SeMeta with that of the not using core algorithm on dataset d s2. It can be seen from the figures that the usage of cluster cores does not much reduce the classification quality. At most of the considered taxonomic levels, SeMeta gets from 0.1 % to 1.8 % lower s e n s i t i v i t y A and p r e c i s i o n A than those of the variant algorithm. Besides, not using core algorithm obviously gets slightly better s e n s i t i v i t y B and p r e c i s i o n B than SeMeta in the aspect of assigning exactly at taxonomic levels. However, from the experiment, SeMeta runs approximately 5 times faster than the variant algorithm.

Results on real datasets

The AMD metagenome

By using a traditional method, a study in [1] has revealed that the AMD dataset contains five dominant species: Leptospirillum sp. Group III, Leptospirillum sp. Group II, Thermoplasmatales archaeon Gpl, Ferroplasma sp. Type II, and Ferroplasma acidarmanus. Among of them, Ferroplasma sp. Type II, and Leptospirillum sp. Group II have higher abundances than the remaining species. SeMeta is able to assign 79.03 % of the AMD sequences, and returns results (Fig. 7) supporting the previous observation. Our algorithm has detected three species of them including: Ferroplasma sp. Type II (27.75 %), Thermoplasmatales archaeon Gpl (11.75 %), and Ferroplasma acidarmanus (10.22 %). Besides, because the RefSeq database does not contain two species Leptospirillum sp. Group III and Leptospirillum sp. Group II, SeMeta has detected the existence of genus Leptospirillum and some species belonging to the taxon. They account for 40.49 % in the dataset. A small remaining percentage of the dataset belongs to other organisms with 9.78 %. Besides, the number of required BLAST queries accounts for approximately 33.46 % of the number of the AMD sequences.

Fig. 7
figure 7

Results of SeMeta on the AMD dataset

The human gut metagenome

For considering the aspect of the computational efficiency of SeMeta on a large real metagenome, this study conducts an experiment on a sample from the HGM dataset. The experiment shows that SeMeta only performs the similarity search for approximately 20 % of the total number of sequences in the dataset. The list of the most abundant taxa detected by the proposed method is presented in Additional file 2: Table S4 (considering at species level), and Additional file 2: Table S5 (considering at genus level). It can be seen that there are 6 out of the 20 detected species appearing in the list of common microbial species in human gut presented in the study [3], and 11 out of 20 detected genus are in the list. The results demonstrate that SeMeta could be a potential method to work with large metagegomes.

Discussions

It is a fact that binning algorithms get more difficult to classify reads at lower taxonomic levels. From the experimental results, the proposed method outperforms MEGAN and SOrt-ITEMS at the lowest considered levels (species level for the first scenario, and genus level for the second scenario). This is resulted from the reason that after reads are grouped into clusters during the clustering step, the filtering step by using parameter max-occur o max at cluster level helps to reduce ambiguous hits successfully, and thus many clusters are assigned correctly to low levels. The technique also performs effectively for the scenario of unknown species. In this case, since all sequences of species present in datasets are removed from reference databases, reads in the datasets are likely to be mapped against reference sequences with low bit-scores, and thus many hits are ambiguous. The filtering makes SeMeta successful in selecting reliable hits, and helps it to classify reads better than the other methods.

In the clustering step of the proposed algorithm, an expected case is that the number of clusters detected automatically is equal or higher than the number of species in datasets. When reads from the same species are separated into different clusters, they are likely to be assigned into the same taxon in the second step of the method. In the case that reads are separated into a smaller number of clusters than the expected one, some clusters which contain reads from different species may be assigned to taxa of higher taxonomic levels (e.g., genus, family, or higher levels).

The prediction of correct taxa for reads from unknown species exactly at the taxonomic levels supported by the evidence, which helps to discover novel organisms directly, is still a challenge. In this aspect, the s e n s i t i v i t y B and p r e c i s i o n B of the tested methods in the experiments are lower than 38 % for the lowest supported levels. Note that, the results corroborate with the previous experiments [16, 19] in which the number of reads assigned correctly is not high for low taxonomic levels. Thus, this could be a future research direction for our work to improve the classification quality of the proposed algorithm.

Conclusions

In this paper, we present a semi-supervised method to solve the taxonomic assignment of metagnomic reads. With the support of an unsupervised learning process and an efficient filtering technique at cluster level, the proposed algorithm is able to achieve high classification quality in different aspects. In case of classifying short reads which have sufficient mutual coverage, SeMeta outperforms the two other similarity-based methods. In addition, the usage of reads in cluster cores instead of clusters helps reducing computational costs significantly. For the demand of processing a huge amount of sequences from microbial communities, the algorithm can be used as a promising tool to analyze metagenomic sequences.

References

  1. Tyson GW, Chapman J, Hugenholtz P, Allen EE, Ram RJ, et al.Community structure and metabolism through reconstruction of microbial genomes from the environment. Nature. 2004; 428(6978):37–43.

    Article  PubMed  CAS  Google Scholar 

  2. Rusch DB, Halpern AL, Sutton G, Heidelberg KB, Williamson S, et al.The sorcerer ii global ocean sampling expedition: Northwest atlantic through eastern tropical pacific. PLoS Biol. 2007;5(3). doi:http://dx.doi.org/10.1371/journal.pbio.0050077.

  3. Qin J, Li R, Wang J. A human gut microbial gene catalogue established by metagenomic sequencing. Nature. 7285; 464:59–65.

    Article  CAS  Google Scholar 

  4. Shendure J, Ji H. Next-generation dna sequencing. Nat Biotechnol. 2008; 26(10):1135–45.

    Article  PubMed  CAS  Google Scholar 

  5. Buermans HPJ, Den Dunnen JT. Next generation sequencing technology: advances and applications. Biochimica et Biophysica Acta (BBA)-Mol Basis Dis. 2014; 1841(10):1932–41.

    Article  CAS  Google Scholar 

  6. Mande SS, Mohammed MH, Ghosh TS. Classification of metagenomic sequences: methods and challenges. Brief Bioinform. 2012; 13(6):669–81. doi:http://dx.doi.org/10.1093/bib/bbs054.

    Article  PubMed  Google Scholar 

  7. Teeling H, Glöckner FO. Current opportunities and challenges in microbial metagenome analysis - a bioinformatic perspective. Brief Bioinform. 2012; 13(6):728–42. doi:http://dx.doi.org/10.1093/bib/bbs039.

    Article  PubMed  PubMed Central  Google Scholar 

  8. Rasheed Z, Rangwala H. Tac-elm: Metagenomic taxonomic classification with extreme learning machines. In: BICoB. New Orleans, Louisiana USA: 2012. p. 92–7.

  9. Diaz NN, Krause L, Goesmann A, Niehaus K, Nattkemper TW. Tacoa: Taxonomic classification of environmental genomic fragments using a kernelized nearest neighbor approach. BMC Bioinformatics. 2009;10(1). doi:http://dx.doi.org/10.1186/1471-2105-10-56.

  10. Srinivasan SM, Guda C. Metaid: A novel method for identification and quantification of metagenomic samples. BMC Genomics. 2013;14 Suppl 8:doi:http://dx.doi.org/10.1186/1471-2164-14-S8-S4.

  11. Langenkamper D, Goesmann A, Nattkemper TW. Ake - the accelerated k-mer exploration web-tool for rapid taxonomic classification and visualization. BMC bioinformatics. 2014;15(384). doi:http://dx.doi.org/10.1186/s12859-014-0384-0.

  12. Kislyuk A, Bhatnagar S, Dushoff J, Weitz JS. Unsupervised statistical clustering of environmental shotgun sequences. BMC Bioinformatics. 2009;10.

  13. Wu YW, Ye Y. A novel abundance-based algorithm for binning metagenomic sequences using l-tuples. J Comput Biol. 2011; 18:523–34.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  14. Tanaseichuk O, Borneman J, Jiang T. A probabilistic approach to accurate abundance-based binning of metagenomic reads. Algorithm Bioinforma. 2012. 7534.

  15. Huson DH, Mitra S, Ruscheweyh HJ, Weber N, Schuster SC. Integrative analysis of environmental sequences using megan4. Genome Res. 2011; 21(9):1552–60.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  16. Haque MM, Ghosh TS, Komanduri D, Mande SS. Sort-items: Sequence orthology based approach for improved taxonomic estimation of metagenomic sequences. Bioinformatics. 2009; 14:1722–30.

    Article  CAS  Google Scholar 

  17. Gerlach W. Taxonomic classification of metagenomic shotgun sequences with carma3. Nucleic Acids Res. 2011;39(14). doi:http://dx.doi.org/10.1093/nar/gkr225.

  18. Mohammed MH, Ghosh TS, Singh NK, Mande SS. Sphinx - an algorithm for taxonomic binning of metagenomic sequences. Bioinformatics. 2011; 27(1):22–30.

    Article  PubMed  CAS  Google Scholar 

  19. Wang Y, Leung HC, Yiu SM, Chin FY. Metacluster-ta: taxonomic annotation for metagenomic databased on assembly-assisted binning. BMC Genomics. 2014;15 Suppl 1. doi:http://dx.doi.org/10.1186/1471-2164-15-S1-S12.

  20. Brady A, Salzberg SL. Phymm and phymmbl: metagenomic phylogenetic classification with interpolated markov models. Nat Methods. 2009; 6(9):673–6.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  21. Peng Y, Leung HC, Yiu SM, Chin FY. Idba-ud: a de novo assembler for single-cell and metagenomic sequencing data with highly uneven depth. Bioinformatics. 2012; 28(11):1420–28.

    Article  PubMed  CAS  Google Scholar 

  22. Wang Y, Leung HC, Yiu SM, Chin FY. Metacluster 5.0: a two-round binning approach for metagenomic data for low-abundance species in a noisy sample. Bioinformatics. 2012; 28(18):356–62.

    Article  CAS  Google Scholar 

  23. Zhu X. Semi-supervised learning literature survey. Technical Report 1530: Univ. of Wisconsin-Madison; 2006.

  24. Meng J, Wang B, Wei Y, Feng S, Balaji P. SWAP-Assembler: scalable and efficient genome assembly towards thousands of cores. BMC bioinformatics. 2014;15 Suppl 9. doi:http://dx.doi.org/10.1186/1471-2105-15-S9-S2.

  25. Le VV, Tran VL, Le TB, Tran VH. A two-phase binning algorithm using l-mer frequency on groups of non-overlapping reads. Algorithm Mol Biol. 2015;10(2). doi:http://dx.doi.org/10.1186/s13015-014-0030-4.

  26. Huson DH. Megan analysis of metagenomic data. Genome Res. 2007; 17(3):377–86.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  27. Pham DT, Dimov SS, Nguyen C. 2005. Selection of k in k-means clustering, Vol. 219.

  28. Galvin D. Two problems on independent sets in graphs. Discret Math. 2011; 311:2105–12.

    Article  Google Scholar 

  29. Ounit R, Wanamaker S, Close TJ, Lonardi S. Clark: fast and accurate classification of metagenomic and genomic sequences using discriminative k-mers. BMC Genomics. 2015;16(1). doi:http://dx.doi.org/10.1186/s12864-015-1419-2.

  30. Liu B, Gibbons T, Ghodsi M, Treangen T, Pop M. Accurate and fast estimation of taxonomic profiles from metagenomic shotgun sequences. BMC Genomics. 2011;12 Suppl 2. doi:http://dx.doi.org/10.1186/1471-2164-12-S2-S4.

  31. Olson DL, Delen D. Advanced Data Mining Techniques, 1st ed. Heidelberg: Springer-Verlag Berlin; 2008.

    Google Scholar 

  32. Richter DC, Ott F, Auch AF, Schmid R, Huson DH. Metasim - a sequencing simulator for genomics and metagenomics. PLoS ONE. 2008; 3(10). doi:http://dx.doi.org/10.1371/journal.pone.0003373.

Download references

Acknowledgements

The authors would like to thank Faculty of Computer Science and Engineering, HCMC University of Technology for providing facilities for this study. The applications presented in this paper were tested on the High Performance Computing Center (HPCC) of the faculty. This research was funded by HCMC Department of Science and Technology, under contract number 39/2015/HÐ-SKHCN.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lang Van Tran.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors’ contributions

LVV, TVL, and TVH equally contributed to the idea and equally contributed to the design of the experiments. LVV developed the application. All authors read and approved the final manuscript.

Additional files

Additional file 1

This file contains the NCBI taxonomy versions used in the experiments, the experimental results to validate the impact of parameters on the classification performance of SeMeta, and the effect of the usage of cluster cores on SeMeta. (PDF 423 kb)

Additional file 2

This file contains the details of the simulated datasets used in this study, and the experimental results of SeMeta on a sample of Human Gut Metagenome. (PDF 90 kb)

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License(http://creativecommons.org/licenses/by/4.0/), 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(http://creativecommons.org/publicdomain/zero/1.0/) 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

Le, V.V., Tran, L.V. & Tran, H.V. A novel semi-supervised algorithm for the taxonomic assignment of metagenomic reads. BMC Bioinformatics 17, 22 (2016). https://doi.org/10.1186/s12859-015-0872-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s12859-015-0872-x

Keywords