|
0
|
1 Introduction
|
|
|
2 ============
|
|
|
3
|
|
|
4 Galaxy is a web-based platform for biological data analysis, supporting
|
|
|
5 extension with additional tools (often wrappers for existing command line
|
|
|
6 tools) and datatypes. See http://www.galaxyproject.org/ and the public
|
|
|
7 server at http://usegalaxy.org for an example.
|
|
|
8
|
|
|
9 The NCBI BLAST suite is a widely used set of tools for biological sequence
|
|
|
10 comparison. It is available as standalone binaries for use at the command
|
|
|
11 line, and via the NCBI website for smaller searches. For more details see
|
|
|
12 http://blast.ncbi.nlm.nih.gov/Blast.cgi
|
|
|
13
|
|
|
14 This is an example workflow using the Galaxy wrappers for NCBI BLAST+,
|
|
|
15 see https://github.com/peterjc/galaxy_blast
|
|
|
16
|
|
|
17 Galaxy workflow for counting species of top BLAST hits
|
|
|
18 ======================================================
|
|
|
19
|
|
|
20 This Galaxy workflow (file ``blast_top_hit_species.ga``) is intended for an
|
|
|
21 initial assessment of a transcriptome assembly to give a crude indication of
|
|
|
22 any major contaimination present based on the species of the top BLAST hit
|
|
|
23 of 1000 representative sequences.
|
|
|
24
|
|
|
25 .. image:: https://raw.githubusercontent.com/peterjc/galaxy_blast/master/workflows/blast_top_hit_species/blast_top_hit_species.png
|
|
|
26
|
|
|
27 In words, the workflow proceeds as follows:
|
|
|
28
|
|
|
29 1. Upload/import your transcriptome assembly or any nucleotide FASTA file.
|
|
|
30 2. Samples 1000 representative sequences, selected uniformly/evenly though
|
|
|
31 the file.
|
|
|
32 3. Convert the sampled FASTA file into a three column tabular file.
|
|
|
33 4. Runs NCBI BLASTX of the sampled FASTA file against the latest NCBI ``nr``
|
|
|
34 database (assuming this is already available setup on your local Galaxy
|
|
|
35 under the alias ``nr``), requesting tabular output including the taxonomy
|
|
|
36 fields, and at most one matching target sequence.
|
|
|
37 5. Remove any duplicate alignments (multiple HSPs for the same match).
|
|
|
38 6. Combine the filtered BLAST output with the tabular version of the 1000
|
|
|
39 sequences to give a new tabular file with exactly 1000 lines, adding
|
|
|
40 ``None`` for sequences missing a BLAST hit.
|
|
|
41 7. Count the BLAST species names in this file.
|
|
|
42 8. Sort the counts.
|
|
|
43
|
|
|
44 Finally we would suggest visualising the sorted tally table as a Pie Chart.
|
|
|
45
|
|
|
46
|
|
|
47 Sample Data
|
|
|
48 ===========
|
|
|
49
|
|
|
50 As an example, you can upload the transcriptome assembly of the nematode
|
|
|
51 *Nacobbus abberans* from Eves van den Akker *et al.* (2015),
|
|
|
52 http://dx.doi.org/10.1093/gbe/evu171 using this URL:
|
|
|
53
|
|
|
54 http://nematode.net/Data/nacobbus_aberrans_transcript_assembly/N.abberans_reference_no_contam.zip
|
|
|
55
|
|
|
56 Running this workflow with a copy of the NCBI non-redundant ``nr`` database
|
|
|
57 from 16 Oct 2014 (which did **not** contain this *N. abberans* dataset) gave
|
|
|
58 the following results - note 609 out of the 1000 sequences gave no BLAST hit.
|
|
|
59
|
|
|
60 ===== ==================
|
|
|
61 Count Subject Blast Name
|
|
|
62 ----- ------------------
|
|
|
63 609 None
|
|
|
64 244 nematodes
|
|
|
65 30 ascomycetes
|
|
|
66 27 eukaryotes
|
|
|
67 8 basidiomycetes
|
|
|
68 6 aphids
|
|
|
69 5 eudicots
|
|
|
70 5 flies
|
|
|
71 ... ...
|
|
|
72 ===== ==================
|
|
|
73
|
|
|
74 As you might guess from the filename ``N.abberans_reference_no_contam.fasta``,
|
|
|
75 this transcriptome assembly has already had obvious contamination removed.
|
|
|
76
|
|
|
77 At the time of writing, Galaxy's visualizations could not be included in
|
|
|
78 a workflow. You can generate a pie chart from the final count file using
|
|
|
79 the counts (c1) and labels (c2), like this:
|
|
|
80
|
|
|
81 .. image:: https://raw.githubusercontent.com/peterjc/galaxy_blast/master/workflows/blast_top_hit_species/N_abberans_piechart_mouseover.png
|
|
|
82
|
|
|
83 Note the nematode count in this image was shown as a mouse-over effect.
|
|
|
84
|
|
|
85
|
|
|
86 Availability
|
|
|
87 ============
|
|
|
88
|
|
|
89 This workflow is available to download and/or install from the main Galaxy Tool Shed:
|
|
|
90
|
|
|
91 http://toolshed.g2.bx.psu.edu/view/peterjc/blast_top_hit_species
|
|
|
92
|
|
|
93 Test releases (which should not normally be used) are on the Test Tool Shed:
|
|
|
94
|
|
|
95 http://testtoolshed.g2.bx.psu.edu/view/peterjc/blast_top_hit_species
|
|
|
96
|
|
|
97 Development is being done on github here:
|
|
|
98
|
|
|
99 https://github.com/peterjc/galaxy_blast/tree/master/workflows/blast_top_hit_species
|
|
|
100
|
|
|
101
|
|
|
102 Citation
|
|
|
103 ========
|
|
|
104
|
|
|
105 Please cite the following paper (currently available as a preprint):
|
|
|
106
|
|
|
107 NCBI BLAST+ integrated into Galaxy.
|
|
|
108 P.J.A. Cock, J.M. Chilton, B. Gruening, J.E. Johnson, N. Soranzo
|
|
|
109 bioRxiv DOI: http://dx.doi.org/10.1101/014043 (preprint)
|
|
|
110
|
|
|
111 You should also cite Galaxy, and the NCBI BLAST+ tools:
|
|
|
112
|
|
|
113 BLAST+: architecture and applications.
|
|
|
114 C. Camacho et al. BMC Bioinformatics 2009, 10:421.
|
|
|
115 DOI: http://dx.doi.org/10.1186/1471-2105-10-421
|
|
|
116
|
|
|
117
|
|
|
118 Automated Installation
|
|
|
119 ======================
|
|
|
120
|
|
|
121 Installation via the Galaxy Tool Shed should take care of the dependencies
|
|
|
122 on Galaxy tools including the NCBI BLAST+ wrappers and associated binaries.
|
|
|
123
|
|
|
124 However, this workflow requires a current version of the NCBI nr protein
|
|
|
125 BLAST database to be listed in ``blastdb_p.loc`` with the key ``nr`` (lower
|
|
|
126 case).
|
|
|
127
|
|
|
128
|
|
|
129 History
|
|
|
130 =======
|
|
|
131
|
|
|
132 ======= ======================================================================
|
|
|
133 Version Changes
|
|
|
134 ------- ----------------------------------------------------------------------
|
|
|
135 v0.1.0 - Initial Tool Shed release, targetting NCBI BLAST+ 2.2.29
|
|
|
136 ======= ======================================================================
|
|
|
137
|
|
|
138
|
|
|
139 Developers
|
|
|
140 ==========
|
|
|
141
|
|
|
142 This workflow is under source code control here:
|
|
|
143
|
|
|
144 https://github.com/peterjc/galaxy_blast/tree/master/workflows/blast_top_hit_species
|
|
|
145
|
|
|
146 To prepare the tar-ball for uploading to the Tool Shed, I use this:
|
|
|
147
|
|
|
148 $ tar -cf blast_top_hit_species.tar.gz README.rst repository_dependencies.xml blast_top_hit_species.ga blast_top_hit_species.png N_abberans_piechart_mouseover.png
|
|
|
149
|
|
|
150 Check this,
|
|
|
151
|
|
|
152 $ tar -tzf blast_top_hit_species.tar.gz
|
|
|
153 README.rst
|
|
|
154 repository_dependencies.xml
|
|
|
155 blast_top_hit_species.ga
|
|
|
156 blast_top_hit_species.png
|
|
|
157 N_abberans_piechart_mouseover.png
|
|
|
158
|
|
|
159
|
|
|
160 Licence (MIT)
|
|
|
161 =============
|
|
|
162
|
|
|
163 Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
164 of this software and associated documentation files (the "Software"), to deal
|
|
|
165 in the Software without restriction, including without limitation the rights
|
|
|
166 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
167 copies of the Software, and to permit persons to whom the Software is
|
|
|
168 furnished to do so, subject to the following conditions:
|
|
|
169
|
|
|
170 The above copyright notice and this permission notice shall be included in
|
|
|
171 all copies or substantial portions of the Software.
|
|
|
172
|
|
|
173 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
174 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
175 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
176 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
177 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
178 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
179 THE SOFTWARE.
|