comparison regionFitness.xml @ 4:eddf4584cf85 draft

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