annotate seqtk_subseq.xml @ 6:288f7f69fe25 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
author iuc
date Fri, 06 Sep 2019 09:10:07 -0400
parents a09586d5149a
children 3da72230c066
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
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>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
4 <macros>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
5 <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
6 <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
7 </macros>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
8 <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
9 <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
10 <command><![CDATA[
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
11 seqtk subseq
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
12 $t
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
13 -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
14 '$in_file'
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
15 #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
16 '$in_bed'
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
17 #else
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
18 '$name_list'
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
19 #end if
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
20 #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
21 | awk 'BEGIN{print "chr\tunknown\tseq"}1'
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
22 #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
23 @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
24 ]]></command>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
25 <inputs>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
26 <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
27 <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
28 <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
29 <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
30 <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
31 </param>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
32 <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
33 <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
34 </when>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
35 <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
36 <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
37 </when>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
38 </conditional>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
39 <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
40 <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
41 </inputs>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
42 <outputs>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
43 <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
44 <change_format>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
45 <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
46 </change_format>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
47 </data>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
48 </outputs>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
49 <tests>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
50 <test>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
51 <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
52 <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
53 <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
54 <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
55 <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
56 </test>
4
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
57 <test>
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
58 <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
59 <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
60 <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
61 <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
62 <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
63 </test>
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
64 </tests>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
65 <help><![CDATA[
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
66 **What it does**
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
67
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
68 Given a list of newline separated IDs from a fasta file, this will extract those named fasta sequences from the input file.
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
69
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
70 ::
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
71
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
72 # Input ID list
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
73 seq1
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
74
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
75 # Input fasta
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
76 >seq1
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
77 ACGTMRWSYK
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
78 >seq2
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
79 RWSYKACGTM
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
80
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
81 results in
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
82
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
83 ::
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
84
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
85 # Output result
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
86 >seq1
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
87 ACGTMRWSYK
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
88
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
89 @ATTRIBUTION@
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
90 ]]></help>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
91 <expand macro="citation" />
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
92 </tool>