560 likes | 570 Views
Most pipelines work the same way!. Metagenomics Processing. Merge paired-end reads. Preprocessing. Functional Assignments. Taxonomic assignments. Contamination removal. Gene Prediction. Contig Clustering. Binning reads. Metagenomics. Quality control – Prinseq Deconseq Annotation
E N D
Metagenomics Processing Merge paired-end reads Preprocessing Functional Assignments Taxonomic assignments Contamination removal Gene Prediction Contig Clustering Binning reads
Metagenomics Quality control – Prinseq Deconseq Annotation FOCUS Real time metagenomics mg-rast Super FOCUS Statistics STAMP Population genomes crAss metabat ContigClustering
Metagenomics Processing Contig clustering Preprocessing Gene Prediction FragGeneScan GlimmerMG MetaGeneAnnotator MetaGeneMark MetaGun Orphelia Prodigal FASTQC FastX Toolkit fitGCP NGS QC Toolkit Non-pareil Prinseq QC-Chain Streaming Trim AbundanceBin CompostBin concoct crAss tetra Taxonomic assignment Functional assignment CLAMS Sequedex DiScRIBinATE SORT-ITEMS genometa SPANNER GSMer SPHINX PPLACER TaxSOM RTMg Treephyler CARMA myTaxa FOCUS PhylopythiaS KRAKEN phymmbl LMAT RAIphy MEGAN TACOA Metaplan Taxy
Preprocessing Data Rob Schmieder
Good data analysis Quality control & Preprocessing Similarity search New dataset Assembly
3 Tools for metagenomic data http://prinseq.sourceforge.net http://tagcleaner.sourceforge.net http://deconseq.sourceforge.net
Quality control and data preprocessing http://edwards.sdsu.edu/prinseq Rob Schmieder
Number and length of sequences Bad Reads should be approx. same length (same number of cycles) → Short reads are likely lower quality Good
Linearly degrading quality across the read Trim low quality ends
High quality throughout the sequence Good quality through the length of the sequence Sequence quality falls off quickly → Bad sequence data
Low quality sequence issues • Most assemblers or aligners do not take into account quality scores • Errors in reads complicate assembly, might cause misassembly, or make assembly impossible
What if quality scores are not available ? Alternative: • Infer quality from the percent of Ns found in the sequence • Removes regions with a high number of Ns • Huse et al. found that presence of any ambiguous base calls was a sign for overall poor sequence quality Huse et al.: Accuracy and quality of massively parallel • DNA pyrosequencing. Genome Biology (2007)
What if quality scores are not available ? Alternative: • Infer quality from the percent of Ns found in the sequence • Removes regions with a high number of Ns • Huse et al. found that presence of any ambiguous base calls was a sign for overall poor sequence quality Huse et al.: Accuracy and quality of massively parallel • DNA pyrosequencing. Genome Biology (2007)
Ambiguous bases • If you can afford the loss, filter out all reads containing Ns • Assemblers (e.g. Velvet) and aligners (SHAHA2, BWA, …) use 2-bit encoding system for nucleotides • some replace Ns with random base, some with fixed base (e.g. SHAHA2 & Velvet = A) 2-bit example: 00 – A, 01 – C, 10 – G, 11 - T
Quality filtering • Any region with homopolymer will tend to have a lower quality score • Huseet al. found that sequences with an average score below 25 had more errors than those with higher averages Huse et al.: Accuracy and quality of massively • parallel DNA pyrosequencing. Genome Biology (2007)
Real or artificial duplicate ? • Metagenomics = random sampling of genomic material • Why do reads start at the same position? • Why do these reads have the same errors? • No specific pattern or location on sequencing plate • Gomez-Alvarez et al.: Systematic artifacts in metagenomes from • complex microbial communities. ISME (2009)
One micro-reactor – Many beads Martine Yerle (Laboratory of Cellular Genetics, INRA, France)
Impacts of duplicates • False variant (SNP) calling • Require more computing resources • Find similar database sequences for same query sequence • Assembly process takes longer • Increase in memory requirements • Abundance or expression measures can be wrong
Impacts of duplicates • False variant (SNP) calling • Require more computing resources • Find similar database sequences for same query sequence • Assembly process takes longer • Increase in memory requirements • Abundance or expression measures can be wrong Reference ...ACCACACGTGTTGTGTACATGAACACAGTATATGAGCATACAGAT... GTGTTGTGTACATGAACACAGTATATGAGCATACAGAT... GTGTACATGAACACAGTATATGAGCATACAGAT... TGAACACAGTCTATGAGCATACAGAT... TGAACACAGTCTATGAGCATACAGAT... TGAACACAGTCTATGAGCATACAGAT... TGAACACAGTCTATGAGCATACAGAT... TGAACACAGTCTATGAGCATACAGAT...
Impacts of duplicates • False variant (SNP) calling • Require more computing resources • Find similar database sequences for same query sequence • Assembly process takes longer • Increase in memory requirements • Abundance or expression measures can be wrong
Detect and remove tag sequences http://edwards.sdsu.edu/tagcleaner
No tag MID tag WTA tags
Data upload Tag sequence definition
Parameter definition Download results
Identification and removal of sequence contamination http://edwards.sdsu.edu/deconseq
Contaminant identification • Previous methods had critical limitations • Dinucleotide relative abundance uses information content in sequences can not identify single contaminant sequences • Sequence similarity seems to be only reliable option to identify single contaminant sequences • BLAST against human reference genome is slow and lacks corresponding regions (gaps, variants, …) • Novel sequences in every new human genome sequenced* * Li et al.: Building the sequence map of the human • pan-genome. Nature Biotechnology (2010)
Principal component analysis (PCA) of dinucleotide relative abundance Microbial metagenomes Viral metagenomes
Current methods have critical limitations Dinucleotide relative abundance uses information content in sequences can not identify single contaminant sequences Sequence similarity seems to be only reliable option to identify single contaminant sequences BLAST against human reference genome is slow and lacks corresponding regions (gaps, variants, …) Novel sequences in every new human genome sequenced* Contaminant identification * Li et al.: Building the sequence map of the human pan-genome. Nature Biotechnology (2010)
DeconSeq web interface Two types of reference databases Remove Retain
DeconSeq Identity = How similar is the query sequence to the reference sequence How much of query sequence is similar to reference sequence Coverage =
DeconSeq Blue = More similar to “retain” Red = More similar to “remove”
Human DNA contamination identified in145 out of 202 metagenomes
Two types of paired ends Mate pairs Paired end reads
Repeats Paired end reads or mate pairs A B C
Mate pair Sequencing Add linkers
Mate pair sequencing Sequencing Nick migration