Debian Codegraph @

docs/microbiomeutil.asciidoc

raw
1 = Microbiome Utilities Portal of the Broad Institute =
2
3 image:images/broad-hmp-banner.gif["Broad HMP logo", width=800]
4
5 The Human Microbiome Project (HMP) is an exciting Roadmap initiative funded by the National Institutes of Health (NIH). The goal of the project is to understand how the microbial communities inhabiting our bodies contribute to normal human health, development, and disease (http://nihroadmap.nih.gov/hmp/[http://nihroadmap.nih.gov/hmp]).
6
7 The Broad Institute (http://www.broadinstitute.org[http://www.broadinstitute.org]) was launched in 2004 with the visionary philanthropic investment of Eli and Edythe Broad, who joined with leaders at Harvard and its affiliated hospitals, MIT, and the Whitehead Institute to pioneer a "new model” of collaborative science. The Broad Institute is organized as a transparent infrastructure that allows biology- and technology-focused scientists to work together to identify and overcome the most critical obstacles to realizing the full promise of genomic medicine.
8
9 The Broad Institute aggressively advances sequence-based technologies and the bioinformatics necessary to characterize the vast complexity of the human microbiome. In keeping with our mission, we make the microbiome analysis utilities developed by the Broad Institute available to the community in order to promote further innovation and collaborative research efforts. We appreciate your feedback.
10
11 The utilities developed by the Broad Institute and provided here apply to a range of challenges posed by the microbiome initiative, including:
12
13 - Sequence alignment (<<A_NASTiEr,NAST-iEr>>)
14 - Chimera detection (<<A_CS, ChimeraSlayer>>, <<A_WigeoN, WigeoN>>)
15 - Operational taxonomic unit OTU binning (<<A_TreeChopper, TreeChopper>>)
16 - Sequence assembly (<<A_AMOScmp, AmosCmp16Spipeline>>)
17
18 [NOTE]
19 ChimeraSlayer, WigeoN, NAST-iEr, and the database of reference 16S sequences are provided as a single co-dependent http://sourceforge.net/project/showfiles.php?group_id=262346[download]. Sample data and usage instructions are included.
20
21
22 == Microbiome Analysis Utilities ==
23
24
25 [[A_CS]]
26 === ChimeraSlayer ===
27
28 ChimeraSlayer http://sourceforge.net/project/showfiles.php?group_id=262346[(download)] is a chimeric sequence detection utility, compatible with near-full length Sanger sequences and shorter 454-FLX sequences (~500 bp).
29
30 Chimera Slayer involves the following series of steps that operate to flag chimeric 16S rRNA sequences: (A) the ends of a query sequence are searched against an included database of reference chimera-free 16S sequences to identify potential parents of a chimera; (B) candidate parents of a chimera are selected as those that form a branched best scoring alignment to the NAST-formatted query sequence; (C) the NAST alignment of the query sequence is improved in a ‘chimera-aware’ profile-based NAST realignment to the selected reference parent sequences; and (D) an evolutionary framework is used to flag query sequences found to exhibit greater sequence homology to an in silico chimera formed between any two of the selected reference parent sequences.
31
32 To run Chimera Slayer, you need NAST-formatted sequences generated by the included <<A_NASTiEr, NAST-iEr>> utility. Given NAST-formatted sequences, run ChimeraSlayer like so:
33
34 %microbiomeutil/ChimeraSlayer/ChimeraSlayer.pl --query_NAST ${sequences}.NAST
35
36 The output files include the following:
37
38 ${sequences}.NAST.CPS :results from the chimera parent selection step
39 ${sequences}.NAST.CPS_RENAST :NAST alignments from a 'chimera-aware' realignment of the query
40 ${sequences}.NAST.CPS.CPC :results from the chimera 'phylo-checker' step ** the Chimera Slayer final verdict **
41 ${sequences}.NAST.CPS.CPC.wTaxons :the taxonomy of the reference (step)parents of the chimera
42
43 The .CPC output file is tab-delimited with the following fields:
44
45 0 ChimeraSlayer
46 1 chimera_AJ007403 # the accession of the chimera query
47 2 S000387216 # reference parent A
48 3 S000001688 # reference parent B
49 4 0.9422 # divergence ratio of query to chimera (left_A, right_B)
50 5 90.00 # percent identity between query and chimera(left_A, right_B)
51 6 0 # confidence in query as a chimera related to (left_A, right_B)
52 7 1.0419 # divergence ratio of query to chimera (right_A, left_B)
53 8 99.52 # percent identity between query and chimera(right_A, left_B)
54 9 100 # confidence in query as a chimera related to (right_A, left_B)
55 10 YES # ** verdict as a chimera or not **
56 11 NAST:4032-4033 # estimated approximate chimera breakpoint in NAST coordinates
57 12 ECO:767-768 # estimated approximate chimera breakpoint according to the E. coli unaligned reference seq coordinates
58
59
60 For those query sequences flagged as chimeras, the .wTaxons file includes the following extra columns:
61
62 13 Rhodococcus # genus name of Parent A
63 14 Rhodococcus koreensis (T); DNP505; AF124342 Rhodococcus koreensis # descriptive info for Parent A
64 15 Streptomyces # genus name of Parent B
65 16 Streptomyces somaliensis (T); DSM 40738; AJ007403 Streptomyces somaliensis # descriptive info for Parent B
66 17 INTRA-ORDER # type of chimera based on selected parents
67
68
69 [NOTE]
70 It is *not* recommended to blindly discard all sequences flagged as chimeras. Some may represent naturally formed chimeras that do not represent PCR artifacts. Sequences flagged may warrant further investigation.
71
72
73 If you use the --printCSalignments option, a diagram of the query matching the parents on both sides of the breakpoint is included in the output. For example:
74
75
76
77 Per_id parents: 89.52
78
79 Per_id(Q,A): 94.00
80 --------------------------------------------------- A: S000387216
81 88.65 99.06
82 ~~~~~~~~~~~~~~~~~~~~~~~~\ /~~~~~~~~~~~~~~~~~~~~~~~~ Q: chimera_AJ007403
83 DivR: 0.942 BS: 0.00 |
84 Per_id(QLA,QRB): 90.00 |
85 |
86 (L-AB: 88.65) | (R-AB: 90.34)
87 WinL:0-704 | WinR:705-1449
88 |
89 Per_id(QLB,QRA): 99.52 |
90 DivR: 1.042 BS: 100.00 |
91 ~~~~~~~~~~~~~~~~~~~~~~~~/ \~~~~~~~~~~~~~~~~~~~~~~~~~ Q: chimera_AJ007403
92 100.00 91.28
93 ---------------------------------------------------- B: S000001688
94 Per_id(Q,B): 95.52
95
96 DeltaL: -11.35 DeltaR: 7.79
97
98 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
99 GGAGGCTCGTACCGCTGTCTTGTTAAGGACTGGTTTTTTACTGTCTATACAGACTCTTCA A: S000387216
100 AAGACGCTTGGGTTTCACTCCTGCGCTTCGGCCGGGCCCGGCACTCGCCACAGTCTCGAG Q: chimera_AJ007403
101 AAGACGCTTGGGTTTCACTCCTGCGCTTCGGCCGGGCCCGGCACTCGCCACAGTCTCGAG B: S000001688
102
103
104 !!!!!!!!!!!!!!!!!!!!
105 TACTACTGGATATCCTGATA A: S000387216
106 CGTCGTCTTGATGTTCACAT Q: chimera_AJ007403
107 CGTCGTCTTGATGTTCACAT B: S000001688
108
109
110 ** Breakpoint **
111
112 !!!!!!!
113 TGCGTTCGGATCGATTGTTGCCGTACGCTGTGTCGATTAAAGGTAATCATAAGGGCTTTC A: S000387216
114 TGCGTTCGGATCGATTGTTGCCGTACGCCTGTGTCATTAAAGGTAATCATAAGGGCTTTC Q: chimera_AJ007403
115 GTAACGATCGCTTCCAACCCATCCGGTGCTGTGTCGCCGGGCACGGCTTGGGAATTAACT B: S000001688
116 !!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!
117
118
119 GACTTACGACTC A: S000387216
120 GACTTACGACTC Q: chimera_AJ007403
121 ATTCCCAAGTCT B: S000001688
122 !!!!!!!!!!!!
123
124
125 The above indicates the percent identities between the alignment segments corresponding to query and either parent. Since chimeras can occur two ways: (left parent A & right parent B) or (left parent B & right parent A), a fork diagram is shown with the statistics for each potential chimera as it relates to the query sequence. The bootstrap (BS) values indicate the confidence level for the corresponding chimera type. The informative SNP positions from the complete alignments are shown for both sides of the breakpoint.
126
127
128 [[A_WigeoN]]
129 === WigeoN ===
130
131
132 WigeoN http://sourceforge.net/project/showfiles.php?group_id=262346[(download)] examines the sequence conservation between a query and a trusted reference sequence, both in NAST alignment format. Based on the sequence identity between the query and the reference sequence, there is an expected amount of variation among the alignment. If the observed variation is greater than the 95% quantile of the distribution of variation observed between non-anomalous sequences, then it is flagged as an anomaly.
133
134 WigeoN is a flexible command-line based reimplementation of the http://www.bioinformatics-toolkit.org/Pintail/[Pintail] algorithm http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pubmed&pubmedid=16332745[Appl Environ Microbiol. 2005 Dec;7112:7724-36].
135
136 WigeoN is useful for flagging chimeras and anomalies *only in near full-length 16S rRNA sequences*. WigeoN lacks sensitivity with sequences less than 1000 bp.
137
138
139 To run WigeoN, you need NAST-formatted sequences generated by the included <<A_NASTiEr, NAST-iEr> utility. Given NAST-formatted sequences, run WigeoN like so:
140
141 %microbiomeutil/WigeoN/run_WigeoN.pl --query_NAST ${sequences}.NAST > ${sequences}.WigeoN
142
143 The output is tab-delimited like so:
144
145 0 chimera_AJ007403 # query sequence
146 1 S000387216 # best matching reference sequence
147 2 div:
148 3 5.45 # percent sequence divergence between the query and the reference sequence
149 4 stDev:
150 5 4.01 # standard deviation from expected reference sequence divergence across alignment windows
151 6 Quant95:Yes # stDev is in the top 5% of stDev values observed among reference sequences at that same mean divergence
152 7 Quant99:YES # top 1% *** This value is recommended for flagging aberrant sequences ***
153 8 Quant99.9:No # top 0.1%
154 9 Quant99.99:No # top 0.01%
155
156
157
158
159 [[A_NASTiEr]]
160 === NAST-iEr ===
161
162
163 The NAST-iEr alignment utility http://sourceforge.net/project/showfiles.php?group_id=262346[(download)] aligns a single raw nucleotide sequence against one or more NAST formatted sequences.
164
165 The alignment algorithm involves global dynamic programming profile alignment to fixed (NAST-formatted) multiply aligned template sequences without any end-gap penalty.
166
167 Run it like so, using a set of fasta-formatted sequences.
168
169 % microbiomeutil/NAST-iEr/run_NAST-iEr.pl --query_FASTA ${sequences}.fasta > ${sequences}.NAST
170
171
172
173 [[A_AMOScmp]]
174 === AmosCmp16Spipeline ===
175
176 AmosCmp16Spipeline http://sourceforge.net/project/showfiles.php?group_id=262346[(download)] uses the AMOScmp software to assemble multiple, potentially overlapping 16S rRNA sequencing reads based on read mappings to a reference 16S rRNA gene.
177
178 Given the following inputs:
179 -fasta file containing sequencing reads
180 -file containing the corresponding qual values
181 -file enumerating the accessions corresponding to reads of the same clone individual assembly tasks
182 -a reference database of 16S rRNA sequences
183
184 The single reference sequence that best matches all the reads is chosen. Lucy is used to trim the sequence reads of low quality termini. An additional homology-trimming operation is performed to exclude regions of the sequence that lack homology to the reference. The resulting trimmed reads and quality values are used to generate a sequence assembly using the AMOScmp software. A scaffold sequence is generated, where Ns are used to fill in gaps according to estimated gap sizes based on reference sequence anchoring, and quality values are reported according to the scaffold sequence. A README file containing instructions and sample data are provided.
185
186
187
188 [[A_TreeChopper]]
189 === TreeChopper ===
190
191 TreeChopper http://sourceforge.net/project/showfiles.php?group_id=262346[(download)] clusters tree leaf nodes according to phylogenetic distance.
192
193 A graph is constructed from the tree like so: all leaves are visited, and from each leaf, all neighboring leaves within a specified distance threshold are added to a graph with an edge placed between them. After building this graph, each edge connecting pairs of nodes is examined and a Jaccard similarity coefficient is computed (see http://www.biomedcentral.com/1741-7007/3/7[http://www.biomedcentral.com/1741-7007/3/7] for details). Those edges that loosely connect nodes as defined by this similarity coefficient are removed. The nodes connected by the remaining edges are clustered by transitive closure (single linkage clustering) and reported as OTUs.
194
195 The minimum phylogenetic distance between clustered nodes, and the minimum similarity coefficient between nodes in the graph are tuneable parameters. A README file containing instructions and sample data are provided.
196
197
198 == Miscellaneous Remarks ==
199
200 - The bacterial 16S rRNA is the primary target of the ChimeraSlayer, WigeoN, and NAST-iEr utilities. Ultimately, we'd like to have a version that operates on eukaryotic 18S sequences as well.
201
202
203 == Questions, comments, etc? ==
204
205 Contact Brian Haas (bhaas at broadinstitute dot org)
206
207
208