Mercurial > repos > petr-novak > re_utils
annotate fasta_affixer.xml @ 23:36c418bca8b2 draft
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
author | petr-novak |
---|---|
date | Wed, 02 Aug 2023 11:50:25 +0000 |
parents | 58807b35777a |
children | cab41d23e2a3 |
rev | line source |
---|---|
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
1 <tool id="fasta_affixer" name="FASTA read name affixer" version="1.0.0.3"> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
2 <description>Appending suffix and prefix to the read names</description> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
3 <required_files> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
4 <include type="literal" path="fasta_affixer.py"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
5 </required_files> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
6 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
7 <command> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
8 python '$__tool_directory__'/fasta_affixer.py -f $input -p "$prefix" -s "$suffix" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
9 -n $nspace -o $output |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
10 </command> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
11 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
12 <inputs> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
13 <param format="fasta" type="data" name="input" label="Choose your FASTA file"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
14 <param name="prefix" type="text" size="10" value="" label="Prefix" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
15 help="Enter prefix which will be added to all read names"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
16 <param name="suffix" type="text" size="10" value="" label="Suffix" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
17 help="Enter suffix which will be added to all read names"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
18 <param name="nspace" type="integer" size="10" value="0" min="0" max="1000" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
19 label="Number of spaces in the name to ignore" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
20 help="By default, a string before the first space is considered to be the read name, and all characters following the space are discarded. If you want to keep the information following the space(s) in the name, enter positive integer."/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
21 </inputs> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
22 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
23 <outputs> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
24 <data format="fasta" name="output" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
25 label="FASTA dataset ${input.hid} with modified sequence names"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
26 </outputs> |
0 | 27 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
28 <tests> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
29 <test> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
30 <param name="input" value="single_output.fasta"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
31 <param name="prefix" value="TEST"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
32 <param name="suffux" value="OK"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
33 <param name="nspace" value="0"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
34 <output name="output" value="prefix_suffix.fasta"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
35 </test> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
36 </tests> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
37 <help> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
38 **What is does** |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
39 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
40 Tool for appending prefix and suffix to sequences names in fasta formated |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
41 sequences. This tool is useful |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
42 if you want to do comparative analysis with RepeatExplorer and need to |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
43 append sample codes to sequence identifiers |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
44 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
45 **Example** |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
46 The following fasta file: |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
47 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
48 :: |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
49 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
50 >123454 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
51 acgtactgactagccatgacg |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
52 >234235 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
53 acgtactgactagccatgacg |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
54 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
55 is renamed to: |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
56 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
57 :: |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
58 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
59 >prefix123454suffix |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
60 acgtactgactagccatgacg |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
61 >prefix234235suffix |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
62 acgtactgactagccatgacg |
0 | 63 |
64 | |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
65 By default, anything after spaces is |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
66 excluded from sequences name. In example sequence: |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
67 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
68 :: |
0 | 69 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
70 >SRR352150.23846180 HWUSI-EAS1786:7:119:15910:19280/1 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
71 CTGGATTCTATACCTTTGGCAACTACTTCTTGGTTGATCAGGAAATTAACACTAGTAGTTTAGGCAATTTGGAATGGTGCCAAAGATGTATAGAACTTTC |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
72 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIGIIIHIIIIIFIIIIIIHDHBBIHFIHIIBHHDDHIFHIHIIIHIHGGDFDEI@EGEGFGFEFB@ECG |
0 | 73 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
74 when **Number of spaces in name to ignore** is set to 0 (default) the output will |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
75 be: |
0 | 76 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
77 :: |
0 | 78 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
79 >prefixSRR352150.23846180suffix |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
80 CTGGATTCTATACCTTTGGCAACTACTTCTTGGTTGATCAGGAAATTAACACTAGTAGTTTAGGCAATTTGGAATGGTGCCAAAGATGTATAGAACTTTC |
0 | 81 |
82 | |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
83 If you want to keep spaces the setting **Number of spaces in name to ignore** to 1 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
84 will yield |
0 | 85 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
86 :: |
0 | 87 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
88 >prefixSRR352150.23846180 HWUSI-EAS1786:7:119:15910:19280/1suffix |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
89 CTGGATTCTATACCTTTGGCAACTACTTCTTGGTTGATCAGGAAATTAACACTAGTAGTTTAGGCAATTTGGAATGGTGCCAAAGATGTATAGAACTTTC |
0 | 90 |
91 | |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
9
diff
changeset
|
92 </help> |
0 | 93 </tool> |