annotate tools/seq_composition/README.rst @ 2:4283011f4be2 draft

v0.0.3 Internal Python style updates
author peterjc
date Wed, 01 Feb 2017 10:00:22 -0500
parents c0eb0e5792f3
children 7a26bb458806
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
1 Galaxy tool reporting sequence composition
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
2 ==========================================
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
3
2
4283011f4be2 v0.0.3 Internal Python style updates
peterjc
parents: 1
diff changeset
4 This tool is copyright 2014-2017 by Peter Cock, The James Hutton Institute
0
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
5 (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved.
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
6 See the licence text below (MIT licence).
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
7
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
8 This tool is a short Python script (using Biopython library functions) to
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
9 loop over given sequence files (in a range of formats including FASTA, FASTQ,
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
10 and SFF), and report the count of each letter (i.e. amino acids or bases).
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
11
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
12 This can be useful for sanity checking assemblies (e.g. proportion of N
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
13 bases) or looking at differences in base composition.
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
14
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
15 This tool is available from the Galaxy Tool Shed at:
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
16
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
17 * http://toolshed.g2.bx.psu.edu/view/peterjc/seq_composition
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
18
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
19
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
20 Automated Installation
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
21 ======================
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
22
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
23 This should be straightforward using the Galaxy Tool Shed, which should be
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
24 able to automatically install the dependency on Biopython, and then install
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
25 this tool and run its unit tests.
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
26
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
27
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
28 Manual Installation
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
29 ===================
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
30
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
31 There are just two files to install to use this tool from within Galaxy:
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
32
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
33 * ``seq_composition.py`` (the Python script)
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
34 * ``seq_composition.xml`` (the Galaxy tool definition)
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
35
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
36 The suggested location is in a dedicated ``tools/seq_composition`` folder.
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
37
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
38 You will also need to modify the ``tools_conf.xml`` file to tell Galaxy to offer the
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
39 tool. One suggested location is in the filters section. Simply add the line::
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
40
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
41 <tool file="seq_composition/seq_composition.xml" />
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
42
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
43 You will also need to install Biopython 1.62 or later.
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
44
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
45 If you wish to run the unit tests, also move/copy the ``test-data/`` files
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
46 under Galaxy's ``test-data/`` folder. Then::
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
47
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
48 ./run_tests.sh -id seq_composition
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
49
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
50 That's it.
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
51
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
52
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
53 History
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
54 =======
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
55
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
56 ======= ======================================================================
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
57 Version Changes
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
58 ------- ----------------------------------------------------------------------
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
59 v0.0.1 - Initial version.
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
60 - Tool definition now embeds citation information.
1
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
61 v0.0.2 - Reorder XML elements (internal change only).
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
62 - Planemo for Tool Shed upload (``.shed.yml``, internal change only).
2
4283011f4be2 v0.0.3 Internal Python style updates
peterjc
parents: 1
diff changeset
63 v0.0.3 - Python style updates (internal change only).
0
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
64 ======= ======================================================================
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
65
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
66
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
67 Developers
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
68 ==========
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
69
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
70 This script and related tools are being developed on this GitHub repository:
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
71 https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_composition
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
72
1
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
73
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
74 For pushing a release to the test or main "Galaxy Tool Shed", use the following
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
75 Planemo commands (which requires you have set your Tool Shed access details in
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
76 ``~/.planemo.yml`` and that you have access rights on the Tool Shed)::
0
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
77
2
4283011f4be2 v0.0.3 Internal Python style updates
peterjc
parents: 1
diff changeset
78 $ planemo shed_update -t testtoolshed --check_diff ~/repositories/pico_galaxy/tools/seq_composition/
1
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
79 ...
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
80
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
81 or::
0
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
82
2
4283011f4be2 v0.0.3 Internal Python style updates
peterjc
parents: 1
diff changeset
83 $ planemo shed_update -t toolshed --check_diff ~/repositories/pico_galaxy/tools/seq_composition/
1
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
84 ...
0
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
85
1
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
86 To just build and check the tar ball, use::
0
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
87
1
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
88 $ planemo shed_upload --tar_only ~/repositories/pico_galaxy/tools/seq_composition/
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
89 ...
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
90 $ tar -tzf shed_upload.tar.gz
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
91 test-data/MID4_GLZRM4E04_rnd30_frclip.sff
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
92 test-data/MID4_GLZRM4E04_rnd30_frclip.seq_composition.tabular
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
93 test-data/ecoli.fastq
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
94 test-data/ecoli.seq_composition.tabular
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
95 test-data/four_human_proteins.fasta
c0eb0e5792f3 v0.0.2; internal changes for packaging
peterjc
parents: 0
diff changeset
96 test-data/four_human_proteins.seq_composition.tabular
0
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
97 tools/seq_composition/README.rst
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
98 tools/seq_composition/seq_composition.py
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
99 tools/seq_composition/seq_composition.xml
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
100 tools/seq_composition/tool_dependencies.xml
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
101
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
102
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
103 Licence (MIT)
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
104 =============
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
105
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
106 Permission is hereby granted, free of charge, to any person obtaining a copy
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
107 of this software and associated documentation files (the "Software"), to deal
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
108 in the Software without restriction, including without limitation the rights
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
109 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
110 copies of the Software, and to permit persons to whom the Software is
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
111 furnished to do so, subject to the following conditions:
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
112
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
113 The above copyright notice and this permission notice shall be included in
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
114 all copies or substantial portions of the Software.
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
115
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
116 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
117 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
118 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
119 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
120 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
121 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
087a226e501e Uploaded v0.0.1 (with embedded citation)
peterjc
parents:
diff changeset
122 THE SOFTWARE.