annotate tools/seq_select_by_id/seq_select_by_id.xml @ 7:a5602454b0ad draft

v0.0.12 Depends on Biopython 1.67 via legacy Tool Shed package or bioconda; Python 3 compatible print function
author peterjc
date Thu, 11 May 2017 06:26:05 -0400
parents 91f55ee8fea5
children 8e1a90917fa7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
a5602454b0ad v0.0.12 Depends on Biopython 1.67 via legacy Tool Shed package or bioconda; Python 3 compatible print function
peterjc
parents: 6
diff changeset
1 <tool id="seq_select_by_id" name="Select sequences by ID" version="0.0.12">
4
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
2 <description>from a tabular file</description>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
3 <requirements>
7
a5602454b0ad v0.0.12 Depends on Biopython 1.67 via legacy Tool Shed package or bioconda; Python 3 compatible print function
peterjc
parents: 6
diff changeset
4 <requirement type="package" version="1.67">biopython</requirement>
4
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
5 </requirements>
7
a5602454b0ad v0.0.12 Depends on Biopython 1.67 via legacy Tool Shed package or bioconda; Python 3 compatible print function
peterjc
parents: 6
diff changeset
6 <version_command>
a5602454b0ad v0.0.12 Depends on Biopython 1.67 via legacy Tool Shed package or bioconda; Python 3 compatible print function
peterjc
parents: 6
diff changeset
7 python $__tool_directory__/seq_select_by_id.py --version
a5602454b0ad v0.0.12 Depends on Biopython 1.67 via legacy Tool Shed package or bioconda; Python 3 compatible print function
peterjc
parents: 6
diff changeset
8 </version_command>
a5602454b0ad v0.0.12 Depends on Biopython 1.67 via legacy Tool Shed package or bioconda; Python 3 compatible print function
peterjc
parents: 6
diff changeset
9 <command detect_errors="aggressive">
a5602454b0ad v0.0.12 Depends on Biopython 1.67 via legacy Tool Shed package or bioconda; Python 3 compatible print function
peterjc
parents: 6
diff changeset
10 python $__tool_directory__/seq_select_by_id.py '$input_tabular' '$column' '$input_file' '$input_file.ext' '$output_file'
6
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
11 </command>
4
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
12 <inputs>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
13 <param name="input_file" type="data" format="fasta,qual,fastq,sff" label="Sequence file to select from" help="FASTA, QUAL, FASTQ, or SFF format." />
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
14 <param name="input_tabular" type="data" format="tabular" label="Tabular file containing sequence identifiers"/>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
15 <param name="column" type="data_column" data_ref="input_tabular" multiple="False" numerical="False" label="Column containing sequence identifiers"/>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
16 </inputs>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
17 <outputs>
6
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
18 <data name="output_file" format_source="input_file" metadata_source="input_file" label="Selected sequences from $input_file.name"/>
4
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
19 </outputs>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
20 <tests>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
21 <test>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
22 <param name="input_file" value="k12_ten_proteins.fasta" ftype="fasta" />
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
23 <param name="input_tabular" value="k12_hypothetical.tabular" ftype="tabular" />
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
24 <param name="column" value="1" />
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
25 <output name="output_file" file="k12_hypothetical.fasta" ftype="fasta" />
6
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
26 <assert_stdout>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
27 <has_line line="Indexed 10 sequences" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
28 <has_line line="Selected 1 sequences by ID" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
29 </assert_stdout>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
30 </test>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
31 <!-- this version has white space in the identifier column (id and description) -->
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
32 <test>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
33 <param name="input_file" value="k12_ten_proteins.fasta" ftype="fasta" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
34 <param name="input_tabular" value="k12_hypothetical_alt.tabular" ftype="tabular" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
35 <param name="column" value="1" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
36 <output name="output_file" file="k12_hypothetical.fasta" ftype="fasta" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
37 <assert_stdout>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
38 <has_line line="Indexed 10 sequences" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
39 <has_line line="Selected 1 sequences by ID" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
40 </assert_stdout>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
41 <assert_stderr>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
42 <has_line line="WARNING: Some of your identifiers had white space in them, using first word only. e.g.:" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
43 </assert_stderr>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
44 </test>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
45 <test expect_failure="true" expect_exit_code="1">
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
46 <param name="input_file" value="empty.fasta" ftype="fasta" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
47 <param name="input_tabular" value="k12_hypothetical.tabular" ftype="tabular" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
48 <param name="column" value="1" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
49 <assert_stdout>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
50 <has_line line="Indexed 0 sequences" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
51 </assert_stdout>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
52 <assert_stderr>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
53 <has_line line="Identifier 'gi|16127999|ref|NP_414546.1|' not found in sequence file" />
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
54 </assert_stderr>
4
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
55 </test>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
56 </tests>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
57 <help>
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
58 **What it does**
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
59
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
60 Takes a FASTA, QUAL, FASTQ or Standard Flowgram Format (SFF) file and produces a
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
61 new sequence file (of the same format) containing only the records with identifiers
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
62 in the tabular file (in the order from the tabular file).
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
63
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
64 WARNING: If you have any duplicates in the tabular file identifiers, you will get
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
65 duplicate sequences in the output.
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
66
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
67 **References**
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
68
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
69 If you use this Galaxy tool in work leading to a scientific publication please
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
70 cite the following papers:
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
71
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
72 Peter J.A. Cock, Björn A. Grüning, Konrad Paszkiewicz and Leighton Pritchard (2013).
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
73 Galaxy tools and workflows for sequence analysis with applications
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
74 in molecular plant pathology. PeerJ 1:e167
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
75 http://dx.doi.org/10.7717/peerj.167
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
76
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
77 This tool uses Biopython to read, write and index sequence files, so you may
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
78 also wish to cite the Biopython application note (and Galaxy too of course):
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
79
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
80 Cock et al (2009). Biopython: freely available Python tools for computational
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
81 molecular biology and bioinformatics. Bioinformatics 25(11) 1422-3.
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
82 http://dx.doi.org/10.1093/bioinformatics/btp163 pmid:19304878.
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
83
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
84 This tool is available to install into other Galaxy Instances via the Galaxy
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
85 Tool Shed at http://toolshed.g2.bx.psu.edu/view/peterjc/seq_select_by_id
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
86 </help>
6
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
87 <citations>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
88 <citation type="doi">10.7717/peerj.167</citation>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
89 <citation type="doi">10.1093/bioinformatics/btp163</citation>
91f55ee8fea5 v0.0.11; more tests and assorting minor changes
peterjc
parents: 4
diff changeset
90 </citations>
4
6842c0c7bc70 Uploaded v0.0.7, depend on Biopython 1.62, tabs to spaces in XML
peterjc
parents:
diff changeset
91 </tool>