annotate regionFitness.xml @ 11:2655e8056329 draft default tip

Uploaded
author antmarge
date Tue, 28 Mar 2017 14:05:20 -0400
parents 0ba0852ed5ad
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
1 <tool id="regionFitness" name="Region Fitness" version="0.1.0">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
2
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
3 <!-- Margaret Antonio 17.01.08 -->
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
4
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
5 <requirements>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
6 <!--<requirement type="set_environment">LINKYX_PATH</requirement>-->
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
7 <requirement type="package" version="5.18.1">perl</requirement>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
8 <requirement type="package" version="0.25">perl_list_binarysearch</requirement>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
9 <requirement type="package" version="2.45">perl_getopt_long</requirement>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
10 <requirement type="package" version="0.12">perl_data_random</requirement>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
11 <requirement type="package" version="1.6.922">bioperl</requirement>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
12 </requirements>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
13
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
14 <description>assess fitness effect of mutations in a region (sliding window or custom)</description>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
15
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
16 <command interpreter="perl">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
17 regionFitness.pl
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
18 -f $fasta
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
19 -r $ref_genome
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
20 -c $cutoff
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
21 -n $run
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
22 -m $max
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
23 #if $region.define == "c":
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
24 -u $region.custom
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
25 #end if
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
26 #if $region.define == "s":
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
27 -size $region.size
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
28 -step $region.step
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
29 #end if
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
30 #if $weight.algorithm == "yes":
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
31 -w
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
32 -wc $weight.ceiling
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
33 #end if
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
34
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
35 -f1 $allTAsites
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
36 -f2 $nullDist
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
37 -f3 $slidingWindows
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
38 -f4 $fitWindowscsv
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
39 -f5 $fitWindowswig
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
40 -f6 $fitWindowstxt
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
41
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
42 $input
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
43 #for $a in $additionalcsv
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
44 ${a.input2}
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
45 #end for
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
46
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
47 </command>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
48
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
49 <inputs>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
50 <param name="input" type="data" label="CSV Fitness File(s)"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
51 <repeat name="additionalcsv" title="Additional csv fitness file(s)">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
52 <param name="input2" type="data" label="Select" />
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
53 </repeat>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
54 <param format="fasta" name="fasta" type="data" label="Fasta file"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
55 <param name="ref_genome" type="data" label="GenBank reference genome"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
56
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
57 <conditional name="region">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
58 <param name="define" type="select" label="Define regions: custom or sliding?">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
59 <option value="s">Sliding Windows</option>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
60 <option value="c">Custom</option>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
61 </param>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
62 <when value="s">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
63 <param name="size" type="integer" value="500" label="Sliding window size"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
64 <param name="step" type="integer" value="10" label="Sliding window intervals"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
65 </when>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
66 <when value="c">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
67 <param name="custom" type="data" label="File with custom regions" />
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
68 </when>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
69 </conditional>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
70
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
71 <conditional name="weight">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
72 <param name="algorithm" type="select" label="Use weighted algorithms?">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
73 <option value="yes">Yes</option>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
74 <option value="no">No</option>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
75 </param>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
76 <when value = "yes">
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
77 <param name="ceiling" type="integer" value="50" label="Weight ceiling"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
78 </when>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
79 </conditional>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
80
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
81 <param name="cutoff" type="integer" value="10" label="Cutoff"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
82 <param name="max" type="integer" value="100" label="Highest # insertions in region"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
83 <param name="run" type="text" value="run1" label="Name of run (will be appended to output files)"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
84
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
85 </inputs>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
86
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
87 <outputs>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
88 <data format="txt" name="allTAsites" label="${run}_allTAsites" />
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
89 <data format="txt" name="unmatched" label="${run}_unmatched"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
90 <data format="txt" name="nullDist" label="${run}_nullDist"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
91 <data format="csv" name="slidingWindows" label="${run}_slidingWindows"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
92 <data format="csv" name="fitWindowscsv" label="${run}_fitWindows_csv"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
93 <data format="wig" name="fitWindowswig" label="${run}_fitWindows_wig"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
94 <data format="txt" name="fitWindowstxt" label="${run}_fitWindows_txt"/>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
95 </outputs>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
96
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
97 <help>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
98 **Tool Description**
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
99
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
100 This tool takes a non-gene-centric approach to assessing importance of regions (user defined or sliding windows) to organismal fitness.
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
101
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
102 **Options**
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
103
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
104 *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
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
105
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
106 *Fasta file*: the fasta file for the genome of the organism
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
107
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
108 *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.
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
109
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
110 *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.
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
111
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
112 *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.
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
113
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
114 *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.
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
115
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
116 *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.
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
117
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
118 *Run name*: The name of the run, to be appended to the end of every output file.
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
119
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
120
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
121 </help>
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
122
0ba0852ed5ad Uploaded
antmarge
parents:
diff changeset
123 </tool>