annotate tools/ncbi_blast_plus/blastxml_to_top_descr.rst @ 8:a8ef75aab1f9 draft

Uploaded v0.0.7, README style updated, MIT license
author peterjc
date Wed, 24 Jul 2013 11:56:22 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
1 Galaxy tool to extract top BLAST hit descriptions from BLAST XML
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
2 ================================================================
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
3
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
4 This tool is copyright 2012-2013 by Peter Cock, The James Hutton Institute
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
5 (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
6 See the licence text below.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
7
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
8 This tool is a short Python script to parse a BLAST XML file, and extract the
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
9 identifiers with description for the top matches (by default the top 3), and
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
10 output these as a simple tabular file along with the query identifiers.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
11
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
12 It is available from the Galaxy Tool Shed at:
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
13 http://toolshed.g2.bx.psu.edu/view/peterjc/blastxml_to_top_descr
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
14
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
15 This requires the 'blast_datatypes' repository from the Galaxy Tool Shed
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
16 to provide the 'blastxml' file format definition.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
17
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
18
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
19 Automated Installation
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
20 ======================
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
21
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
22 This should be straightforward, Galaxy should automatically install the
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
23 'blast_datatypes' dependency.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
24
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
25
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
26 Manual Installation
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
27 ===================
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
28
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
29 If you haven't done so before, first install the 'blast_datatypes' repository.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
30
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
31 There are just two files to install (if doing this manually):
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
32
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
33 * blastxml_to_top_descr.py (the Python script)
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
34 * blastxml_to_top_descr.xml (the Galaxy tool definition)
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
35
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
36 The suggested location is in the Galaxy folder tools/ncbi_blast_plus next to
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
37 the NCBI BLAST+ tool wrappers.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
38
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
39 You will also need to modify the tools_conf.xml file to tell Galaxy to offer
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
40 the tool. e.g. next to the NCBI BLAST+ tools. Simply add the line::
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
41
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
42 <tool file="filters/seq_select_by_id.xml" />
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
43
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
44 To run the tool's tests, also add this line to tools_conf.xml.sample then::
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
45
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
46 $ sh run_functional_tests.sh -id blastxml_to_top_descr
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
47
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
48
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
49 History
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
50 =======
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
51
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
52 ======= ======================================================================
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
53 Version Changes
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
54 ------- ----------------------------------------------------------------------
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
55 v0.0.1 - Initial version.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
56 v0.0.2 - Since BLAST+ was moved out of the Galaxy core, now have a dependency
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
57 on the 'blast_datatypes' repository in the Tool Shed.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
58 v0.0.3 - Include the test files required to run the unit tests
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
59 v0.0.4 - Quote filenames in case they contain spaces (internal change)
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
60 v0.0.5 - Include number of queries with BLAST matches in stdout (peek text)
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
61 v0.0.6 - Check for errors via the script's return code (internal change)
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
62 v0.0.7 - Link to Tool Shed added to help text and this documentation.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
63 - Tweak dependency on blast_datatypes to also work on Test Tool Shed
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
64 - Adopt standard MIT License.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
65 ======= ======================================================================
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
66
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
67
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
68 Developers
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
69 ==========
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
70
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
71 This script and related tools are being developed on the following hg branch:
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
72 http://bitbucket.org/peterjc/galaxy-central/src/tools
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
73
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
74 For making the "Galaxy Tool Shed" http://toolshed.g2.bx.psu.edu/ tarball use
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
75 the following command from the Galaxy root folder::
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
76
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
77 $ tar -czf blastxml_to_top_descr.tar.gz tools/ncbi_blast_plus/blastxml_to_top_descr.* tools/ncbi_blast_plus/repository_dependencies.xml test-data/blastp_four_human_vs_rhodopsin.xml test-data/blastp_four_human_vs_rhodopsin_top3.tabular
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
78
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
79 Check this worked::
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
80
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
81 $ tar -tzf blastxml_to_top_descr.tar.gz
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
82 tools/ncbi_blast_plus/blastxml_to_top_descr.py
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
83 tools/ncbi_blast_plus/blastxml_to_top_descr.rst
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
84 tools/ncbi_blast_plus/blastxml_to_top_descr.xml
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
85 tools/ncbi_blast_plus/repository_dependencies.xml
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
86 test-data/blastp_four_human_vs_rhodopsin.xml
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
87 test-data/blastp_four_human_vs_rhodopsin_top3.tabular
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
88
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
89
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
90 Licence (MIT)
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
91 =============
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
92
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
93 Permission is hereby granted, free of charge, to any person obtaining a copy
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
94 of this software and associated documentation files (the "Software"), to deal
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
95 in the Software without restriction, including without limitation the rights
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
96 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
97 copies of the Software, and to permit persons to whom the Software is
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
98 furnished to do so, subject to the following conditions:
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
99
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
100 The above copyright notice and this permission notice shall be included in
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
101 all copies or substantial portions of the Software.
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
102
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
103 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
104 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
105 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
106 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
107 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
108 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
a8ef75aab1f9 Uploaded v0.0.7, README style updated, MIT license
peterjc
parents:
diff changeset
109 THE SOFTWARE.