annotate tools/samtools_depad/README.rst @ 0:2d303f2e09e0 draft

Uploaded v0.0.1, previously only on the Test Tool Shed
author peterjc
date Fri, 21 Nov 2014 06:37:20 -0500
parents
children 01f8967ce1e0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
1 Galaxy wrapper for samtools depad
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
2 =================================
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
3
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
4 This wrapper is copyright 2014 by Peter Cock, The James Hutton Institute
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
5 (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
6 See the licence text below.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
7
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
8 This is a wrapper for part of the command line samtools suite, v0.1.19
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
9
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
10 This wrapper is available from the Galaxy Tool Shed at:
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
11 http://toolshed.g2.bx.psu.edu/view/peterjc/samtools_idxstats
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
12
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
13
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
14 Automated Installation
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
15 ======================
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
16
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
17 This should be straightforward, Galaxy should automatically download and install
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
18 samtools 0.1.19 if required.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
19
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
20
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
21 Manual Installation
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
22 ===================
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
23
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
24 This expects samtools to be on the $PATH, and was tested using v0.1.19.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
25
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
26 To install the wrapper copy or move the following files under the Galaxy tools
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
27 folder, e.g. in a ``tools/samtools_depad`` folder:
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
28
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
29 * ``samtools_depad.xml`` (the Galaxy tool definition)
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
30 * ``samtools_depad.py`` (the Python wrapper script)
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
31 * ``README.rst`` (this file)
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
32
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
33 You will also need to modify the ``tools_conf.xml`` file to tell Galaxy to offer
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
34 the tool. Just add the line, perhaps under the NGS tools section::
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
35
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
36 <tool file="samtools_depad/samtools_depad.xml" />
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
37
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
38 If you wish to run the unit tests, also add this to ``tools_conf.xml.sample``
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
39 and move/copy the ``test-data`` files under Galaxy's ``test-data`` folder. Then::
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
40
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
41 $ ./run_functional_tests.sh -id samtools_depad
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
42
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
43 That's it.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
44
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
45
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
46 History
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
47 =======
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
48
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
49 ======= ======================================================================
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
50 Version Changes
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
51 ------- ----------------------------------------------------------------------
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
52 v0.0.1 - Initial public release
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
53 ======= ======================================================================
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
54
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
55
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
56 Developers
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
57 ==========
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
58
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
59 Development is on this GitHub repository:
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
60 https://github.com/peterjc/pico_galaxy/tree/master/tools/samtools_depad
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
61
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
62 For making the "Galaxy Tool Shed" http://toolshed.g2.bx.psu.edu/ tarball use
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
63 the following command from the Galaxy root folder::
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
64
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
65 $ tar -czf samtools_depad.tar.gz tools/samtools_depad/README.rst tools/samtools_depad/samtools_depad.xml tools/samtools_depad/samtools_depad.py tools/samtools_depad/tool_dependencies.xml test-data/sam_spec_padded.fasta test-data/sam_spec_padded.sam test-data/sam_spec_padded.bam test-data/sam_spec_padded.depad.bam
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
66
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
67 Check this worked::
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
68
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
69 $ tar -tzf samtools_depad.tar.gz
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
70 tools/samtools_depad/README.rst
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
71 tools/samtools_depad/samtools_depad.xml
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
72 tools/samtools_depad/samtools_depad.py
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
73 tools/samtools_depad/tool_dependencies.xml
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
74 test-data/sam_spec_padded.fasta
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
75 test-data/sam_spec_padded.sam
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
76 test-data/sam_spec_padded.bam
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
77 test-data/sam_spec_padded.depad.bam
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
78
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
79
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
80 Licence (MIT)
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
81 =============
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
82
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
83 Permission is hereby granted, free of charge, to any person obtaining a copy
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
84 of this software and associated documentation files (the "Software"), to deal
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
85 in the Software without restriction, including without limitation the rights
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
86 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
87 copies of the Software, and to permit persons to whom the Software is
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
88 furnished to do so, subject to the following conditions:
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
89
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
90 The above copyright notice and this permission notice shall be included in
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
91 all copies or substantial portions of the Software.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
92
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
93 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
94 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
95 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
96 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
97 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
98 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
99 THE SOFTWARE.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
100
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
101 NOTE: This is the licence for the Galaxy Wrapper only.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
102 samtools is available and licenced separately.