annotate tools/filters/seq_select_by_id.txt @ 2:28d52478ace9 draft

Uploaded v0.0.4 which adds a unit test.
author peterjc
date Mon, 15 Apr 2013 12:28:51 -0400
parents 50a8a6917a9c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
50a8a6917a9c Uploaded update (v0.0.3) to ignore blank lines in the ID file
peterjc
parents: 0
diff changeset
1 Galaxy tool to select FASTA, QUAL, FASTQ or SFF sequences by ID
50a8a6917a9c Uploaded update (v0.0.3) to ignore blank lines in the ID file
peterjc
parents: 0
diff changeset
2 ===============================================================
0
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
3
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
4 This tool is copyright 2011 by Peter Cock, The James Hutton Institute
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
5 (formerly SCRI, Scottish Crop Research Institute), UK. All rights reserved.
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
6 See the licence text below.
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
7
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
8 This tool is a short Python script (using Biopython library functions) to extract
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
9 sequences from a FASTA, QUAL, FASTQ, or SFF file based on the list of IDs given
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
10 by a column of a tabular file. The output order follows that of the tabular file,
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
11 and if there are duplicates in the tabular file, there will be duplicates in the
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
12 output sequence file.
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
13
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
14 See also the sister tool to filter sequence files according to IDs from column(s)
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
15 of a tabular file, where the output order follows the sequence file, and any
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
16 duplicate IDs are ignored.
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
17
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
18 There are just two files to install:
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
19
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
20 * seq_select_by_id.py (the Python script)
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
21 * seq_select_by_id.xml (the Galaxy tool definition)
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
22
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
23 The suggested location is in the Galaxy folder tools/filters next to the tool
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
24 for calling sff_extract.py for converting SFF to FASTQ or FASTA + QUAL.
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
25
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
26 You will also need to modify the tools_conf.xml file to tell Galaxy to offer the
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
27 tool. One suggested location is in the filters section. Simply add the line:
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
28
1
50a8a6917a9c Uploaded update (v0.0.3) to ignore blank lines in the ID file
peterjc
parents: 0
diff changeset
29 <tool file="filters/seq_select_by_id.xml" />
0
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
30
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
31 You will also need to install Biopython 1.54 or later. That's it.
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
32
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
33
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
34 History
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
35 =======
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
36
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
37 v0.0.1 - Initial version.
2
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
38 v0.0.3 - Ignore blank lines in input.
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
39 v0.0.4 - Record script version when run from Galaxy.
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
40 - Basic unit test included.
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
41
0
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
42
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
43 Developers
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
44 ==========
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
45
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
46 This script and related tools are being developed on the following hg branch:
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
47 http://bitbucket.org/peterjc/galaxy-central/src/tools
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
48
2
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
49 For making the "Galaxy Tool Shed" http://toolshed.g2.bx.psu.edu/ tarball use
0
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
50 the following command from the Galaxy root folder:
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
51
2
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
52 $ tar -czf seq_select_by_id.tar.gz tools/filters/seq_select_by_id.* test-data/k12_ten_proteins.fasta test-data/k12_hypothetical.fasta test-data/k12_hypothetical.tabular
0
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
53
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
54 Check this worked:
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
55
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
56 $ tar -tzf seq_select_by_id.tar.gz
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
57 filter/seq_select_by_id.py
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
58 filter/seq_select_by_id.txt
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
59 filter/seq_select_by_id.xml
2
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
60 test-data/k12_ten_proteins.fasta
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
61 test-data/k12_hypothetical.fasta
28d52478ace9 Uploaded v0.0.4 which adds a unit test.
peterjc
parents: 1
diff changeset
62 test-data/k12_hypothetical.tabular
0
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
63
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
64
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
65 Licence (MIT/BSD style)
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
66 =======================
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
67
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
68 Permission to use, copy, modify, and distribute this software and its
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
69 documentation with or without modifications and for any purpose and
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
70 without fee is hereby granted, provided that any copyright notices
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
71 appear in all copies and that both those copyright notices and this
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
72 permission notice appear in supporting documentation, and that the
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
73 names of the contributors or copyright holders not be used in
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
74 advertising or publicity pertaining to distribution of the software
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
75 without specific prior permission.
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
76
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
77 THE CONTRIBUTORS AND COPYRIGHT HOLDERS OF THIS SOFTWARE DISCLAIM ALL
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
78 WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
79 WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
80 CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
81 OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
82 OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
83 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
838b9bebfa3c Migrated tool version 0.0.1 from old tool shed archive to new tool shed repository
peterjc
parents:
diff changeset
84 OR PERFORMANCE OF THIS SOFTWARE.