Mercurial > repos > iuc > seqtk
annotate seqtk_subseq.xml @ 8:3da72230c066 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 690c73637e3b8be3a52fe3afc8ba6436c4bab46f"
author | iuc |
---|---|
date | Thu, 14 Oct 2021 09:22:39 +0000 |
parents | a09586d5149a |
children | 4b494533146a |
rev | line source |
---|---|
0 | 1 <?xml version="1.0"?> |
5
a09586d5149a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 83ecfe7d9bbf03c91f27ba18776352a1ebf8cf6f
iuc
parents:
4
diff
changeset
|
2 <tool id="seqtk_subseq" name="seqtk_subseq" version="@TOOL_VERSION@.1"> |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
3 <description>extract subsequences from FASTA/Q files</description> |
8
3da72230c066
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 690c73637e3b8be3a52fe3afc8ba6436c4bab46f"
iuc
parents:
5
diff
changeset
|
4 <expand macro="bio_tools"/> |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
5 <macros> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
6 <import>macros.xml</import> |
5
a09586d5149a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 83ecfe7d9bbf03c91f27ba18776352a1ebf8cf6f
iuc
parents:
4
diff
changeset
|
7 <requirement type="package" version="@AWK_VERSION@">gawk</requirement> |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
8 </macros> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
9 <expand macro="requirements"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
10 <expand macro="stdio"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
11 <command><![CDATA[ |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
12 seqtk subseq |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
13 $t |
0 | 14 -l $l |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
15 '$in_file' |
0 | 16 #if $source.type == 'bed': |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
17 '$in_bed' |
0 | 18 #else |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
19 '$name_list' |
0 | 20 #end if |
21 #if $t == '-t': | |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
22 | awk 'BEGIN{print "chr\tunknown\tseq"}1' |
0 | 23 #end if |
4
ecf1c30da3a2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents:
3
diff
changeset
|
24 @CONDITIONAL_GZIP_OUT@ |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
25 ]]></command> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
26 <inputs> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
27 <expand macro="in_faq"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
28 <conditional name="source"> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
29 <param name="type" type="select" label="Select source of sequence choices"> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
30 <option value="bed">BED</option> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
31 <option value="name">FASTA/Q ID list</option> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
32 </param> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
33 <when value="bed"> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
34 <param name="in_bed" type="data" format="bed" label="Input BED file"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
35 </when> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
36 <when value="name"> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
37 <param name="name_list" type="data" format="txt" label="Input ID list"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
38 </when> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
39 </conditional> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
40 <param argument="-t" type="boolean" truevalue="-t" falsevalue="" label="TAB delimited output" /> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
41 <param argument="-l" type="integer" value="0" label="Sequence line length" /> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
42 </inputs> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
43 <outputs> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
44 <data name="default" format_source="in_file" label="Selected sequences from $in_file.name"> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
45 <change_format> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
46 <when input="t" value="-t" format="tabular"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
47 </change_format> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
48 </data> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
49 </outputs> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
50 <tests> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
51 <test> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
52 <param name="in_file" value="seqtk_subseq.fa"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
53 <param name="type" value="name"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
54 <param name="t" value="False" /> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
55 <param name="name_list" value="seqtk_subseq_list.txt"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
56 <output name="default" file="seqtk_subseq.out" ftype="fasta"/> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
57 </test> |
4
ecf1c30da3a2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents:
3
diff
changeset
|
58 <test> |
ecf1c30da3a2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents:
3
diff
changeset
|
59 <param name="in_file" value="seqtk_subseq.fa.gz" ftype="fasta.gz"/> |
ecf1c30da3a2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents:
3
diff
changeset
|
60 <param name="type" value="name"/> |
ecf1c30da3a2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents:
3
diff
changeset
|
61 <param name="t" value="False" /> |
ecf1c30da3a2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents:
3
diff
changeset
|
62 <param name="name_list" value="seqtk_subseq_list.txt"/> |
ecf1c30da3a2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents:
3
diff
changeset
|
63 <output name="default" file="seqtk_subseq.out.gz" ftype="fasta.gz"/> |
ecf1c30da3a2
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents:
3
diff
changeset
|
64 </test> |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
65 </tests> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
66 <help><![CDATA[ |
0 | 67 **What it does** |
68 | |
69 Given a list of newline separated IDs from a fasta file, this will extract those named fasta sequences from the input file. | |
70 | |
71 :: | |
72 | |
73 # Input ID list | |
74 seq1 | |
75 | |
76 # Input fasta | |
77 >seq1 | |
78 ACGTMRWSYK | |
79 >seq2 | |
80 RWSYKACGTM | |
81 | |
82 results in | |
83 | |
84 :: | |
85 | |
86 # Output result | |
87 >seq1 | |
88 ACGTMRWSYK | |
89 | |
90 @ATTRIBUTION@ | |
3
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
91 ]]></help> |
bc7d99f46a5d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents:
2
diff
changeset
|
92 <expand macro="citation" /> |
0 | 93 </tool> |