annotate tools/fastx_toolkit/fasta_nucleotide_changer.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="cshl_fasta_nucleotides_changer" name="RNA/DNA" >
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>converter</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <requirements><requirement type="package">fastx_toolkit</requirement></requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <command>zcat -f '$input' | fasta_nucleotide_changer $mode -v -o $output</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param format="fasta" name="input" type="data" label="Library to convert" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <param name="mode" type="select" label="Convert">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="-d">RNA to DNA (U to T)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <option value="-r">DNA to RNA (T to U)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <!--
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 Functional tests with param value starting with - fail.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="input" value="fasta_nuc_changer1.fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <param name="mode" value="-r" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <output name="output" file="fasta_nuc_change1.out" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <param name="input" value="fasta_nuc_changer2.fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <param name="mode" value="-d" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <output name="output" file="fasta_nuc_change2.out" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <data format="input" name="output" metadata_source="input" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 This tool converts RNA FASTA files to DNA (and vice-versa).
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 In **RNA-to-DNA** mode, U's are changed into T's.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 In **DNA-to-RNA** mode, T's are changed into U's.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 --------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 Input RNA FASTA file ( from Sanger's mirBase )::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 >cel-let-7 MIMAT0000001 Caenorhabditis elegans let-7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 UGAGGUAGUAGGUUGUAUAGUU
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 >cel-lin-4 MIMAT0000002 Caenorhabditis elegans lin-4
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 UCCCUGAGACCUCAAGUGUGA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 >cel-miR-1 MIMAT0000003 Caenorhabditis elegans miR-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 UGGAAUGUAAAGAAGUAUGUA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 Output DNA FASTA file (with RNA-to-DNA mode)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 >cel-let-7 MIMAT0000001 Caenorhabditis elegans let-7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 TGAGGTAGTAGGTTGTATAGTT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 >cel-lin-4 MIMAT0000002 Caenorhabditis elegans lin-4
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 TCCCTGAGACCTCAAGTGTGA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 >cel-miR-1 MIMAT0000003 Caenorhabditis elegans miR-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 TGGAATGTAAAGAAGTATGTA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 </tool>