Mercurial > repos > cristian > rbgoa
comparison RBGOA.xml @ 1:f7287f82602f draft
"planemo upload commit 486235d6560c9e95bd42152ad19bf7c3941cdc1b"
author | cristian |
---|---|
date | Tue, 19 Apr 2022 08:28:43 +0000 |
parents | |
children | 5acf9dfdfa27 |
comparison
equal
deleted
inserted
replaced
0:91261b42c07e | 1:f7287f82602f |
---|---|
1 <tool id="RBGOA" name="RBGOA" version="0.2.0" python_template_version="3.5"> | |
2 <description>"Rank Based Gene Ontology Analysis"</description> | |
3 <requirements> | |
4 <requirement type="package" version="5.6">r-ape</requirement> | |
5 <requirement type="package" version="1.20.3">r-getopt</requirement> | |
6 </requirements> | |
7 <version_command>Rscript GO_MWU.R -v</version_command> | |
8 <command detect_errors="exit_code"><![CDATA[ | |
9 ln -s '${input1}' samples.tsv && | |
10 ln -s '${input2}' annotation.tsv && | |
11 Rscript $__tool_directory__/GO_MWU.R -s $__tool_directory__ -i samples.tsv -a annotation.tsv -g $__tool_directory__/go.obo -d '$input3' -c '$input_filter.cluster' -o '$input_filter.over' -m '$input_filter.min' -p '$grouping.pcut' -t '$grouping.hcut' && | |
12 mv samples_${input3}.tsv div_input.tsv && | |
13 mv dissim_${input3}_samples_annotation.tsv dissim.tsv && | |
14 mv MWU_${input3}_samples.tsv mwu_file.tsv | |
15 ]]></command> | |
16 <inputs> | |
17 <param type="data" name="input1" format="tabular" label="Genes of interest with associated value" /> | |
18 <param type="data" name="input2" format="tabular" label="Gene GO annotation file" /> | |
19 <param type="select" name="input3" label="GO division" > | |
20 <option value="BP" selected="true">BP</option> | |
21 <option value="MF">MF</option> | |
22 <option value="CC">CC</option> | |
23 </param> | |
24 <section name="input_filter" title="Input Filtering" expanded="true"> | |
25 <param type="float" name="over" value="0.1" label="Filter out GO categories that have more than this fraction of total number of genes" /> | |
26 <param type="integer" name="min" value="5" label="Consider GO categories that have at least this many genes" /> | |
27 <param type="float" name="cluster" value="0.25" label="Threshold for merging similar (gene-sharing) terms" /> | |
28 </section> | |
29 <section name="grouping" title="Significance and Grouping"> | |
30 <param type="float" name="pcut" value="1e-2" label="Adjusted p-value cutoff for representative GO" /> | |
31 <param type="float" name="hcut" value="0.9" label="Height at which to cut the GO terms tree to get 'independent groups'" /> | |
32 </section> | |
33 </inputs> | |
34 <outputs> | |
35 <data name="graph" format="pdf" from_work_dir="Rplots.pdf" label="Tree output" /> | |
36 <data name="div_input" format="tabular" from_work_dir="div_input.tsv" label="GO Division ${input3}" /> | |
37 <data name="dissim" format="tabular" from_work_dir="dissim.tsv" label="Dissimilarity table" /> | |
38 <data name="mwu" format="tabular" from_work_dir="mwu_file.tsv" label="Delta rank for GO (${input3})" /> | |
39 <data name="results" format="tabular" from_work_dir="results.tsv" label="Raw data for graph" /> | |
40 <data name="best_go" format="tabular" from_work_dir="best_go.tsv" label="Best GO terms" /> | |
41 </outputs> | |
42 <tests> | |
43 <test> | |
44 <param name="input1" value="heats.csv"/> | |
45 <param name="input2" value="amil_defog_iso2go.tab"/> | |
46 <param name="input3" value="BP"/> | |
47 <output name="graph"> | |
48 <assert_contents> | |
49 <has_size value="7043" delta="50"/> | |
50 </assert_contents> | |
51 </output> | |
52 <output name="div_input"> | |
53 <assert_contents> | |
54 <has_n_lines n="25114"/> | |
55 </assert_contents> | |
56 </output> | |
57 <output name="dissim"> | |
58 <assert_contents> | |
59 <has_n_lines n="266"/> | |
60 </assert_contents> | |
61 </output> | |
62 <output name="mwu"> | |
63 <assert_contents> | |
64 <has_n_lines n="266"/> | |
65 </assert_contents> | |
66 </output> | |
67 <output name="results"> | |
68 <assert_contents> | |
69 <has_n_lines n="51"/> | |
70 </assert_contents> | |
71 </output> | |
72 <output name="best_go"> | |
73 <assert_contents> | |
74 <has_n_lines n="8"/> | |
75 </assert_contents> | |
76 </output> | |
77 </test> | |
78 </tests> | |
79 <help><![CDATA[ | |
80 ========================================================== | |
81 Rank-based Gene Ontology Analysis with Adaptive Clustering | |
82 ========================================================== | |
83 | |
84 Usage: GO_MWU.R [ | |
85 | |
86 -[-help|h]] | |
87 | |
88 --scriptdir | -s <character> | |
89 | |
90 --input | -i <character> | |
91 | |
92 --goAnnotations | -a <character> | |
93 | |
94 --goDatabase | -g <character> | |
95 | |
96 --goDivision | -d <character> | |
97 | |
98 --threads | -t <integer> | |
99 | |
100 --pcut | -p <double> | |
101 | |
102 --hcut | -c <double> | |
103 | |
104 ]]></help> | |
105 <citations> | |
106 <citation type="bibtex"> | |
107 @misc{githubGO_MWU, | |
108 author = {LastTODO, FirstTODO}, | |
109 year = {TODO}, | |
110 title = {GO_MWU}, | |
111 publisher = {GitHub}, | |
112 journal = {GitHub repository}, | |
113 url = {https://github.com/z0on/GO_MWU}, | |
114 }</citation> | |
115 </citations> | |
116 </tool> |