Email updates

Keep up to date with the latest news and content from BMC Bioinformatics and BioMed Central.

Open Access Highly Accessed Software

ESTclean: a cleaning tool for next-gen transcriptome shotgun sequencing

Hongseok Tae2, Dongsung Ryu1, Suhas Sureshchandra1 and Jeong-Hyeon Choi12*

Author affiliations

1 Cancer Center, Department of Biostatistics, Georgia Health Sciences University, Augusta, GA 30912, USA

2 The Center for Genomics and Bioinformatics, Indiana University, Bloomington, IN 47401, USA

For all author emails, please log on.

Citation and License

BMC Bioinformatics 2012, 13:247  doi:10.1186/1471-2105-13-247


The electronic version of this article is the complete one and can be found online at: http://www.biomedcentral.com/1471-2105/13/247


Received:9 July 2012
Accepted:22 September 2012
Published:26 September 2012

© 2012 Tae et al.; licensee BioMed Central Ltd.

This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Abstract

Background

With the advent of next-generation sequencing (NGS) technologies, full cDNA shotgun sequencing has become a major approach in the study of transcriptomes, and several different protocols in 454 sequencing have been invented. As each protocol uses its own short DNA tags or adapters attached to the ends of cDNA fragments for labeling or sequencing, different contaminants may lead to mis-assembly and inaccurate sequence products.

Results

We have designed and implemented a new program for raw sequence cleaning in a graphical user interface and a batch script. The cleaning process consists of several modules including barcode trimming, sequencing adapter trimming, amplification primer trimming, poly-A tail trimming, vector screening and low quality region trimming. These modules can be combined based on various sequencing applications.

Conclusions

ESTclean is a software package not only for cleaning cDNA sequences, but also for helping to develop sequencing protocols by providing summary tables and figures for sequencing quality control in a graphical user interface. It outperforms in cleaning read sequences from complicated sequencing protocols which use barcodes and multiple amplification primers.

Background

Full cDNA shotgun sequencing is a major approach to finding whole transcriptomes and measuring gene expression. With the advent of next-generation sequencing (NGS) technologies [1] such as 454 (Roche) and Solexa (Illumina), NGS sequencing has become popular in the study of transcriptomes especially in non-model organisms because of its cost efficiency compared to Sanger. In addition, several protocols have been invented to apply NGS technologies and each protocol uses its own short DNA tags or adapters attached to the ends of DNA fragments for labeling or sequencing. Since NGS technologies eliminate bacterial cloning, library preparation is fast and cheap without vector contamination. However, a simple protocol for 454 transcriptome sequencing can make artifact sequences, e.g., concatenated amplification primers. This problem can be overcome by using several amplification steps each of which uses different primers [2].

In transcriptome sequencing projects, the quality of initial data greatly affects downstream analyses and removing contamination has become one of the most important steps. To remove contamination, several software tools are available, including VecScreen [3], Lucy [4], Cross_match [5], SeqClean [6], Figaro [7], and SeqTrim [8]. Although these programs have been used in many sequencing projects, most of them are not appropriate to detect the diverse contamination produced by several NGS-based protocols, especially those using two or more PCR amplification primers. None of them support new sequencing features such as barcodes or MIDs (Multiplex Identifiers), which are used to pool different samples. Many biologists also have difficulty using the programs due to complicated parameters, environment-specific operations and command line execution.

In this paper, we present a new program named ESTclean to clean raw sequences with seven modules that perform end sequence trimming, barcode trimming, sequencing adapter trimming, amplification primer trimming, poly-A tail trimming, vector screening and low quality region trimming. These modules can be combined based on various sequencing applications, e.g., parallel tagged sequencing [9]. ESTclean provides a GUI with a user-friendly environment to manage sequencing protocols and analysis pipelines. It also produces various summary tables and figures to aid quality control by showing trimming statistics for each module; identifying problematic reads with primer concatenation, wrongly oriented primers, and no barcodes; and assessing sequencing biases.

Implementation

The most common sources of contamination in NGS-based ESTs are barcodes, sequencing adapters, and amplification primers. Barcodes or MIDs (Multiplex IDentifiers) are short DNA tags attached to the 5’ ends of reads in order to distinguish pooled samples. Sequencing adapters are attached to both ends of DNA fragments for cloning and sequencing. Although the 454 data processing software is supposed to trim sequencing adapters, 3’ sequencing adapters often remain depending on the software version and fragment size. Amplification primers are attached to both ends of cDNAs to prepare cDNA libraries before fragmentation. These primers are often concatenated to each other in badly designed sequencing protocols.

A semi-global algorithm is implemented to search barcodes from the 5’ end of a read sequence. If the number of mismatches and indels between a barcode and a read exceeds allowable errors, then the read is discarded. Otherwise the barcode is trimmed and used to separate reads by sample. ESTclean uses BLAST [10] to search sequencing adapters and amplification primers against reads. Since BLAST cannot align the ends of reads with sequencing errors, we extend the alignment using the banded Needleman-Wunsch algorithm [11] and allow a small number of unaligned bases at the ends. Primers and adapters can match to the middle or ends of a read. Therefore we need a different criterion for such cases. If primers and adapters match to the middle of a read, then they should match near perfectly. In this case, we use a minimum alignment length and percent identity. However, if they match to the ends of a read, they can match partially. In such cases we use three parameters: the minimum percent identity of an alignment and the minimum numbers of unaligned bases in the primer and read (Figure 1).

thumbnailFigure 1. Amplification primer trimming. When a primer matches partially to the end of a read, ESTclean checks the minimum percent identity and length of the match and the minimum number of unaligned bases in the primer (a) and read (b).

Poly-A, consisting of multiple adenosines, is a stretch of a eukaryotic messenger RNA (mRNA) and is important for translation and stability of the mRNA. The sequence of cDNAs contain poly-A tail or poly-T head sequences because cDNA sequencing uses reverse transcription polymerase chain reaction (RT-PCR) with amplification primers that have poly-As to make cDNA libraries. However, because amplification primers do not contain an entire poly-A tail, we need to trim As and Ts before 3’ and after 5’ amplification primers respectively. The starting site of poly-As should be a certain number of bases from the end (Figure 2). We search for A and T in the 3’ and 5’ ends respectively and expand them toward the middle of a sequence as long as the fraction of As or Ts is greater than a cutoff. If those regions are greater than or equal to the minimum length of poly-As, then they are trimmed out.

thumbnailFigure 2. Poly A tail trimming. A poly A tail is recognized by the length (Lp) of the tail, the ratio of the number (NA) of As to Lp, and the length (Le) of the 3’ end.

Although NGS-based cDNA sequencing does not use vectors for amplification, ESTclean has a module to screen known vectors using VecScreen [3]. ESTclean also has a module to modify SFF files to set a clean region for each read if users have SFF tools. Discarded read sequences from any steps can be collected and saved as a FASTA file and analyzed using BLAST with a user-provided sequence database.

The main executable scripts of this package have been developed in PERL and the user-friendly GUI has been developed in JAVA (Additional files 1, 2, 3). As shown in Figure 3, the GUI enables users to set sequencing protocols, input their own sequences to be trimmed, set parameters for each module, and choose modules to run. To set a sequencing protocol, users input the sequences of amplification primers, sequencing adapters and barcodes. Sequencing protocols can be imported and exported in the FASTA format. When the cleaning procedure starts, the program puts the selected modules into a task queue and validates the parameters. The left panel of the interface displays the running status. After cleaning, ESTclean provides several charts and tables for summary (Figure 4), which are very important for quality control. The tables and charts can be stored into a project file for future use. User-defined parameters are stored in a template and can be used in future projects.

Additional file 1. Program.

Format: ZIP Size: 34KB Download fileOpen Data

Additional file 2. Manual.

Format: XLSX Size: 51KB Download fileOpen Data

Additional file 3. Sample data.

Format: ZIP Size: 2.3MB Download fileOpen Data

thumbnailFigure 3. ESTclean screenshot. The left panel displays the steps and progress in a cleaning process. On the right panel, the options tab is used for specifying a sequence and quality score files, an output directory, and parameters for all cleaning modules. The statistics tab shows various statistics of cleaning for quality control. The bottom panel displays messages and errors during cleaning processes.

thumbnailFigure 4. Summary tables and figures. For validation of final products, several charts and tables are provided in order to display statistical information of trimming results. A: The numbers of reads and bases, and minimum and maximum read lengths for each cleaning step. B: The distribution of read lengths for each cleaning step. C: The distribution of quality scores for each cleaning step. D: The percentage of top 30 k-mers in cleaned sequences. E: The histogram of primer matches. F: The number of good and bad reads in terms of primer combinations. G: The number of primers identified at each base position. H: The histogram of lengths of trimmed poly A tails and T heads.

One of the unique features of ESTclean is to show what kind of sequencing errors are present in sequencing data. Error-free reads can have PCR amplification primers forward matched in the 5’ end and/or reversely matched in the 3’ end. However, as shown in Figure 5, erroneous reads have reverse and forward matched primers in the 5’ and 3’ ends respectively (RF); forward and reverse matches of the same primer (fr); forward match in the 5’ end but with unaligned bases before it (SF); reverse match in the 3’ end but with unaligned bases after it (RE); multiple forward matches (NF); and multiple reverse matches (NR).

thumbnailFigure 5. Erroneous read types.RF: reverse and forward matched primers in the 5’ and 3’ ends respectively; fr: forward and reverse matches of the same primer; SF: forward match in the 5’ end but with unaligned bases before it; RE: reverse match in the 3’ end but with unaligned bases after it; NF: multiple forward matches; NR: multiple reverse matches.

Results and discussion

To demonstrate the performance of ESTclean, we used a real 454 sequencing run for Drosophila melanogaster and compared to SeqClean [6]. SeqClean is a tool that performs automated trimming and validation of ESTs or other DNA sequences by screening various contaminants, low quality and low complexity sequences. It utilizes BLAST [10] to remove any sequence highly similar to a given list of vectors, adapters, primers or linker sequences that are located within 30% of total EST from the 3’ or 5’ end of the sequences. The raw sequence reads were cleaned using SeqClean with input.fna -c 10 -l 30 -v barcode_adapter_primer -o output.seqclean and using ESTclean in GUI with the default parameters and non-stringent amplification primer and poly-A search (BLAST version 2.2.20). We used GMAP (version 2011-11-14) [12] with -D dmelchrs -d dmelchrs -f psl input.fna output.psl to map reads cleaned by ESTclean and SeqClean, respectively, to the D. melanogaster genome (FlyBase Release 5.13). Since a cleaned read is defined as an interval, let a cleaned read by ESTclean and SeqClean be E = st and S = vw, respectively. We discarded reads mapped to multiple locations in the genome. Let the alignment positions in the genome for a cleaned read by ESTclean be A(E) = stand A(S) = vw. We then identified the best position between both alignments in 5’ and 3’ ends respectively, i.e., A(B) = min(sv),max(tw)]. If a cleaned read is not fully aligned to the genome, then the read is under-trimmed. Otherwise, it is over-trimmed if its alignment position is not the best one, e.g., s ≠ min(sv) for E (Figure 6).

thumbnailFigure 6. Evaluation method. Mapping results, A(E) and A(S), by GMAP for reads, E and S, cleaned by SeqClean and ESTclean respectively are evaluated to decide whether the reads are over- or under-trimmed. At the 5’ end, while SeqClean performs correct trimming, the read from ESTclean is under-trimmed as its 5’ end is not aligned to the genome. At the 3’ end, ESTclean over-trims while SeqClean under-trims because the latter has unaligned bases and the trimmed region of the former is real (aligned).

Of 1,453,938 reads, SeqClean and ESTclean left over 1,449,125 and 1,436,295 reads respectively after cleaning. Out of these, 242,683 and 1,436,295 reads were cleaned by at least 1bp. Surprisingly, SeqClean cannot trim a barcode sequence in the 5’ end although this sequencing protocol has a barcode, meaning that sequence reads with no barcode are artifacts. Therefore, we decided to use 1,450,096 reads that were barcode trimmed by ESTclean (Figure 7). SeqClean trimmed 245,421 reads while ESTclean trimmed 479,304 reads. Of 1,445,116 and 1,436,295 reads left over by the programs, GMAP mapped 1,404,089 and 1,402,864 reads to the reference genome. ESTclean had more uniquely mapped reads while SeqClean had more multiply mapped reads. Of 1,281,880 reads that were mapped uniquely and commonly by both programs, 1,274,874 reads which overlap more than 40bp in the genome were evaluated (Figure 7).

thumbnailFigure 7. Experiment workflow. Since SeqClean cannot trim a barcode, barcode-trimmed reads by ESTclean were used as input data. The cleaned reads by SeqClean and ESTclean were mapped to the reference genome using GMAP. We filtered out multiply mapped reads and non-overlapping reads by at least 40bp in the genome. Finally 1,290,547 reads were used for evaluation.

SeqClean and ESTclean over-trimmed 25,347 and 127,895 reads respectively while they under-trimmed 486,981 and 346,901 reads (Table 1). It is interesting that ESTclean outperformed SeqClean in terms of under-trimming, while SeqClean outperformed ESTclean in terms of over-trimming. Out of the under-trimmed reads, 338,264 and 181,588 were not trimmed at all. Figure 8 shows histograms of the lengths over- and under-trimmed by SeqClean and ESTclean in the 5’ and 3’ ends. The cumulative difference between ESTclean and SeqClean for given trimmed lengths shows the tendency of both programs. It is interesting that SeqClean did not trim many reads about 11 bp in the 3’ end, which results from the sequencing adapter.

Table 1. Evaluation result

thumbnailFigure 8. Histogram of over- and under-trimmed lengths in the 5’ (left) and 3’ (right) ends. The positive and negative X axes represent over- and under-trimming respectively. The dotted red line represents the cumulative difference in the number of over- and under-trimmed reads between ESTclean and SeqClean.

However, over-trimming may be correct trimming without knowing reference sequences. What would happen if the bases next to a sequence read in a genomic location would be the same as the first bases of sequencing adapters, amplification primers, or poly A tails? For example, if a sequence read ACGTcaat comes from ACGTCGGA of a genome and the lower bases in the sequence read is a amplification primer, the caat should be cleaned by ESTclean. However GMAP can align the raw read until base c and perfect cleaning of caat is evaluated as over-trimming by 1 bp. We expanded this observation for all of over-trimmed reads but not trimmed due to low quality scores. Additional file 4 shows the over-trimmed subsequences by ESTclean in the 5’ and 3’ ends. Most of those sequences are part of sequencing adapters and amplification primers, especially poly A tails. To confirm this, we extracted trimmed subsequences of length 6 bases including an over-trimmed region and investigated these 6-mers. Indeed, almost all are part of sequencing adapters and poly A tails: 18,759 (100%) and 68,999 (92%) of reads over-trimmed in the 5’ and 3’ ends, respectively (Additional file 5).

Additional file 4. Over-trimmed subsequences by ESTclean in the 5’ and 3’ end.

Format: PDF Size: 647KB Download file

This file can be viewed with: Adobe Acrobat ReaderOpen Data

Additional file 5. Distribution of 6-mers in over-trimmed sequences.

Format: ZIP Size: 2.2MB Download fileOpen Data

Conclusions

Since incomplete cleaning of EST sequences leads to incorrect downstream analyses such as mis-assembly and inaccurate biological interpretation. It has become one of the important tasks in transcriptome sequencing. ESTclean has been developed to remove the different kinds of contaminants from raw sequences. It not only provides trimming and screening modules, but also useful and user-friendly features including project management and quality control of sequencing protocols and raw sequences. It can also generate a script to execute trimming modules in command line environment in order to support automated pipeline of sequence assembly processes. We compared the performance of ESTclean with SeqClean for a real sequencing run for Drosophila melanogaster. ESTclean outperformed SeqClean in terms of the numbers of under-trimmed reads and bases. Although ESTclean has more over-trimmed reads in this experiment, it resulted from correct trimming without knowing reference sequences.

Availability and requirements

Project Name: ESTclean

Project home page:http://sourceforge.net/projects/estclean/ webcite

Operating system(s): Platform independent

Programming language: Perl (v5.0 or later), Java (v1.5.0 or later)

Other requirements: BLAST (v2.2.9 or later) (ftp://ftp.ncbi.nlm.nih.gov/blast/executables/LATEST webcite)

License: GNU GPL

Any restrictions to use by non-academic users: license needed

Competing interests

The authors declare that they have no competing interests.

Authors’ contributions

JHC conceived the software function and architecture. JHC and HT implemented Perl and Java codes respectively. DR conducted the experiment to compare ESTclean to SeqClean using a 454 sequencing run for Drosophila melanogaster. SS tested the software with the real datasets and pointed out bugs and improvements. All authors have contributed to, read, and approved the final manuscript.

Acknowledgements

We would like to give special thanks to H. Tang, J. K. Colbourne, J. Carter, Z. Lai, K. Mockaitis, and Z. Smith at the Center for Genomics and Bioinformatics, Indiana University for valuable comments. This work was supported in part by the National Institutes of Health [CA134304] and the National Research Foundation of Korea Grant funded by the Korean Government [NRF-2009-352-D00275].

References

  1. Schuster SC: Next-generation sequencing transforms today’s biology.

    Nat Meth 2008, 5:16-18. Publisher Full Text OpenURL

  2. Meyer E, Aglyamova G, Wang S, Buchanan-Carter J, Abrego D, Colbourne J, Willis B, Matz M: Sequencing and de novo analysis of a coral larval transcriptome using 454 GSFlx.

    BMC Genomics 2009, 10:219. PubMed Abstract | BioMed Central Full Text | PubMed Central Full Text OpenURL

  3. VecScreen http://www.ncbi.nlm.nih.gov/VecScreen/VecScreen.html webcite

  4. Chou HH, Holmes MH: DNA sequence quality trimming and vector removal.

    Bioinformatics 2001, 17(12):1093-1104. PubMed Abstract | Publisher Full Text OpenURL

  5. Cross_match http://www.phrap.org/phredphrapconsed.html webcite

  6. SeqClean https://sourceforge.net/projects/seqclean/ webcite

  7. White JR, Roberts M, Yorke JA, Pop M: Figaro: a novel statistical method for vector sequence removal.

    Bioinformatics 2008, 24(4):462-467. PubMed Abstract | Publisher Full Text | PubMed Central Full Text OpenURL

  8. Falgueras J, Lara A, Fernandez-Pozo N, Canton F, Perez-Trabado G, Claros MG: SeqTrim: a high-throughput pipeline for pre-processing any type of sequence read.

    BMC Bioinformatics 2010, 11:38.

    http://www.biomedcentral.com/1471-2105/11/38 webcite

    PubMed Abstract | BioMed Central Full Text | PubMed Central Full Text OpenURL

  9. Parallel Tagged Sequencing https://bioinf.eva.mpg.de/pts/ webcite

  10. Altschul S, Gish W, Miller W, Myers E, Lipman D: Basic local alignment search tool.

    J Mol Biol 1990, 215:403-410. PubMed Abstract OpenURL

  11. Needleman SB, Wunsch CD: A general method applicable to the search for similarities in the amino-acid sequence of two proteins.

    J Mol Biol 1970, 48:443-453. PubMed Abstract | Publisher Full Text OpenURL

  12. Wu TD, Watanabe CK: GMAP: a genomic mapping and alignment program for mRNA and EST sequences.

    Bioinformatics 2005, 21(9):1859-1875. PubMed Abstract | Publisher Full Text OpenURL