4
|
1 <tool id="generate_sliding_windows" name="generate_sliding_windows" version="0.1.3">
|
3
|
2 <description>Split fasta sequence in nucleotide windows</description>
|
0
|
3 <requirements>
|
|
4 <requirement type="package" version="1.65">biopython</requirement>
|
|
5 </requirements>
|
|
6 <stdio>
|
|
7 <exit_code range="1:" />
|
|
8 </stdio>
|
|
9
|
|
10 <command interpreter="python"><![CDATA[
|
3
|
11 generate_sliding_windows.py --input "$input" --output "$output" --window $window --step $step
|
0
|
12 ]]></command>
|
|
13 <inputs>
|
4
|
14 <conditional name="refFastaSource">
|
|
15 <param help="" label="Will you select a fasta sequence from your history or use a pre-installed sequence?" name="fastaSource" type="select">
|
|
16 <option value="history">Use one from the history</option>
|
|
17 <option value="pre-installed">Use a pre-installed fasta sequence</option>
|
|
18 </param>
|
|
19 <when value="pre-installed">
|
|
20 <param help="if you wish to have your fasta sequence listed contact instance administrator" label="Select a fasta sequence" name="input" type="select">
|
|
21 <options from_data_table="all_fasta">
|
|
22 </options>
|
|
23 </param>
|
|
24 </when>
|
|
25 <when value="history">
|
|
26 <param format="fasta" label="Select a fasta file for which you wish to generate a multi-fasta file in a sliding window fashion" name="input" type="data" />
|
|
27 </when>
|
|
28 </conditional>
|
0
|
29 <param type="integer" name="window" value="21" min="1" label="window size" help="Specifiy the size of the windows that should be generated"/>
|
|
30 <param type="integer" name="step" value="21" min="1" label="step size" help="Specify the distance with which windows should be spaced apart."/>
|
|
31 </inputs>
|
|
32 <outputs>
|
3
|
33 <data name="output" format="fasta" />
|
0
|
34 </outputs>
|
|
35 <tests>
|
|
36 <test>
|
1
|
37 <param name="input" value="EcR_USP_224.fa"/>
|
0
|
38 <param name="window" value="21"/>
|
|
39 <param name="step" value="21"/>
|
3
|
40 <output name="output" file="output.fa"/>
|
0
|
41 </test>
|
|
42 </tests>
|
|
43 <help><![CDATA[
|
|
44
|
|
45 Generate fixed size sliding windows in fasta format from multi-fasta sequence.
|
|
46
|
3
|
47 -----------------------------
|
|
48
|
|
49 Given an input fasta sequence
|
|
50
|
|
51 ::
|
|
52
|
|
53
|
|
54 >input
|
|
55 ATGCATGCATGCATGCATGCATGCATCGATGCATCGATCG
|
|
56
|
|
57 produces the following multi-fasta output with window size 10 and step 5:
|
|
58
|
|
59 ::
|
|
60
|
|
61
|
|
62 >input_start:1_stop:10
|
|
63 ATGCATGCAT
|
|
64 >input_start:6_stop:15
|
|
65 TGCATGCATG
|
|
66 >input_start:11_stop:20
|
|
67 GCATGCATGC
|
|
68 >input_start:16_stop:25
|
|
69 CATGCATGCA
|
|
70 >input_start:21_stop:30
|
|
71 ATGCATCGAT
|
|
72 >input_start:26_stop:35
|
|
73 TCGATGCATC
|
|
74
|
|
75 -------------------------
|
|
76
|
0
|
77 optional arguments:
|
|
78 -h, --help show this help message and exit
|
|
79 --input INPUT supply an input multi-fasta file.
|
|
80 --output OUTPUT supply an output multi-fasta file. If not specified use
|
|
81 stdout.
|
|
82 --window WINDOW Set the size of the generated windows
|
|
83 --step STEP Set distance between the windows
|
|
84
|
|
85 ]]></help>
|
|
86 </tool>
|