annotate tools/samtools_depad/README.rst @ 2:02572789ef6c draft

v0.0.4 Internal changes to command line handling
author peterjc
date Tue, 16 May 2017 09:29:05 -0400
parents 01f8967ce1e0
children 588c6ce25867
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
2
02572789ef6c v0.0.4 Internal changes to command line handling
peterjc
parents: 1
diff changeset
4 This wrapper is copyright 2014-2017 by Peter Cock, The James Hutton Institute
0
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:
2
02572789ef6c v0.0.4 Internal changes to command line handling
peterjc
parents: 1
diff changeset
11 http://toolshed.g2.bx.psu.edu/view/peterjc/samtools_depad
0
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
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
24 This expects samtools to be on the ``$PATH``, and was tested using v0.1.19.
0
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
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
38 If you wish to run the unit tests, also move/copy the ``test-data/`` files
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
39 under Galaxy's ``test-data/`` folder. Then::
0
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
40
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
41 $ ./run_tests.sh -id samtools_depad
0
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 ------- ----------------------------------------------------------------------
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
52 v0.0.1 - Initial public release.
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
53 v0.0.2 - Embed samtools citation in the tool XML.
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
54 - Removed unused imports from Python wrapper script.
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
55 v0.0.3 - Reorder XML elements (internal change only).
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
56 - Planemo for Tool Shed upload (``.shed.yml``, internal change only).
2
02572789ef6c v0.0.4 Internal changes to command line handling
peterjc
parents: 1
diff changeset
57 v0.0.4 - Use ``<command detect_errors="aggressive">`` (internal change only).
02572789ef6c v0.0.4 Internal changes to command line handling
peterjc
parents: 1
diff changeset
58 - Single quote command line arguments (internal change only).
0
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
59 ======= ======================================================================
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
60
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 Developers
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
63 ==========
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 Development is on this GitHub repository:
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
66 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
67
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
68 For pushing a release to the test or main "Galaxy Tool Shed", use the following
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
69 Planemo commands (which requires you have set your Tool Shed access details in
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
70 ``~/.planemo.yml`` and that you have access rights on the Tool Shed)::
0
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
71
2
02572789ef6c v0.0.4 Internal changes to command line handling
peterjc
parents: 1
diff changeset
72 $ planemo shed_update -t testtoolshed --check_diff tools/samtools_depad/
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
73 ...
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
74
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
75 or::
0
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
76
2
02572789ef6c v0.0.4 Internal changes to command line handling
peterjc
parents: 1
diff changeset
77 $ planemo shed_update -t toolshed --check_diff tools/samtools_depad/
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
78 ...
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
79
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
80 To just build and check the tar ball, use::
0
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
81
2
02572789ef6c v0.0.4 Internal changes to command line handling
peterjc
parents: 1
diff changeset
82 $ planemo shed_upload --tar_only tools/samtools_depad/
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
83 ...
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
84 $ tar -tzf shed_upload.tar.gz
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
85 test-data/sam_spec_padded.bam
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
86 test-data/sam_spec_padded.depad.bam
0
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
87 test-data/sam_spec_padded.fasta
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
88 test-data/sam_spec_padded.sam
1
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
89 tools/samtools_depad/README.rst
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
90 tools/samtools_depad/samtools_depad.py
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
91 tools/samtools_depad/samtools_depad.xml
01f8967ce1e0 v0.0.3; internal changes to help packaging with planemo
peterjc
parents: 0
diff changeset
92 tools/samtools_depad/tool_dependencies.xml
0
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
93
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
94
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
95 Licence (MIT)
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
96 =============
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
97
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
98 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
99 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
100 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
101 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
102 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
103 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
104
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
105 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
106 all copies or substantial portions of the Software.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
107
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
108 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
109 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
110 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
111 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
112 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
113 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
114 THE SOFTWARE.
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
115
2d303f2e09e0 Uploaded v0.0.1, previously only on the Test Tool Shed
peterjc
parents:
diff changeset
116 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
117 samtools is available and licenced separately.