comparison merge_priors_to_comparate.xml @ 0:e979cb57a5d5 draft default tip

"planemo upload for repository https://github.com/McIntyre-Lab/BayesASE/tree/main/galaxy commit 9b70598ef46a73632d9e0fa0c6ce6776fb5e9d6a"
author malex
date Thu, 14 Jan 2021 21:51:36 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e979cb57a5d5
1 <tool id="merge_priors_to_comparate" name="Merge priors to comparate" version="21.1.13">
2 <description>merges filtered/summarized ASE Counts tables to the Calculated Prior values </description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command><![CDATA[
8 mkdir outputs;
9 cd outputs;
10 merge_priors_to_comparate.py
11 --design=$design
12 --collection1_identifiers="${",".join($collection1.keys())}"
13 --collection1_filenames="${",".join(map(str, $collection1))}"
14 --collection2_identifiers="${",".join($collection2.keys())}"
15 --collection2_filenames="${",".join(map(str, $collection2))}"
16 --out=`pwd`
17 ]]></command>
18 <inputs>
19 <param name="design" type="data" format="tabular,tsv" label="Priors Design file" help="Enter the Priors Design file generated from the Reformat Sample Design file; formatting is shown below"/>
20 <param name="collection1" type="data_collection" collection_type="list" label="Summarized and Filtered ASE Count Table Collection" help="Select the collection containing input filtered ASE count tables per comparate"/>
21 <param name="collection2" type="data_collection" collection_type="list" label="Calculated Priors Collection" help="Select the collection containing the Prior Probability Estimates for a given comparate"/>
22 </inputs>
23 <outputs>
24 <collection name="split_output" type="list" label="${tool.name} on ${on_string}: Merge Priors to Comparate">
25 <discover_datasets pattern="(?P&lt;name&gt;bayesian.*)" ext="tabular" directory="outputs" />
26 </collection>
27 </outputs>
28 <tests>
29 <test>
30 <param name="design" value="summarize_counts_testdata/priors_design_file.tsv" ftype="tsv"/>
31 <param name="collection1" value="summarize_counts_testdata/summarized_and_filtered_ASE_counts_tables_BASE" ftype="data_collection"/>
32 <param name="collection2" value="calculated_priors_BASE_testdata" ftype="data_collection"/>
33 <output_collection name="split_output" type="list">
34 <element name="FEATURE_ID">
35 <assert_contents>
36 <has_text_matching expression="Merge_prior_to_comparate_test_data"/>
37 </assert_contents>
38 </element>
39 </output_collection>
40 </test>
41 </tests>
42 <help><![CDATA[
43 **Tool Description**
44
45 The Merge Priors to Comparate tool merges the files containing calculated prior probability estimates to the summarized and filtered ASE Counts tables for each comparate specified in the Comparate Design File.
46 The files are merged on the FEATURE_ID columns.
47 Therefore, the FEATURE_ID columns in the Summarized and Filtered ASE Counts Tables must be identical and in the same order as those in the Calculated Priors files.
48 The tool outputs one file per comparate.
49
50 **NOTE**: FEATURE_IDs in the Summarized/Filtered ASE Counts Tables must match those in the Calculated Prior file and be in the same order
51
52 **Inputs**
53
54 (1) **Prior Design File [REQUIRED]**
55
56 The Prior Design File must contain the following columns in the exact order::
57
58 1. G1- name of updated parental genome 1
59 2. G2- name of the updated parental genome 2
60 3. comparate- comparate condition
61
62
63 Example of a Prior Design File::
64
65 +-------+------+---------+
66 | G1 | G2 |comparate|
67 +-------+------+---------+
68 | W1118 | W55 | W55_M |
69 +-------+------+---------+
70 | W1118 | W55 | W55_V |
71 +-------+------+---------+
72
73 (2) **Collection of Summarized and Filtered ASE Counts Tables [REQUIRED]**
74
75 These files can be made using the *Combine Counts Table* tool followed by the *Summarize ASE Count Tables* tool
76
77 An example ASE count table ::
78
79 FEATURE_ID g1 g2 W55_M_flag_analyze W55_M_num_reps W55_M_g1_total_rep1 W55_M_g2_total_rep1 W55_M_both_total_rep1 W55_M_flag_apn_rep1 W55_M_APN_total_reads_rep1 W55_M_APN_both_rep1 W55_M_g1_total_rep2 W55_M_g2_total_rep2 W55_M_both_total_rep2 W55_M_flag_apn_rep2 W55_M_APN_total_reads_rep2 W55_M_APN_both_rep2
80 l(1)G0196 W1118 W55 1 2 691 519 5020 1 29.073464805232 23.4243873865079 1075 812 7481 1 43.7266913990042 34.9168212437762
81 CG8920 W1118 W55 1 2 29 62 647 1 10.3878993081113 9.10716914470779 38 126 920 1 15.2470189901369 12.9534815250994
82 CG10932 W1118 W55 1 2 163 122 1112 1 89.9299663299663 71.5858585858586 237 134 1881 1 144.974410774411 121.086195286195
83
84
85 (3) **Collection of files with Calculated Prior Estimates [REQUIRED]**
86
87 A collection containing Calculated Prior Estimates for each of the comparates. These files can be created using the *Calculate Prior Probabilities* tool.
88
89
90 An example prior file (W55_M_prior)::
91
92 FEATURE_ID prior_W55_M_both prior_W55_M_g1 prior_W55_M_g2
93 l(1)G0196 0.802196053 0.114417568 0.083386378
94 CG10932 0.866028708 0.034449761 0.099521531
95 CG8920 0.821591949 0.1084172 0.069990851
96 Mapmodulin 0.904654394 0.076762765 0.018582841
97
98
99 **Outputs**
100
101 (1) **A TSV file containing the prior probability estimates and the summarized ASE counts for a given comparate.**
102
103 Example output for comparate W55_M::
104
105 FEATURE_ID prior_W55_M_both prior_W55_M_g1 prior_W55_M_g2 W55_M_flag_analyze W55_M_num_reps W55_M_g1_total_rep1 W55_M_g2_total_rep1 W55_M_both_total_rep1 W55_M_flag_apn_rep1 W55_M_APN_total_reads_rep1 W55_M_APN_both_rep1 W55_M_g1_total_rep2 W55_M_g2_total_rep2 W55_M_both_total_rep2 W55_M_flag_apn_rep2 W55_M_APN_total_reads_rep2 W55_M_APN_both_rep2
106 l(1)G0196 0.802196053469128 0.114417568427753 0.0833863781031191 1 2 691 519 5020 1 29.073464805232 23.4243873865079 1075 812 7481 1 43.7266913990042 34.9168212437762
107 CG8920 0.866028708133971 0.0344497607655502 0.0995215311004785 1 2 29 62 647 1 10.3878993081113 9.10716914470779 38 126 920 1 15.2470189901369 12.9534815250994
108 CG10932 0.821591948764867 0.108417200365965 0.0699908508691674 1 2 163 122 1112 1 89.9299663299663 71.5858585858586 237 134 1881 1 144.974410774411 121.086195286195
109
110
111
112 ]]></help>
113 <citations>
114 <citation type="bibtex">@ARTICLE{Miller20BASE,
115 author = {Brecca Miller, Alison M. Morse, Elyse Borgert, Zihao Liu, Kelsey Sinclair, Gavin Gamble, Fei Zou, Jeremy Newman, Luis Leon Novello, Fabio Marroni, Lauren M. McIntyre},
116 title = {Testcrosses are an efficient strategy for identifying cis regulatory variation: Bayesian analysis of allele imbalance among conditions (BASE)},
117 journal = {????},
118 year = {submitted for publication}
119 }</citation>
120 </citations>
121 </tool>