annotate seqtk_subseq.xml @ 0:e0a0fd938de4 draft

Uploaded
author iuc
date Thu, 05 Feb 2015 11:52:40 -0500
parents
children f73729b62b51
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"?>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
2 <tool id="seqtk_subseq" name="seqtk_subseq" version="@WRAPPER_VERSION@.0">
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
3 <description>extract subsequences from FASTA/Q files</description>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
4 <macros>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
5 <import>macros.xml</import>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
6 </macros>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
8 <expand macro="stdio"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
9 <command><![CDATA[seqtk subseq $t
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
10 -l $l
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
11 $in_file
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
12
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
13 #if $source.type == 'bed':
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
14 $in_bed
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
15 #else
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
16 $name_list
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
17 #end if
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
18
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
19 #if $t == '-t':
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
20 | awk 'BEGIN{print "chr\tunknown\tseq"}1'
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
21 #end if
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
22
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
23 > $default]]></command>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
24 <inputs>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
25 <param name="in_file" type="data" format="fasta,fastq" label="Input fasta/q file"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
26 <conditional name="source">
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
27 <param name="type" type="select" label="Select source of sequence choices">
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
28 <option value="bed">BED</option>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
29 <option value="name">FASTA/Q ID list</option>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
30 </param>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
31 <when value="bed">
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
32 <param name="in_bed" type="data" format="bed" label="Input BED file"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
33 </when>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
34 <when value="name">
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
35 <param name="name_list" type="data" format="txt" label="Input fasta file"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
36 </when>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
37 </conditional>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
38 <param label="TAB delimited output" help="(-t)" name="t" type="boolean" falsevalue="" truevalue="-t"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
39 <param label="sequence line length" help="(-l)" name="l" type="integer" value="0"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
40 </inputs>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
41 <outputs>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
42 <data format_source="in_file" hidden="false" name="default" label="Selected sequences from $in_file.name">
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
43 <change_format>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
44 <when input="t" value="-t" format="tabular"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
45 </change_format>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
46 </data>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
47 </outputs>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
48 <tests>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
49 <test>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
50 <param name="in_file" value="seqtk_subseq.fa"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
51 <param name="type" value="name"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
52 <param name="t" value="False" />
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
53 <param name="name_list" value="seqtk_subseq_list.txt"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
54 <output name="default" file="seqtk_subseq.out" ftype="fasta"/>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
55 </test>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
56 </tests>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
57 <help><![CDATA[
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
58 **What it does**
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
59
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
60 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
61
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
62 ::
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
63
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
64 # Input ID list
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
65 seq1
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
66
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
67 # Input fasta
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
68 >seq1
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
69 ACGTMRWSYK
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
70 >seq2
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
71 RWSYKACGTM
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
72
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
73 results in
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
74
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
75 ::
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
76
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
77 # Output result
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
78 >seq1
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
79 ACGTMRWSYK
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
80
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
81 @ATTRIBUTION@
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
82 ]]></help>
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
83 </tool>