comparison transit_resampling.xml @ 0:043a6feaa8bc draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/transit/ commit 73c6b2baf9dda26c6809a4f36582f7cbdb161ea1
author iuc
date Mon, 22 Apr 2019 14:42:47 -0400
parents
children 335197e8f75e
comparison
equal deleted inserted replaced
-1:000000000000 0:043a6feaa8bc
1 <?xml version="1.0"?>
2 <tool id="transit_resampling" name="Resampling" version="@VERSION@+galaxy1">
3 <description>- determine per-gene p-values</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="requirements" />
8 <command detect_errors="exit_code"><![CDATA[
9 @LINK_INPUTS@
10 #set $control_files = ','.join(['control_file_%d.wig' % idx for idx, _ in enumerate(str($controls).split(','))])
11 #for idx, filename in enumerate(str($controls).split(',')):
12 ln -s '$filename' control_file_${idx}.wig &&
13 #end for
14 transit resampling $input_files $control_files annotation.dat transit_out.txt
15 @STANDARD_OPTIONS@
16 -s $samples -n $normalization $histogram $adaptive $exclude_zero $pseudo $loess
17 ]]>
18 </command>
19 <inputs>
20 <expand macro="standard_inputs">
21 <param name="controls" type="data" format="wig" multiple="true" label="Control .wig files" />
22 <param name="samples" argument="-s" type="integer" value="10000" label="Number of samples" />
23 <param name="normalization" argument="-n" type="select" label="Normalization method">
24 <option value="TTR">TTR</option>
25 </param>
26 <param name="histogram" argument="-h" type="boolean" truevalue="-h" falsevalue="" label="Output histogram of the permutations" />
27 <param name="adaptive" argument="-a" type="boolean" truevalue="-a" falsevalue="" label="Perform adaptive resampling" />
28 <param name="exclude_zero" argument="-ez" type="boolean" truevalue="-ez" falsevalue="" label="Exclude rows with zero accross conditions" />
29 <param name="pseudo" argument="-pc" type="boolean" truevalue="-pc" falsevalue="" label="Add pseudocounts at each site" />
30 <param name="loess" argument="-l" type="boolean" truevalue="-l" falsevalue="" label="Perform LOESS Correction" help="Helps remove possible genomic position bias." />
31
32 </expand>
33 </inputs>
34 <outputs>
35 <expand macro="outputs" />
36 </outputs>
37 <tests>
38 <test>
39 <param name="inputs" ftype="wig" value="transit-in1-rep1.wig,transit-in1-rep2.wig" />
40 <param name="controls" ftype="wig" value="transit-co1-rep1.wig,transit-co1-rep2.wig,transit-co1-rep3.wig" />
41 <param name="annotation" ftype="gff3" value="transit-in1.gff3" />
42 <param name="samples" value="1000" />
43 <param name="burnin" value="100" />
44 <param name="replicates" value="Replicates" />
45 <output name="sites" file="resampling-sites1.txt" ftype="tabular" compare="sim_size" />
46 </test>
47 </tests>
48
49 <help>
50 <![CDATA[.. class:: infomark
51
52 **What it does**
53
54 -------------------
55
56
57 The re-sampling method is a comparative analysis the allows that can be used to determine conditional essentiality of genes. It is based on a permutation test, and is capable of determining read-counts that are significantly different across conditions.
58
59 This technique has yet to be formally published in the context of differential essentiality analysis. Briefly, the read-counts at each genes are determined for each replicate of each condition. The total read-counts in condition A is subtracted from the total read counts at condition B, to obtain an observed difference in read counts. The TA sites are then permuted for a given number of “samples”. For each one of these permutations, the difference is read-counts is determined. This forms a null distribution, from which a p-value is calculated for the original, observed difference in read-counts.
60
61
62 Note : Can be used for both Himar1 and Tn5 datasets
63
64
65 -------------------
66
67 **Inputs**
68
69 -------------------
70
71 Input files for Resampling need to be:
72
73 - .wig files : Tabulated files containing one column with the TA site coordinate and one column with the read count at this site.
74 - annotation .prot_table : Annotation file generated by the `Convert Gff3 to prot_table for TRANSIT` tool.
75
76
77 -------------------
78
79 **Parameters**
80
81 -------------------
82
83 Optional Arguments:
84
85 -s <integer> := Number of samples. Default: 10000
86 -n <string> := Normalization method. Default: TTR
87 -h := Output histogram of the permutations for each gene. Default: Off.
88 -a := Perform adaptive resampling. Default: Off.
89 -ez := Exclude rows with zero accross conditions. Default: Off
90 --pc := Pseudocounts to be added at each site. Default: 0
91 -l := Perform LOESS Correction; Helps remove possible genomic position bias. Default: Off.
92 --iN <float> := Ignore TAs occuring at given fraction of the N terminus. Default: 0.0
93 --iC <float> := Ignore TAs occuring at given fraction of the C terminus. Default: 0.0
94 --ctrl_lib := String of letters representing library of control files in order e.g. 'AABB' Default: empty. Letters used must also be used in --exp_lib. If non-empty, resampling will limit permutations to within-libraries.
95 --exp_lib := String of letters representing library of experimental files in order e.g. 'ABAB' Default: empty. Letters used must also be used in --ctrl_lib. If non-empty, resampling will limit permutations to within-libraries.
96
97
98 The resampling method is non-parametric, and therefore does not require any parameters governing the distributions or the model. The following parameters are available for the method:
99
100 - Samples: The number of samples (permutations) to perform. The larger the number of samples, the more resolution the p-values calculated will have, at the expense of longer computation time. The re-sampling method runs on 10,000 samples by default.
101 - Output Histograms:Determines whether to output .png images of the histograms obtained from resampling the difference in read-counts.
102 - Adaptive Resampling: An optional “adaptive” version of resampling which accelerates the calculation by terminating early for genes which are likely not significant. This dramatically speeds up the computation at the cost of less accurate estimates for those genes that terminate early (i.e. deemed not significant). This option is OFF by default.
103 - Include Zeros: Select to include sites that are zero. This is the preferred behavior, however, unselecting this (thus ignoring sites that) are zero accross all dataset (i.e. completely empty), is useful for decreasing running time (specially for large datasets like Tn5).
104 - Normalization Method: Determines which normalization method to use when comparing datasets. Proper normalization is important as it ensures that other sources of variability are not mistakenly treated as real differences. See the Normalization section for a description of normalization method available in TRANSIT.
105
106
107 -------------------
108
109 **Outputs**
110
111 -------------------
112
113 The re-sampling method outputs a tab-delimited file with results for each gene in the genome. P-values are adjusted for multiple comparisons using the Benjamini-Hochberg procedure (called “q-values” or “p-adj.”). A typical threshold for conditional essentiality on is q-value < 0.05.
114
115
116 ============================================= ========================================================================================================================
117 **Column Header** **Column Definition**
118 --------------------------------------------- ------------------------------------------------------------------------------------------------------------------------
119 Orf Gene ID
120 Name Gene Name
121 Desc Gene Description
122 N Number of TA sites in the gene.
123 TAs Hit Number of TA sites with at least one insertion.
124 Sum Rd 1 Sum of read counts in condition 1.
125 Sum Rd 2 Sum of read counts in condition 2.
126 Delta Rd Difference in the sum of read counts.
127 p-value P-value calculated by the permutation test.
128 p-adj. Adjusted p-value controlling for the FDR (Benjamini-Hochberg)
129 ============================================= ========================================================================================================================
130
131
132
133 -------------------
134
135 **More Information**
136
137 -------------------
138
139 See `TRANSIT documentation`
140
141 - TRANSIT: https://transit.readthedocs.io/en/latest/index.html
142 - `TRANSIT Gumbel`: https://transit.readthedocs.io/en/latest/transit_methods.html#re-sampling
143 ]]></help>
144
145 <expand macro="citations" />
146 </tool>