0
|
1 <tool id="regionFitness" name="Region Fitness" version="0.1.0">
|
|
2
|
|
3 <!-- Margaret Antonio 17.01.08 -->
|
|
4
|
|
5 <requirements>
|
|
6 <!--<requirement type="set_environment">LINKYX_PATH</requirement>-->
|
|
7 <requirement type="package" version="5.18.1">perl</requirement>
|
|
8 <requirement type="package" version="0.25">perl_list_binarysearch</requirement>
|
|
9 <requirement type="package" version="0.12">perl_data_random</requirement>
|
|
10 </requirements>
|
|
11
|
|
12 <description>assess fitness effect of mutations in a region (sliding window or custom)</description>
|
|
13
|
|
14 <command interpreter="perl">
|
|
15 regionFitness.pl
|
|
16 -f $fasta
|
|
17 -r $ref_genome
|
|
18 -c $cutoff
|
|
19 -n $run
|
|
20 -m $max
|
|
21 #if $region.define == "c":
|
|
22 -u $region.custom
|
|
23 #end if
|
|
24 #if $region.define == "s":
|
|
25 -size $region.size
|
|
26 -step $region.step
|
|
27 #end if
|
|
28 #if $weight.algorithm == "yes":
|
|
29 -w
|
|
30 -wc $weight.ceiling
|
|
31 #end if
|
|
32
|
|
33 -f1 $allTAsites
|
|
34 -f2 $nullDist
|
|
35 -f3 $slidingWindows
|
|
36 -f4 $fitWindowscsv
|
|
37 -f5 $fitWindowswig
|
|
38 -f6 $fitWindowstxt
|
|
39
|
|
40 $input
|
|
41 #for $a in $additionalcsv
|
|
42 ${a.input2}
|
|
43 #end for
|
|
44
|
|
45 </command>
|
|
46
|
|
47 <inputs>
|
|
48 <param name="input" type="data" label="CSV Fitness File(s)"/>
|
|
49 <repeat name="additionalcsv" title="Additional csv fitness file(s)">
|
|
50 <param name="input2" type="data" label="Select" />
|
|
51 </repeat>
|
|
52 <param format="fasta" name="fasta" type="data" label="Fasta file"/>
|
|
53 <param name="ref_genome" type="data" label="GenBank reference genome"/>
|
|
54
|
|
55 <conditional name="region">
|
|
56 <param name="define" type="select" label="Define regions: custom or sliding?">
|
|
57 <option value="s">Sliding Windows</option>
|
|
58 <option value="c">Custom</option>
|
|
59 </param>
|
|
60 <when value="s">
|
|
61 <param name="size" type="integer" value="500" label="Sliding window size"/>
|
|
62 <param name="step" type="integer" value="10" label="Sliding window intervals"/>
|
|
63 </when>
|
|
64 <when value="c">
|
|
65 <param name="custom" type="data" label="File with custom regions" />
|
|
66 </when>
|
|
67 </conditional>
|
|
68
|
|
69 <conditional name="weight">
|
|
70 <param name="algorithm" type="select" label="Use weighted algorithms?">
|
|
71 <option value="yes">Yes</option>
|
|
72 <option value="no">No</option>
|
|
73 </param>
|
|
74 <when value = "yes">
|
|
75 <param name="ceiling" type="integer" value="50" label="Weight ceiling"/>
|
|
76 </when>
|
|
77 </conditional>
|
|
78
|
|
79 <param name="cutoff" type="integer" value="10" label="Cutoff"/>
|
|
80 <param name="max" type="integer" value="100" label="Highest # insertions in region"/>
|
|
81 <param name="run" type="text" value="run1" label="Name of run (will be appended to output files)"/>
|
|
82
|
|
83 </inputs>
|
|
84
|
|
85 <outputs>
|
|
86 <data format="txt" name="allTAsites" label="${run}_allTAsites" />
|
|
87 <data format="txt" name="unmatched" label="${run}_unmatched"/>
|
|
88 <data format="txt" name="nullDist" label="${run}_nullDist"/>
|
|
89 <data format="csv" name="slidingWindows" label="${run}_slidingWindows"/>
|
|
90 <data format="csv" name="fitWindowscsv" label="${run}_fitWindows_csv"/>
|
|
91 <data format="wig" name="fitWindowswig" label="${run}_fitWindows_wig"/>
|
|
92 <data format="txt" name="fitWindowstxt" label="${run}_fitWindows_txt"/>
|
|
93 </outputs>
|
|
94
|
|
95 <help>
|
|
96 **Tool Description**
|
|
97
|
|
98 This tool takes a non-gene-centric approach to assessing importance of regions (user defined or sliding windows) to organismal fitness.
|
|
99
|
|
100 **Options**
|
|
101
|
|
102 *The csv fitness file(s)*: These are the csv (comma separated values) files containing the fitness values that will be used in downstream analyses. Since they should have been produced by the "Calculate Fitness" tool, each line besides the header should represent the following information for an insertion location: position,strand,count_1,count_2,ratio,mt_freq_t1,mt_freq_t2,pop_freq_t1,pop_freq_t2,gene,D,W,nW
|
|
103
|
|
104 *Fasta file*: the fasta file for the genome of the organism
|
|
105
|
|
106 *GenBank reference genome*: the reference genome of whatever model you're working with, which needs to be in standard genbank format. For more on that format see the genbank website.
|
|
107
|
|
108 *Region definition*: Define the regions by a custom file or by sliding windows at a set size and step. If using the custom region option, provide a tab-delimited file with start and end coordinates of each region, one region per line. If choosing the sliding window option, specify the size of the window over which assessments will be made and the step, how much the sliding window increments at each asssessment.
|
|
109
|
|
110 *Max*: The maximum number of insertions expected in a window. This is used for creating a null distrubtion upon which the significance of regional essentiality is assessed. An error will be produced if the maximum number of insertions is lower than the actual. Run the Data Overview tool to find the real max number of insertions in a window. This option will be removed later by being data-determined.
|
|
111
|
|
112 *Weight ceiling*: This value lets you set a weight ceiling for the weights of fitness values. It's only relevant if you're using weighted algorithms.
|
|
113
|
|
114 *Cutoff*: This value lets you ignore the fitness scores of any insertion locations with an average count (the number of counts from t1 and t2 divided by 2) less than it.
|
|
115
|
|
116 *Run name*: The name of the run, to be appended to the end of every output file.
|
|
117
|
|
118
|
|
119 </help>
|
|
120
|
|
121 </tool>
|