annotate fastq_name_affixer.xml @ 34:91996b991991 draft default tip

Uploaded
author petr-novak
date Fri, 16 Feb 2024 15:22:21 +0000
parents 628b235d76c7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
cab41d23e2a3 planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 23
diff changeset
1 <tool id="names_affixer" name="FASTQ Read name affixer" version="1.0.0.4">
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
2 <description>Tool appending suffix and prefix to sequences names</description>
30
cab41d23e2a3 planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 23
diff changeset
3 <requirements>
cab41d23e2a3 planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 23
diff changeset
4 <requirement type="package" version="3">python</requirement>
cab41d23e2a3 planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 23
diff changeset
5 </requirements>
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
6 <required_files>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
7 <include type="literal" path="name_affixer.py"/>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
8 </required_files>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
9 <command>
32
628b235d76c7 planemo upload commit 39094a128ea3dd2c39f4997c6de739c33c07e5f3-dirty
petr-novak
parents: 30
diff changeset
10 python ${__tool_directory__}/name_affixer.py -f $input -p "$prefix" -s "$suffix" -n
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
11 $nspace > $output
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
12 </command>
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
13
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
14 <inputs>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
15 <param format="fastq" type="data" name="input" label="Choose your FASTQ file"/>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
16 <param name="prefix" type="text" size="10" value="" label="Prefix"
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
17 help="Enter prefix which will be added to all sequences names"/>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
18 <param name="suffix" type="text" size="10" value="" label="Suffix"
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
19 help="Enter suffix which will be added to all sequences names"/>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
20 <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
21 label="Number of spaces in sequence name to ignore"
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
22 help="Sequence name is a string before the first space. If you want name to include spaces in name, enter positive integer. All other characters beyond ignored spaces are omitted"/>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
23 </inputs>
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
24
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
25
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
26 <outputs>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
27 <data format="fastq" name="output"
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
28 label="FASTQ dataset ${input.hid} with modified sequence names"/>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
29 </outputs>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
30
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
31 <help>
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
32 **What is does**
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
33
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
34 Tool for appending prefix and suffix to sequences names in fastq formated
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
35 sequences.
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
36
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
37 **Example**
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
38
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
39 The following Solexa-FASTQ file:
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
40
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
41 ::
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
42
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
43 @CSHL_4_FC042GAMMII_2_1_517_596
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
44 GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
45 +CSHL_4_FC042GAMMII_2_1_517_596
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
46 40 40 40 40 40 40 40 40 40 40 38 40 40 40 40 40 14 40 40 40 40 40 36 40 13 14 24
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
47 24 9 24 9 40 10 10 15 40
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 is renamed to:
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
50
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
51 ::
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
52
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
53 @prefixCSHL_4_FC042GAMMII_2_1_517_596suffix
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
54 GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
55 +prefixCSHL_4_FC042GAMMII_2_1_517_596suffix
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
56 40 40 40 40 40 40 40 40 40 40 38 40 40 40 40 40 14 40 40 40 40 40 36 40 13 14 24
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
57 24 9 24 9 40 10 10 15 40
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 different format:
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
60
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
61
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
62 ::
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
63
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
64 @HISEQ1:92:c0190acxx:8:1101:1252:2230 2:N:0:CGATGT
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
65 AGAGGAAAAAACATAGTTCTTGTCTAAAAAAATCCCTTGAAAAAGGGCAGATGTATAGAAATAGAAAATTTCAAAGAAAAACTCTCTACAAATGGAAGAGA
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
66 +
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
67 CCCFFFFFHHHHHJJJJIJJJJJJJJJJJJJJJIJJJJJIIJJJJJJGIJIJIHHHHHHHHFFFFFFDEEEEEDCDDDDDDDCCDDDEDDDDD>CCCCB@9
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
68
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
69 is renamed to:
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
70
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
71 ::
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
72
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
73 @prefixHISEQ1:92:c0190acxx:8:1101:1252:2230suffix
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
74 AGAGGAAAAAACATAGTTCTTGTCTAAAAAAATCCCTTGAAAAAGGGCAGATGTATAGAAATAGAAAATTTCAAAGAAAAACTCTCTACAAATGGAAGAGA
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
75 +
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
76 CCCFFFFFHHHHHJJJJIJJJJJJJJJJJJJJJIJJJJJIIJJJJJJGIJIJIHHHHHHHHFFFFFFDEEEEEDCDDDDDDDCCDDDEDDDDD>CCCCB@9
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
77
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
78 note that string after first space is omitted!
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
79
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
80 Because sequence names sometimes containg spaces which delimit the actual name. By
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
81 default, anything after spaces is
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
82 excluded from sequences name. In example sequence:
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
83
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
84 ::
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
85
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
86 @SRR352150.23846180 HWUSI-EAS1786:7:119:15910:19280/1
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
87 CTGGATTCTATACCTTTGGCAACTACTTCTTGGTTGATCAGGAAATTAACACTAGTAGTTTAGGCAATTTGGAATGGTGCCAAAGATGTATAGAACTTTC
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
88 +
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
89 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIGIIIHIIIIIFIIIIIIHDHBBIHFIHIIBHHDDHIFHIHIIIHIHGGDFDEI@EGEGFGFEFB@ECG
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
90
22
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
91 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
92 be:
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
93
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
94 ::
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
95
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
96 @prefixSRR352150.23846180suffix
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
97 CTGGATTCTATACCTTTGGCAACTACTTCTTGGTTGATCAGGAAATTAACACTAGTAGTTTAGGCAATTTGGAATGGTGCCAAAGATGTATAGAACTTTC
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
98 +
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
99 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIGIIIHIIIIIFIIIIIIHDHBBIHFIHIIBHHDDHIFHIHIIIHIHGGDFDEI@EGEGFGFEFB@ECG
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
100
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
101 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
102 will yield
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
103
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
104 ::
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
105
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
106 @prefixSRR352150.23846180 HWUSI-EAS1786:7:119:15910:19280/1suffix
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
107 CTGGATTCTATACCTTTGGCAACTACTTCTTGGTTGATCAGGAAATTAACACTAGTAGTTTAGGCAATTTGGAATGGTGCCAAAGATGTATAGAACTTTC
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
108 +
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
109 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIGIIIHIIIIIFIIIIIIHDHBBIHFIHIIBHHDDHIFHIHIIIHIHGGDFDEI@EGEGFGFEFB@ECG
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
110
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
111
58807b35777a planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents: 9
diff changeset
112 </help>
3
e320ef2d105a Uploaded
petr-novak
parents:
diff changeset
113 </tool>