- Open Access
NeatFreq: reference-free data reduction and coverage normalization for De Novosequence assembly
BMC Bioinformatics volume 15, Article number: 357 (2014)
Deep shotgun sequencing on next generation sequencing (NGS) platforms has contributed significant amounts of data to enrich our understanding of genomes, transcriptomes, amplified single-cell genomes, and metagenomes. However, deep coverage variations in short-read data sets and high sequencing error rates of modern sequencers present new computational challenges in data interpretation, including mapping and de novo assembly. New lab techniques such as multiple displacement amplification (MDA) of single cells and sequence independent single primer amplification (SISPA) allow for sequencing of organisms that cannot be cultured, but generate highly variable coverage due to amplification biases.
Here we introduce NeatFreq, a software tool that reduces a data set to more uniform coverage by clustering and selecting from reads binned by their median kmer frequency (RMKF) and uniqueness. Previous algorithms normalize read coverage based on RMKF, but do not include methods for the preferred selection of (1) extremely low coverage regions produced by extremely variable sequencing of random-primed products and (2) 2-sided paired-end sequences. The algorithm increases the incorporation of the most unique, lowest coverage, segments of a genome using an error-corrected data set. NeatFreq was applied to bacterial, viral plaque, and single-cell sequencing data. The algorithm showed an increase in the rate at which the most unique reads in a genome were included in the assembled consensus while also reducing the count of duplicative and erroneous contigs (strings of high confidence overlaps) in the deliverable consensus. The results obtained from conventional Overlap-Layout-Consensus (OLC) were compared to simulated multi-de Bruijn graph assembly alternatives trained for variable coverage input using sequence before and after normalization of coverage. Coverage reduction was shown to increase processing speed and reduce memory requirements when using conventional bacterial assembly algorithms.
The normalization of deep coverage spikes, which would otherwise inhibit consensus resolution, enables High Throughput Sequencing (HTS) assembly projects to consistently run to completion with existing assembly software. The NeatFreq software package is free, open source and available at https://github.com/bioh4x/NeatFreq.
The multiple displacement amplification (MDA) reaction allows for single cell sequencing and genome assembly of organisms that cannot be cultured . MDA is also frequently used to amplify DNA from low biomass environmental samples for use in metagenomic sequencing although amplification bias alters the ratio with which individual species are represented . During shotgun sequencing, genomic libraries are randomly sampled from a population of molecules; this sampling is biased due to sample content and preparation. Such selection bias is even more prominent when MDA is used to amplify DNA from a single cell -. The amplified DNA has extreme coverage variability and may represent from only a small portion of the genome span up to the complete recovery of the genome . Sequence independent single primer amplification (SISPA) allows for sequencing of organisms that cannot be cultured, including single cell bacterial genomes ,, viral genomes -, and metagenomes -. Selection bias within SISPA-prepared sequences also results in extreme coverage variability. The biases in sequence coverage from both approaches lead to an increased probability that rarely occurring sequences will be removed when reads are selected randomly for the purpose of coverage reduction. Similar outcomes can also occur due to experimental and sequencing biases, particularly when coverage greatly exceeds what is optimal for assembly. Existing simulated multi-de Bruijn graph assemblers use iterative assembly at multiple kmer sizes to provide a consensus within variable coverage regions. These tools are affected by the quality and level of coverage variability in the data set and often reduce fragmentation while increasing the quantity of erroneous or duplicative contigs that may obscure sequence representing true overlaps.
The quality of de novo genome assemblies is limited by the quality and quantity of the input sequences. Without an available reference sequence, the consensus generated by de novo assembly can be validated only in the presence of deep and high quality overlaps. Large quantities of sequence data result in greater coverage and more contiguous regions of high confidence overlaps; however, when input sequences contain an extremely high level of redundancy, it may necessitate greater computing resources (e.g., memory, CPU, and disk storage) that are not readily available to many users.
Reducing extremely variable base coverage of reads allows them to be used more efficiently by standard bacterial genome assembly algorithms. The previously published algorithm, diginorm, used RMKF values to predict each read's coverage, accepting reads until they approach a user-determined cutoff . Additional studies have explored the use of bin separation in coverage-reduced data sets to facilitate memory-restricted assembly of deeply sequenced metagenomic datasets . For implementation of coverage normalization within extremely variable data sets, additional functionality is required to randomize reads targeted for selection, maximize the retention of two-sided mate pairs and give preference to the most unique sequences.
Below, we present a novel algorithm, NeatFreq, for reducing large sequence data sets to uniform coverage, leading to consistently high quality representations of true target sequence using a traditional OLC assembler. The algorithm increases the selection of true, low frequency sequences from a read set which has had maximal false low frequency mers (sequencing errors) removed. For the purpose of this study, kmer normalization is used to separate these false low frequency mers by identifying the prevalence of similar, high abundance mers in the data set . During this process, high frequency coverage peaks are reduced to produce a data set primed for traditional bacterial genome assembly techniques. Reads are binned by a chosen level of retention before selection, after which a user may opt for either random selection or targeted recruitment of the most unique sequences with or without preferential selection of two-sided mate pairs within the set. The pipeline enables the selection of the best available high confidence (quality) consensus sequences from assemblies generated by several OLC single- and simulated multi-kmer de Bruijn graph assemblers while substantially reducing the requirement for high-end computer resources.
Sequences from the following strains were used in the analysis performed by the pipeline. The format and the type of the sequences were A) Viral samples: 2009 H1N1 Influenza virus single plaque [ftp://ftp.jcvi.org/pub/data/neatfreq_data/HMPVFLU/] and Bacteriophage F_HA0480/Pa1651 [Genbank:SRR407427]- SISPA-optimized titanium 454 fragments, derived from a single plaque ; B) Single Cell Amplification of Multiple Bacterial Cells: Escherichia coli str. K-12 substr. MG1655 and Staphylococcus aureus subsp. Aureus USA300 FPR3757 (reads available at http://bix.ucsd.edu/singlecell/) for which both sequence datasets were obtained by MDA of DNA from single cells that were selectively sequenced from 10 isolates, as chosen by highest exon content. These sequences are therefore expected to be of more normal coverage and greater sequence quality than a true single cell sample ,; C) HMPMDA0100 - Illumina paired-end sequences from a true single cell MDA sample [ftp://ftp.jcvi.org/pub/data/neatfreq_data/HMPMDA0100/]. All samples except HMPMDA0100 have available reference genomes.
A pipeline for the configurable auto-curation of all sequence preprocessing stages used in this study is distributed with the open source software package. The recommended pre-processing pipeline includes the third party software cutadapt , DUST , QUAKE , the bio-playground package , sffinfo , cd-hit-est , CLC NGS Cell , and ALLPATHS-LG . The Celera gatekeeper program  was used for mate-sensitive conversion between file formats with a minimum acceptable sequence length of 40 bp. Tools from the MIRA package were used for fastq file manipulation . Kmer counting was conducted by the program Tallymer from the GenomeTools package .
The effect of each preprocessing step on input sequences was captured for all sequencing platform file formats and library types with the assembly quality assessed by rapid assembly using CLC Assembly Cell ver 3.5.5 . The performance of the following assemblers was compared using all reads, pre-processed reads, and multiple levels of coverage reduction: Velvet-SC ver 0.7.62 , IDBA-UD ver 1.1.0 , and SPAdes ver 2.3 ,. All assemblies were run using sequences converted to either fasta or fastq format. Velvet-SC was run at multiple kmer sizes (k = 25, 35, 45, 55). All other assemblers were used with default settings. Expected coverage values of input sequences required by Velvet-SC were calculated by counting pre-processed query bases aligned to contigs obtained by preliminary CLC assembly using a 40% length and 90% identity cutoff.
Preparing input files
Read selection using this algorithm requires that input data be cleaned of the most identifiable sequencing errors possible, particularly when using the targeted selection method. Additional screening and removal of contaminants, particularly from samples obtained from human hosts, may be mandated by ethical or funding restrictions. A suggested pipeline, including a preliminary contaminant check, error correction/kmer normalization, exact de-duplication, low complexity/tandem repeat masking, quality trimming, final contaminant check and adapter contaminant removal is described in Additional file 1: Figure S1). Details regarding pre-processing methods used for this study are available in Additional file 2: Supplemental Methods). All datasets in this experiment used 19-mers for RMKF evaluation.
Reference-free coverage normalization pipeline
The coverage normalization pipeline described here is supplied for standalone use, employing user input kmer frequencies, or as part of a pipeline containing methods for the formatting of all reads and de novo calculation of their kmer frequencies. The novel coverage reduction algorithm calculates RMKF values using reports from GenomeTools' Tallymer  and compares them to a RMKF cutoff value provided by the user. Reads with a RMKF = 0, and those with less than K (default = 19) non-ambiguous BPs, are removed from the dataset. RMKF values are calculated for each sequence and compared to a cutoff provided by the user. Each read is placed into one of a count, Z, of retention bins (default 100) denoting the percentage of reads to be retained, as follows: 1) All reads with RMKF less than or equal to the cutoff are placed in the 100% retention bin; 2) Reads with RMKF greater than the cutoff are evaluated by the expression, Retention Bin Selection Value = (RMKF cutoff /RMKF read )*Z, rounded up to the nearest integer, and placed in retention bins (1% through 100%) from which the denoted percentage of reads are extracted to satisfy the user-specified coverage cutoff (see the `NeatFreq Pipeline Pseudocode' subsection). Reads with a retention value of less than 1 are rounded up and placed in the 1% retention bin. Reads from the 100% retention bin (least abundant in the original pool) are picked first, followed by progressive selection of reads from the 1% (high abundance) through the 99% (low abundance) bins, utilizing either random or targeted selection of unique sequence.
NeatFreq Pipeline Pseudocode
FOR EACH input sequence
○ IF read length, not including ambiguous "N" bps, is greater than kmer size (default K=19)
▪ Update to unique read IDs, Concatenate
▪ Calculate kmer Frequencies
▪ Delete read
▪ Format broken pairs dataset as fragments
FOR EACH concatenated input sequence
○ (Optional) Build list of mate pair relationships using unique IDs
○ Calculate median kmer frequency
○ Add sequence ID to appropriate "retention bin" by comparing ideal coverage to RMKF
END FOR EACH
IF bin selection = random
○ Select all reads from the 100% retention bin
○ FOR each bin (1-99% retention)…
Randomize IDs in bin
Record IDs up to ideal retention count from bin
ELSIF bin selection = targeted
○ Highlight 2-sided mates within bin 1 as high priority
○ Divide all reads by similarity using cd-hit-est
○ Select all reads from the 100% retention bin
○ (Optional) If a mated read is selected, toggle the status of its partner
○ FOREACH retention bin (most selective to least selective)
▪ FOREACH sub-bin cluster (smallest to largest in population)
Calculate ideal count of sequences to extract from sub-bin cluster based on count already selected from retention bin
IF tracking mates = yes
Randomize the sub-bin cluster ID list select from each until the ideal count is reached.
ELSIF tracking mates = no
Select maximal sets of 2-sided mate pair relationships within sub-bin cluster
Select maximal 1-sided mates whose partner has already been selected
Select maximal 1-sided mates whose partner has not yet been evaluated
Select fragments and 1-sided mates whose partner has been removed
Toggle status of all of selected mates
Extract selected IDs from relevant input libraries to maintain fragment and mate pair relationships
(Optional) Parse 2-sided mates from fragment-only runs using read IDs
The number of reads selected from each bin is determined by the expression: Ideal read count from bin = (Number Of Reads In Bin)*(RetentionBin / Total Number of Retention Bins) (Figure 1A). Sequence IDs are randomized within all bins prior to selection. A random selection of reads from all bins, in inverse proportion to their original abundance, ensures a normalized and uniform selection from all regions of the sequenced genome. If the input sequences contain paired-ends, selected reads can be separated into valid pairs and single-end fragments in the available pipeline, though any two-sided mate retention is purely random and depends on the level of reduction requested.
Emphasis is placed on extracting unique sequences from each retention bin to increase the chance of recruiting true low abundant reads which remain after pre-processing. After all sequences from the 100% retention bin are selected, targeted selection begins by clustering reads within each of the remaining bins using the cd-hit-est algorithm (alignment parameters set to 90% identity over 40% sequence length) . Bins are approached one-by-one as in the random bin method and selection from within each bin proceeds iteratively from the most unique sub-bin clusters (smallest population) to the least unique (largest population), as determined by the size of homologous clusters created within each retention bin. Selection from homologous intra-bin clusters occurs by: 1) calculation of ideal read counts for intra-bin clusters with the expression: (Ideal Read Count per Intra-Bin Cluster) = (Ideal Read Count per Bin, S)/(Remaining Clusters in Bin); 2) sorting of intra-bin clusters by size, from most unique to least; 3) randomization of reads within each intra-bin cluster and maximal extraction from each bin up to S, and; 4) update of ideal bin and intra-bin cluster extraction counts based on the selected read counts prior to the iterative processing of the subsequent bins (Figure 1B). If the selection was performed without tracking mates for paired-end sequences (i.e. treated as fragments), the mates for the selected reads can be parsed after reduction as described for the random method above.
When input includes paired-end reads and the targeted bin selection method is chosen, reads representing one side of a mate pair relationships are tracked by their selection status and the status of their mate. Two-sided mate pair relationships found within a single bin or intra-bin cluster are given the highest priority during selection, followed by mated reads with unresolved one-sided relationships. During the initial recruitment of all reads in the 100% retention bin, one-sided mates are toggled to indicate the possible recruitment of both pairs in the two-sided mate relationship. Subsequently, as selection within the 1% (to 99%) bin proceeds, new one-sided mates are evaluated by their corresponding mate status and are preferred for selection if their mate has previously been selected (Figure 1C). One-sided mates whose pair has already been discarded are reduced to the priority of fragments.
All assembly statistics evaluate contigs greater than 500 bp only to comply with NCBI assembly submission requirements. Assembly coverage statistics were calculated. The successful retention of low coverage sequence in following dataset reduction is evaluated using the change in represented reference bases when aligned to the shredded consensus sequence (Columns ƍ, §, ¥: Additional file 3: Tables S1, S2). Average contig coverage was calculated as a weighted mean of means across all contigs based on contig length. Changes in the sequencing span (reference bp in sequences) and assembly span (reference bp in contigs) at each pre-processing stage were calculated by aligning either query sequences or the assembled output from each stage of pre-processing to the available reference. Contig and sequence alignments were evaluated by aligning to the reference at 40% length and 90% identity cutoffs with contigs shredded to 7999 bp with 49 bp overlaps. Compute time was captured using system time on a single host machine with 4 CPU and 256 GB RAM. Memory usage was monitored by `ps' with runs executed in isolation on a single host.
Short-read assembly requires deep coverage to in order to sufficiently sample the source genome since shotgun sequencing is subject to random sampling variation, amplification and systematic sequencing biases. Some of the recently developed random-primed laboratory techniques like MDA and SISPA enable whole genome sequencing of organisms that cannot be cultured, but have the caveat of highly variable sequence coverage due to amplification biases ,. As described by Brown et al. , the relationship between the RMKF of each read and its true coverage can be estimated with a 1% error rate on simulated sequences. Production of the longest valid consensus span requires sufficient coverage across the entire genome; however, due to selection, amplification and sequencing biases, it is likely that certain regions yield far more coverage than others, especially with extremely deep sequencing coverage (e.g., above 400-fold).
Prioritized selection of true low coverage sequences
The most common reasons to normalize read coverage are to: eliminate duplicate reads, minimize sequence errors, recruit more reads within low coverage regions and minimize computational and memory resources required for assembly. Traditional OLC bacterial assemblers like Newbler and Celera WGS prefer 40-80-fold of uniform coverage across a single genome. Both algorithms often fail during consensus resolution of genomic regions with particularly high coverage peaks, as shown by the failed experimental single cell sample assemblies missing in Additional file 3: Table S2. The reduction to normalized sequence coverage was shown to promote completed assembly of the experimental HMPMDA0100 sample in contrast to the failed assembly when more sequence data was used (failed cases not shown in table). The degree to which reads from each of the retention bins are represented in the final pool varies with the coverage complexity of the dataset and the RMKFcutoff value supplied by the user. Kmer frequencies are not merged for forward and reverse compliments, so RMKFcutoff correlates empirically to approximately half of the expected output sequence coverage when using the random bin. As each retention bin can contain reads with varied abundance, the likelihood that less abundant sequences are not selected is high when using the random bin selection method, particularly with extremely variable coverage input sequences. Both random and targeted bin selection methods discriminate against the selection of repetitive sequence because their representative kmers are overabundant in the overall data set and recruited at a lower priority. As illustrated in Figure 2A, reads were found to be recruited at less than normal coverage within regions of the reference identified as repeats using RepeatFinder .
Changes in assembly and sequencing spans showed that the pre-processing steps caused the loss of some reference bases, particularly when aggressively removing erroneous reads by read correction (Columns §, ¥: Additional file 3: Tables S1, S2). Despite lost reference bases in reads, preliminary read processing to remove false low frequency mers was shown to improve the inclusion of low coverage regions in the final assembly, particularly when handling datasets with many low coverage regions or with a wide range of coverage across the genome span. Using all pre-processed sequences as input, reduction to assembly-ready coverage removed as much as 90% of the reads for samples found to have excessive coverage (Additional file 1: Figure S2A), while minimally removing true reference bases within low coverage regions (Columns §, ¥: Additional file 3: Tables S1, S2).
Improved selection for low coverage MDA sequence or scaffolding
Random bin selection used less memory and was significantly faster than the targeted alternative, making it an ideal option for large prokaryotic genome assemblies with only moderate coverage variability. For larger datasets, Newbler assemblies used less system time and RAM for all assembly and processing after data reduction was performed by the recommended preprocessing pipeline or following coverage normalization (Additional file 1: Figure S3). The effects of random and targeted bin selection algorithms on the coverage reduction and normalization of the over-sequenced H1N1 Influenza viral plaque sample were compared to all unprocessed reads, pre-processed sequences, and a completely random subset of the pre-processed data set. Targeted selection from bins minimized the loss of true low coverage sequences when evaluating samples with pronounced coverage differences (Figure 2B). The likelihood that some low abundant sequences are not selected by random bin selection was linked to sequencing coverage, and true reference base-pairs may be removed within low coverage regions, inhibiting the extension of an assembled consensus through that region of the genome (Figure 2C). Targeted selection from retention bins by homologous clustering increased the likelihood that reads coming from low coverage regions were represented in the selected output pool, resulting in fewer missing reference bases compared to random selection methods. In this context, a completely random selection of the reads failed to remove problematic coverage spikes, while the targeted selection (sampling) from homologous sequence clusters retained more reads from low coverage regions, resulting in an improved genome span as evaluated by comparison to a reference genome (Column ¥: Additional file 3: Table S2). Targeted reduction displayed the best approximation to true genome span for all samples requiring coverage reduction by recruiting more reads to low coverage regions (Column Ħ: Additional file 3: Tables S1, S2). A comparison of bin-based selection for reduced coverage to bin-less random selection from all reads was performed, showing a tendency of the latter process to follow the coverage distribution of the input dataset and a failure to remove coverage spikes, which inhibit OLC assembly (Figure 2D).
Targeted selection using mate tracking recruited 10-20% more two-sided pairs than when reads were initially selected from bins as fragments and followed by the extraction of their mates (Additional file 1: Figure S2B). The prioritized selection of mate pairs was shown to be successful at creating improved scaffolds, linking fewer contigs (Columns α, β: Additional file 3: Table S3). This effect was more dramatic in the OLC assemblies than those generated by the scaffolded multi-de Bruijn graph equivalent. Here, scaffolding of both control MDA samples (E. coli, S. aureus) was improved despite losing as much as 45% of the two-sided mate information.
Validation of coverage normalization pipeline on controls
Samples amplified by MDA and built from multiple cells (E. coli, S. aureus) saw the largest jump in the loss of base coverage (vis-à-vis reference bases) using AllPaths read correction, although the resulting CLC assembly of these reads aligned to the reference sequences at levels comparable to SPAdes assembly of all reads (Columns §, ¥: Additional file 3: Table S1). Samples requiring additional coverage reduction, specifically E. coli as compared to S. aureus, assembled into a more contiguous consensus at closer approximation to the reference genome span. Similarly, for the experimental single cell sample, HMPMDA0100, in which the entire genome was not fully represented, average coverage decreased as low quality bases were trimmed or corrected out of the assembled data pool and highly abundant spurious contigs were removed from the assembled output (Column Π, Additional file 3: Table S2). A comparison of bin selection methods for sequence selection showed an increased number of formerly low coverage regions receiving at least 5-fold coverage following reduction with the targeted method across all samples except HMPMDA0100 (Column ƍ: Additional file 3: Tables S1, S2). In this case, random reduction collapsed the overlap graph and produced a consensus at less than half the predicted size, resulting in inflated coverage values. SPAdes assembly of the deeply sequenced control MDA E. coli sample yielded the most reference bases when using all reads, but did so at the cost of generating approximately 730 kbp of nearly duplicative contigs containing errors (Figure 3), In these cases, SPAdes output consensus lengths were found at 108% and 1048% of expected genome spans for E. coli and bacteriophage F_HA0480/Pa1651 samples, respectively (Column Ħ: Additional file 3: Tables S1, S2).
For the bacteriophage and influenza samples with a short genome span, as well as the idealized high quality MDA E. coli sample, the cumulative metrics contig N50, consensus span, difference from reference genome span, extent of missing reference bases in contigs and the percent of contig duplication suggest that sequences selected by both random and targeted methods yield assemblies that are improved or highly similar in quality to the assembly of all reads (Additional file 3: Tables S1, S2). Moreover, these assemblies yielded consensus spans at closer to the reference genome size while increasing the inclusion of reads from lower coverage regions, specifically those found at a minimum of 5-fold coverage, and reduced the fragmentation of the output consensus (Column ƍ: Additional file 3: Tables S1, S2). As coverage is calculated by the alignment of the input reads to the assembled consensus, average coverage was shown to increase when low quality and contaminant sequences were removed from the datasets. Changes in the sequencing (§) and assembly span (¥) for individual samples showed that despite removing true reference bases in reads during NeatFreq reduction compared to the pre-processed input, the resulting assemblies produced an increased (influenza, E. coli, S. aureus) or competitive (bacteriophage) assembly span (Additional file 3: Tables S1, S2). When deep coverage differences were normalized by random or targeted coverage reduction, Newbler generated assemblies of comparable quality with less duplication and fewer spurious contigs relative to SPAdes and other simulated multi-de Bruijn assemblers from all samples.
The successfully executed Newbler assemblies also showed a comparable count of 0-fold (missing) reference bases as observed from the best-simulated multi-de Bruijn results for highly variable inputs. Unlike SPAdes and Velvet-SC, the Newbler assemblies either failed to run to completion when all unprocessed reads were used for high coverage samples (E. coli, and S. aureus and coverage-variant HMPMDA0100) or produced lower quality results prior to the data reduction and coverage normalization (Additional file 3: Tables S1 & S2). SPAdes used lower peak memory and less processing time than is required for the suggested pre-processing-NeatFreq-Newbler pipeline for the bacteriophage sample, even when all reads were used as input (Additional file 1: Figures S3A, S3B).
The novel algorithm described here adapts and extends the earlier methods of digital normalization using kmer frequency analysis by (1) selecting reads randomly within retention bins using cutoffs set by expected levels of reduction, (2) providing the optional selection of the most unique sequences in a dataset by comparing the contents of scaled retention bins and (3) offering optional extraction of two-sided mate pairs during the reduction of sequences to obtain normalized coverage. Effective pre-processing reduces false kmers in the dataset and allows the removal of exact duplicates while minimizing memory use and the obfuscation of alignments due to the presence of superfluous sequences. The reduction of overabundant sequences and spikes in unequally distributed coverage across a target genome were found to build improved consensus sequences when assembled by both OLC and simulated multi-de Bruijn graph algorithms. The targeted bin selection approach offers a novel method for the recovery of rarely occurring sequences critical to samples with extreme coverage variation such as those generated from the sequencing of randomly amplified genetic material.
When large data sets inhibit processing due to algorithmic or resource restrictions, the ideal starting point in reducing coverage is the removal of sequencing errors. The exclusion of erroneous kmers results in the improvement of assemblies when samples are over-sequenced, but exhibit no significant variation in coverage (Additional file 3: Table S1 – S. aureus). The goal in each de novo assembly task must be to develop an effective strategy to remove uninformative sequences in a way in which the biases inherent to individual sample are best addressed.
The choice between random and targeted bin selection methods for normalization of extremely variable sequence data is dictated by the nature of the sample. The random bin selection method is preferable to taking completely random subsets of data in all cases where deep coverage spikes prevent successful assembly (Figure 2D). This selection method uses less memory and runs more quickly since it neither tracks mate pair relations nor requires intra-bin clustering by similarity (Additional file 1: Figure S3B). As such, the random bin selection algorithm is preferable to the targeted method for common sequencing analyses which may utilize deep sequencing, but do not require specialized retention of low coverage regions. By nature of the randomized selection within each bin, the highest population reads within each predicted coverage level are also more likely to be retained in the extracted sequence set when using this selection method. For this reason, the targeted selection method should be preferred for the recruitment of these low frequency kmers for the assembly of extremely variable coverage sequence, such as that found in transcriptomic data sets or prokaryotic sequence exhibiting MDA or SISPA bias. Additionally, the targeted bin selection method may be preferred for its capability of preferential 2-sided mate pair selection at the cost of time- and resource-intensive processing. Such targeted selection should be used only with those samples that have been error-corrected by preliminary kmer normalization. This allows for the effective removal of exact duplicates without increasing the output of short, erroneous, or chimeric kmers (Additional file 1: Figure S4), and increases the predicted coverage for valid kmers in the kmer graph. As currently implemented, the RMKF-based coverage prediction approach is primarily intended for analyzing data obtained from individual species. Should multiple species be present in a data set presented to the NeatFreq algorithm, each would reduce to normalized coverage, thus increasing the relative population of any low abundant organisms in the reduced output. In addition, the presence of sequences from multiple species introduces noise in kmer frequency counts, which may result in reduced coverage in the target organism. Following reduction, the relative increase in coverage for low abundant contaminating sequence, as compared to target sequence, further facilitates greater contiguity in contaminant assembly for improved identification, recursive removal and reduction. Furthermore, the use of these kmer frequency bin selection reduction algorithms with mixed sample data (e.g. metagenomic) requires a preliminary binning to separate organisms by taxonomy, GC profiles, etc. for optimal use. These techniques, however, would not be sufficient for the separation of similar strains where normalization of similar kmer profiles would complicate true overlaps within organisms present at different coverage levels.
The large amount of data generated from multiple samples by high throughput sequencing methods necessitates an automated, yet flexible processing pipeline. Ideally, the pipeline should perform recursive analysis using several methods of read selection and assembly algorithms, allowing one to choose from the most improved genomic consensus sequences. By tracking the input sequence metadata and the subsequent assembly results, a user or program can quickly evaluate the effects of specific pre-processing steps on the assembly quality, particularly when a reference is available. Furthermore, automation of sequence pre-processing and coverage reduction allows rapid processing of samples while conforming to reduced computer memory and data storage resources available to most users.
The pipeline described here has a number of other uses, including the preparation of Illumina sequences for the correction of lower quality, longer read length sequencing types including those from PacBio to ensure fewer erroneous bases in the final assembly. The tool can also be useful in the de novo assembly of transcriptome sequences including those of low abundance isoforms with the caveat that no differential expression analysis is possible due to the inherent normalization of sequence coverage. However, in the future, an implementation of extended read tracking could allow for automated de novo gene finding and expression analysis in RNA-seq projects. As currently implemented, the fragment-only pipeline can be used to process sequences and genomes of all sizes. Processing using paired-end reads should be capped at 100 million pairs due to lack of parallelization in the execution of some stages in the pipeline. The planned improvements incorporating multi-threading and multi-processor (CPU) options and the parallel processing of bin calculations in a cluster environment (SGE, Cloud) would extend its utility in processing larger datasets, including higher eukaryotic samples. Additional improvements could be made to compare the assemblies produced by the pipeline to known insertion sequence elements in order to detect and resolve known issues of sub-normal recruitment of repetitive sequences. The software can be trained with the expected kmer distributions from multiple related reference sequences for metagenomic data or a single reference for individual novel samples. Implementation of the algorithms and pipeline as described is valuable in delivering high quality assemblies from high-density data, obtained from prokaryotic and small eukaryotic species containing extremely deep coverage differences.
The single cell amplification of novel organisms whose genome span is unknown and contains sequences of extremely variable coverage requires approaches that emphasize data reduction and coverage normalization prior to their use with high-confidence OLC assemblers such as Newbler and Celera WGS to generate more valid assemblies of target genomes. In this study, we have shown that using OLC methods with a reduced set of high quality sequences results in conservative assemblies that can be used as a standard to validate results obtained from more aggressive assembly programs that require all reads as input. Simulated multi-de Bruijn graph-based assemblies using multiple kmer sizes such as SPAdes, Velvet-SC and IDBA-UD perform well with samples of deep coverage using input sequences that have not been pre-processed. When using all input reads and comparing to the same assemblies using reads reduced by either the random or targeted selection methods, these simulated multi-de Bruijn graph assemblers, which expect variable coverage input sequence, are shown to output assemblies with more consistent confidence when compared to the reference genome. Pre-processing of input sequence reduced assembly resources and generated assemblies that were less fragmented and contained fewer spurious contigs (Column Ħ: Additional file 3: Tables S1, S2; Figure 3). Verification of the sequencing spans generated by these simulated multi-de Bruijn graph assemblers by the concomitant high confidence OLC assemblies allowed for the selection of the most valid consensus sequences and minimized time and effort spent for the costly post-assembly analysis (finishing) to eliminate contigs of dubious quality. Our analysis also demonstrates the utility of extracting mate pairs (or paired-ends), when available, and finds that the selection of unique sequences over a wide range of coverage depth may allow for more contiguous assemblies with improved scaffolds using commonly problematic data sets.
Availability and requirements
Project name: NeatFreq
Project home page: https://github.com/bioh4x/NeatFreq
Operating system(s): Unix/Linux
Programming language: Perl
Other requirements: 3rd Party Utilities (Install Instuctions Provided)
License: GNU GPL 2
Any restrictions to use by non-academics: None
Lasken RS: Genomic sequencing of uncultured microorganisms from single cells. Nat Rev Microbiol. 2012, 10: 631-640. 10.1038/nrmicro2857.
Lasken RS: Genomic DNA amplification by the multiple displacement amplification (MDA) method. Biochem Soc Trans. 2009, 37: 450-453. 10.1042/BST0370450.
Raghunathan A, Ferguson HR, Bornarth CJ, Song W, Driscoll M, Lasken RS: Genomic DNA amplification from a single bacterium. Appl Environ Microbiol. 2005, 71: 3342-3347. 10.1128/AEM.71.6.3342-3347.2005.
Zhang K, Martiny AC, Reppas NB, Barry KW, Malek J, Chisholm SW, Church GM: Sequencing genomes from single cells by polymerase cloning. Nat Biotechnol. 2006, 24: 680-686. 10.1038/nbt1214.
Chitsaz H, Yee-Greenbaum JL, Tesler G, Lombardo MJ, Dupont CL, Badger JH, Novotny M, Rusch DB, Fraser LJ, Gormley NA, Schulz-Trieglaff O, Smith GP, Evers DJ, Pevzner PA, Lasken RS: Efficient de novo assembly of single-cell bacterial genomes from short-read data sets. Nat Biotechnol. 2011, 29: 915-921. 10.1038/nbt.1966.
Dupont CL, Rusch DB, Yooseph S, Lombardo MJ, Richter RA, Valas R, Novotny M, Yee-Greenbaum J, Selengut JD, Haft DH, Halpern AL, Lasken RS, Nealson K, Friedman R, Venter JC: Genomic insights to SAR86, an abundant and uncultivated marine bacterial lineage. ISME J. 2012, 6: 1186-1199. 10.1038/ismej.2011.189.
Dean FB, Nelson JR, Giesler TL, Lasken RS: Rapid amplification of plasmid and phage DNA using Phi 29 DNA polymerase and multiply-primed rolling circle amplification. Genome Res. 2001, 11: 1095-1099. 10.1101/gr.180501.
Allen LZ, Ishoey T, Novotny MA, McLean JS, Lasken RS, Williamson SJ: Single virus genomics: a new tool for virus discovery. PLoS One. 2011, 6: e17722-10.1371/journal.pone.0017722.
Depew J, Zhou B, McCorrison JM, Wentworth DE, Purushe J, Koroleva G, Fouts DE: Sequencing viral genomes from a single isolated plaque. Virol J. 2013, 10: 181-10.1186/1743-422X-10-181.
Yokouchi H, Fukuoka Y, Mukoyama D, Calugay R, Takeyama H, Matsunaga T: Whole-metagenome amplification of a microbial community associated with scleractinian coral by multiple displacement amplification using phi29 polymerase. Environ Microbiol. 2006, 8: 1155-1163. 10.1111/j.1462-2920.2006.01005.x.
Willner D, Furlan M, Haynes M, Schmieder R, Angly FE, Silva J, Tammadoni S, Nosrat B, Conrad D, Rohwer F: Metagenomic analysis of respiratory tract DNA viral communities in cystic fibrosis and non-cystic fibrosis individuals. PLoS One. 2009, 4: e7370-10.1371/journal.pone.0007370.
McLean JS, Lombardo MJ, Ziegler MG, Novotny M, Yee-Greenbaum J, Badger JH, Tesler G, Nurk S, Lesin V, Brami D, Hall AP, Edlund A, Allen LZ, Durkin S, Reed S, Torriana F, Nealson KH, Pevzner PA, Friedman R, Venter JC, Lasken RS: Genome of the pathogen Porphyromonas gingivalis recovered from a biofilm in a hospital sink using a high-throughput single-cell genomics platform. Genome Res. 2013, 23: 867-877. 10.1101/gr.150433.112.
McLean JS, Lombardo MJ, Badger JH, Edlund A, Novotny M, Yee-Greenbaum J, Vyahhi N, Hall AP, Yang Y, Dupont CL, Ziegler MG, Chitsaz H, Allen AE, Yooseph S, Tesler G, Pevzner PA, Friedman RM, Nealson KH, Venter JC, Lasken RS: Candidate phylum TM6 genome recovered from a hospital sink biofilm provides genomic insights into this uncultivated phylum. Proc Natl Acad Sci U S A. 2013, 110: E2390-E2399. 10.1073/pnas.1219809110.
Brown CT, Howe A, Zhang Q, Pyrkosz AB, Brom TH: A reference-free algorithm for computational normalization of shotgun sequencing data. arXiv. 2012, 1203: 4802-
Howe AC, Jansson JK, Malfatti SA, Tringe SG, Tideje JM, Brown CT: Tackling soil diversity with the assembly of large, complex metagenomes. Proc Natl Acad Sci U S A. 2014, 111 (13): 4904-4909. 10.1073/pnas.1402564111.
Butler J, MacCallum I, Kleber M, Shlyakhter IA, Belmonte MK, Lander ES, Nusbaum C, Jaffe DB: ALLPATHS: de novo assembly of whole-genome shotgun microreads. Genome Res. 2008, 18: 810-820. 10.1101/gr.7337908.
Martin M: Cutadapt removes adapter sequences from high-throughput sequencing reads. EMBnet J. 2011, 17: 10-12. 10.14806/ej.17.1.200.
Morgulis A, Gertz EM, Schaffer AA, Agarwala R: A fast and symmetric DUST implementation to mask low-complexity DNA sequences. J Comput Biol. 2006, 13: 1028-1040. 10.1089/cmb.2006.13.1028.
Kelley DR, Schatz MC, Salzberg SL: Quake: quality-aware detection and correction of sequencing errors. Genome Biol. 2010, 11: R116-10.1186/gb-2010-11-11-r116.
Bio-playground package. In ., [https://github.com/martijnvermaat/bio-playground]
Quinn NL, Levenkova N, Chow W, Bouffard P, Boroevich KA, Knight JR, Jarvie TP, Lubieniecki KP, Desany BA, Koop BF, Harkins TT, Davidson* WS: Assessing the feasibility of GS FLX pyrosequencing for sequencing the Atlantic salmon genome. BMC Genomics. 2008, 9: 404-10.1186/1471-2164-9-404.
Li W, Godzik A: Cd-hit: a fast program for clustering and comparing large sets of protein or nucleotide sequences. Bioinformatics. 2006, 22: 1658-1659. 10.1093/bioinformatics/btl158.
White paper on CLC de novo assembler. In ., [http://www.clcbio.com/files/whitepapers/whitepaper-denovo-assembly-4.pdf]
Venter JC, Adams MD, Myers EW, Li PW, Mural RJ, Sutton GG, Smith HO, Yandell M, Evans CA, Holt RA, Gocayne JD, Amanatides P, Ballew RM, Huson DH, Wortman JR, Zhang Q, Kodira CD, Zheng XH, Chen L, Skupski M, Subramanian G, Thomas PD, Zhang J, Gabor Miklos GL, Nelson C, Broder S, Clark AG, Nadeau J, McKusick VA, Zinder N, et al: The sequence of the human genome. Science. 2001, 291: 1304-1351. 10.1126/science.1058040.
Chevreux B: MIRA: An Automated Genome and EST Assembler, PhD Thesis. German Cancer Research Center Heidelberg. Department of Molecular Biophysics; 2005.
Kurtz S, Narechania A, Stein JC, Ware D: A new method to compute K-mer frequencies and its application to annotate large repetitive plant genomes. BMC Genomics. 2008, 9: 517-10.1186/1471-2164-9-517.
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: 1420-1428. 10.1093/bioinformatics/bts174.
Chaisson MJ, Pevzner PA: Short read fragment assembly of bacterial genomes. Genome Res. 2008, 18: 324-330. 10.1101/gr.7088808.
Bankevich A, Nurk S, Antipov D, Gurevich AA, Dvorkin M, Kulikov AS, Lesin VM, Nikolenko SI, Pham S, Prjibelski AD, Pyshkin AV, Sirotkin AV, Vyahhi N, Tesler G, Alekseyev MA, Pevzner PA: SPAdes: a new genome assembly algorithm and its applications to single-cell sequencing. J Comput Biol. 2012, 19: 455-477. 10.1089/cmb.2012.0021.
Volfovsky N, Haas BJ, Salzberg SL: A clustering method for repeat analysis in DNA sequences. Genome Biol. 2001, 2: RESEARCH0027-10.1186/gb-2001-2-8-research0027.
Jason Miller, Granger Sutton, Karen Nelson, Pavel Pevzner, Glenn Tesler, Jessica DePew, Danny Katzel, Ravi Sanka, Maria Kim, Brian Walenz, Zane Goodwin, Mark Novotny.
This project has been funded with federal funds from the National Institute of Allergy and Infectious Diseases, National Institutes of Health, and Department of Health and Human Services under contract numbers HHSN272200900007C and U54-AI084844.
The authors declare that they have no competing interests.
JM created the novel software, administered tests and drafted the manuscript and figures. PV and IS contributed to the methods used in the algorithm and the writing of the manuscript. BM proposed and coordinated the study, performed analysis of experimental single cell data and, revised the manuscript. DF facilitated phage sequencing data, contributed to SISPA preparation concepts, and revised the manuscript. RL participated in the coordination of the project, interpretation of MDA sequence bias, and revised the manuscript. All authors approved the final manuscript.
Electronic supplementary material
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
About this article
Cite this article
McCorrison, J.M., Venepally, P., Singh, I. et al. NeatFreq: reference-free data reduction and coverage normalization for De Novosequence assembly. BMC Bioinformatics 15, 357 (2014). https://doi.org/10.1186/s12859-014-0357-3
- de novo assembly
- Coverage reduction
- Single cell
- Multiple displacement amplification