Mercurial > repos > peterjc > seq_rename
comparison tools/seq_rename/README.rst @ 3:e1398f2ba9fe draft default tip
v0.0.8 galaxy_sequence_utils dependency etc
author | peterjc |
---|---|
date | Thu, 02 Feb 2017 11:49:03 -0500 |
parents | 7c0642fc57ad |
children |
comparison
equal
deleted
inserted
replaced
2:7c0642fc57ad | 3:e1398f2ba9fe |
---|---|
1 Galaxy tool to rename FASTA, QUAL, FASTQ or SFF sequences | 1 Galaxy tool to rename FASTA, QUAL, FASTQ or SFF sequences |
2 ========================================================= | 2 ========================================================= |
3 | 3 |
4 This tool is copyright 2011-2013 by Peter Cock, The James Hutton Institute | 4 This tool is copyright 2011-2017 by Peter Cock, The James Hutton Institute |
5 (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved. | 5 (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved. |
6 See the licence text below. | 6 See the licence text below. |
7 | 7 |
8 This tool is a short Python script (using Biopython library functions) to rename | 8 This tool is a short Python script (using Biopython library functions) to rename |
9 sequences from a FASTA, QUAL, FASTQ, or SFF file based on an ID mapping gives as | 9 sequences from a FASTA, QUAL, FASTQ, or SFF file based on an ID mapping gives as |
33 Manual Installation | 33 Manual Installation |
34 =================== | 34 =================== |
35 | 35 |
36 There are just two files to install to use this tool from within Galaxy: | 36 There are just two files to install to use this tool from within Galaxy: |
37 | 37 |
38 * seq_rename.py (the Python script) | 38 * ``seq_rename.py`` (the Python script) |
39 * seq_rename.xml (the Galaxy tool definition) | 39 * ``seq_rename.xml`` (the Galaxy tool definition) |
40 | 40 |
41 The suggested location is in a dedicated tools/seq_rename folder. | 41 The suggested location is in a dedicated ``tools/seq_rename`` folder. |
42 | 42 |
43 You will also need to modify the tools_conf.xml file to tell Galaxy to offer the | 43 You will also need to modify the ``tools_conf.xml`` file to tell Galaxy to offer the |
44 tool. One suggested location is in the filters section. Simply add the line:: | 44 tool. One suggested location is in the filters section. Simply add the line:: |
45 | 45 |
46 <tool file="seq_rename/seq_rename.xml" /> | 46 <tool file="seq_rename/seq_rename.xml" /> |
47 | 47 |
48 If you wish to run the unit tests, also add this to tools_conf.xml.sample | 48 If you wish to run the unit tests, also move/copy the ``test-data/`` files |
49 and move/copy the test-data files under Galaxy's test-data folder. Then:: | 49 under Galaxy's ``test-data/`` folder. Then:: |
50 | 50 |
51 $ ./run_functional_tests.sh -id seq_rename | 51 $ ./run_tests.sh -id seq_rename |
52 | 52 |
53 You will also need to install Biopython 1.54 or later. That's it. | 53 You will also need to install Biopython 1.54 or later. That's it. |
54 | 54 |
55 | 55 |
56 History | 56 History |
68 - Use reStructuredText for this README file. | 68 - Use reStructuredText for this README file. |
69 - Adopt standard MIT License. | 69 - Adopt standard MIT License. |
70 - Updated citation information (Cock et al. 2013). | 70 - Updated citation information (Cock et al. 2013). |
71 - Development moved to GitHub, https://github.com/peterjc/pico_galaxy | 71 - Development moved to GitHub, https://github.com/peterjc/pico_galaxy |
72 - Renamed folder and adopted README.rst naming. | 72 - Renamed folder and adopted README.rst naming. |
73 v0.0.5 - Correct automated dependency definition. | |
74 v0.0.6 - Simplified XML to apply input format to output data. | |
75 - Tool definition now embeds citation information. | |
76 - If white space is found in the requested tabular field then only | |
77 the first word is used as the identifier (with a warning to stderr). | |
78 v0.0.7 - Use the ``format_source=...`` tag. | |
79 - Reorder XML elements (internal change only). | |
80 - Planemo for Tool Shed upload (``.shed.yml``, internal change only). | |
81 - Capture the tool version via Galaxy (bug fix). | |
82 v0.0.8 - Updated to point at Biopython 1.67 (latest version in Tool Shed). | |
83 - Explicit dependency on ``galaxy_sequence_utils``. | |
84 - Python style updates (internal change only). | |
73 ======= ====================================================================== | 85 ======= ====================================================================== |
74 | 86 |
75 | 87 |
76 Developers | 88 Developers |
77 ========== | 89 ========== |
80 http://bitbucket.org/peterjc/galaxy-central/src/tools | 92 http://bitbucket.org/peterjc/galaxy-central/src/tools |
81 | 93 |
82 Development has now moved to a dedicated GitHub repository: | 94 Development has now moved to a dedicated GitHub repository: |
83 https://github.com/peterjc/pico_galaxy/tree/master/tools | 95 https://github.com/peterjc/pico_galaxy/tree/master/tools |
84 | 96 |
85 For making the "Galaxy Tool Shed" http://toolshed.g2.bx.psu.edu/ tarball use | 97 For pushing a release to the test or main "Galaxy Tool Shed", use the following |
86 the following command from the Galaxy root folder:: | 98 Planemo commands (which requires you have set your Tool Shed access details in |
99 ``~/.planemo.yml`` and that you have access rights on the Tool Shed):: | |
87 | 100 |
88 $ tar -czf seq_rename.tar.gz tools/seq_rename/README.rst tools/seq_rename/seq_rename.* tools/seq_rename/repository_dependencies.xml test-data/four_human_proteins.fasta test-data/four_human_proteins.rename.tabular test-data/four_human_proteins.rename.fasta | 101 $ planemo shed_update -t testtoolshed --check_diff ~/repositories/pico_galaxy/tools/seq_rename/ |
102 ... | |
89 | 103 |
90 Check this worked:: | 104 or:: |
91 | 105 |
92 $ tar -tzf seq_rename.tar.gz | 106 $ planemo shed_update -t toolshed --check_diff ~/repositories/pico_galaxy/tools/seq_rename/ |
107 ... | |
108 | |
109 To just build and check the tar ball, use:: | |
110 | |
111 $ planemo shed_upload --tar_only ~/repositories/pico_galaxy/tools/seq_rename/ | |
112 ... | |
113 $ tar -tzf shed_upload.tar.gz | |
114 test-data/four_human_proteins.fasta | |
115 test-data/four_human_proteins.rename.fasta | |
116 test-data/four_human_proteins.rename.tabular | |
93 tools/seq_rename/README.rst | 117 tools/seq_rename/README.rst |
94 tools/seq_rename/seq_rename.py | 118 tools/seq_rename/seq_rename.py |
95 tools/seq_rename/seq_rename.xml | 119 tools/seq_rename/seq_rename.xml |
96 tools/seq_rename/repository_dependencies.xml | 120 tools/seq_rename/tool_dependencies.xml |
97 test-data/four_human_proteins.fasta | |
98 test-data/four_human_proteins.rename.tabular | |
99 test-data/four_human_proteins.rename.fasta | |
100 | 121 |
101 | 122 |
102 Licence (MIT) | 123 Licence (MIT) |
103 ============= | 124 ============= |
104 | 125 |