comparison tools/primers/seq_primer_clip.txt @ 0:945053d79e60 draft

Uploaded v0.0.8, first public release
author peterjc
date Mon, 29 Apr 2013 06:11:00 -0400
parents
children 8c02a91a8680
comparison
equal deleted inserted replaced
-1:000000000000 0:945053d79e60
1 Galaxy tool to primer clip (trim) FASTA, FASTQ or SFF reads
2 ===========================================================
3
4 This tool is copyright 2011 by Peter Cock, The James Hutton Institute
5 (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved.
6 See the licence text below.
7
8 This tool is a short Python script (using the Galaxy library functions and
9 Biopython). There are just two files to install:
10
11 * seq_primer_clip.py (the Python script)
12 * seq_primer_clip.xml (the Galaxy tool definition)
13
14 The suggested location is a new tools/primers folder. You will also need to
15 modify the tools_conf.xml file to tell Galaxy to offer the tool and also do
16 this to tools_conf.xml.sample in order to run the tests:
17
18 <tool file="primers/seq_primer_clip.xml" />
19
20 There are optionally some example files required to run the functional tests,
21 put these in the test-data/primers folder.
22
23 test-data/primers/dop_primers.fasta
24 test-data/primers/MID4_GLZRM4E04_rnd30.fasta
25 test-data/primers/MID4_GLZRM4E04_rnd30.fastqsanger
26 test-data/primers/MID4_GLZRM4E04_rnd30.sff
27 test-data/primers/MID4_GLZRM4E04_rnd30_fclip.fasta
28 test-data/primers/MID4_GLZRM4E04_rnd30_fclip.fastqsanger
29 test-data/primers/MID4_GLZRM4E04_rnd30_fclip.sff
30
31 You should then be able to run the tests with:
32
33 sh run_functional_tests.sh -id seq_primer_clip
34
35 You will also need to install Biopython 1.54 or later. That's it.
36
37
38 History
39 =======
40
41 v0.0.1 - Initial version (not publicly released)
42 v0.0.2 - Sort primers by length (longest and therefore most specific first)
43 v0.0.3 - Consider missing bases at start/end of read as mismatches
44 v0.0.4 - Apply minimum length to sequences with no match too
45 v0.0.5 - Count clipped & non-matched short reads separately, length bug fixes
46 v0.0.6 - Added some functional tests
47 v0.0.7 - Added error check for bad filename arguments
48 v0.0.8 - Record version of Python script when run from Galaxy.
49 - Check for errors using Python script's return code.
50
51
52 Developers
53 ==========
54
55 This script and related tools are being developed on the following hg branch:
56 http://bitbucket.org/peterjc/galaxy-central/src/tools
57
58 This incorporates the previously used hg branch:
59 http://bitbucket.org/peterjc/galaxy-central/src/fasta_filter
60
61 For making the "Galaxy Tool Shed" http://toolshed.g2.bx.psu.edu/ tarball use
62 the following command from the Galaxy root folder:
63
64 $ tar -czf seq_primer_clip.tar.gz tools/primers/seq_primer_clip.* test-data/primers/*
65
66 Check this worked:
67
68 $ tar -tzf seq_primer_clip.tar.gz
69 tools/primers/seq_primer_clip.py
70 tools/primers/seq_primer_clip.txt
71 tools/primers/seq_primer_clip.xml
72 test-data/primers/dop_primers.fasta
73 test-data/primers/MID4_GLZRM4E04_rnd30.fasta
74 test-data/primers/MID4_GLZRM4E04_rnd30.fastqsanger
75 test-data/primers/MID4_GLZRM4E04_rnd30_fclip.fasta
76 test-data/primers/MID4_GLZRM4E04_rnd30_fclip.fastqsanger
77 test-data/primers/MID4_GLZRM4E04_rnd30_fclip.sff
78 test-data/primers/MID4_GLZRM4E04_rnd30_frclip.fasta
79 test-data/primers/MID4_GLZRM4E04_rnd30_frclip.fastqsanger
80 test-data/primers/MID4_GLZRM4E04_rnd30_frclip.sff
81 test-data/primers/MID4_GLZRM4E04_rnd30.sff
82
83
84 Licence (MIT/BSD style)
85 =======================
86
87 Permission to use, copy, modify, and distribute this software and its
88 documentation with or without modifications and for any purpose and
89 without fee is hereby granted, provided that any copyright notices
90 appear in all copies and that both those copyright notices and this
91 permission notice appear in supporting documentation, and that the
92 names of the contributors or copyright holders not be used in
93 advertising or publicity pertaining to distribution of the software
94 without specific prior permission.
95
96 THE CONTRIBUTORS AND COPYRIGHT HOLDERS OF THIS SOFTWARE DISCLAIM ALL
97 WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
98 WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE
99 CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT
100 OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
101 OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
102 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
103 OR PERFORMANCE OF THIS SOFTWARE.