comparison compare_within_models.xml @ 0:84ac2a86bde1 draft default tip

"planemo upload for repository http://github.com/nvk747/papaa/galaxy/ commit 954b283ef7f82f59f55476a4b3a230d655187ac1"
author vijay
date Wed, 16 Dec 2020 23:29:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:84ac2a86bde1
1 <tool id="pancancer_compare_within_models" name="PAPAA: PanCancer compare within models" version="@VERSION@">
2 <description>compare within models</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="stdio"/>
8 <version_command><![CDATA['papaa_compare_within_models.R' --version 2>&1 | grep PAPAA]]></version_command>
9 <command><![CDATA[
10 mkdir 'classifier' &&
11 mkdir -p 'classifier/figures' &&
12 ln -s '${pancan_classifier_summary}' 'classifier/classifier_summary.txt' &&
13 ln -s '${pancan_classifier_coefficients}' 'classifier/classifier_coefficients.tsv' &&
14 #for $within_summary in $pancan_within_classifier_summary:
15 mkdir -p 'classifier/within_disease/${within_summary.element_identifier}' &&
16 ln -s '${within_summary}' 'classifier/within_disease/${within_summary.element_identifier}/classifier_summary.txt' &&
17 #end for
18 #for $within_coefficient in $pancan_within_classifier_coefficients:
19 mkdir -p 'classifier/within_disease/${within_coefficient.element_identifier}' &&
20 ln -s '${within_coefficient}' 'classifier/within_disease/${within_coefficient.element_identifier}/classifier_coefficients.tsv' &&
21 #end for
22 #if $include_alt.include_alt_select == 'true':
23 mkdir 'alt_classifier' &&
24 ln -s '${include_alt.alt_pancan_classifier_summary}' 'alt_classifier/classifier_summary.txt' &&
25 ln -s '${include_alt.alt_pancan_classifier_coefficients}' 'alt_classifier/classifier_coefficients.tsv' &&
26 #for $within_summary in $include_alt.alt_pancan_within_classifier_summary:
27 mkdir -p 'alt_classifier/within_disease/${within_summary.element_identifier}' &&
28 ln -s '${within_summary}' 'alt_classifier/within_disease/${within_summary.element_identifier}/classifier_summary.txt' &&
29 #end for
30 #for $within_coefficient in $include_alt.alt_pancan_within_classifier_coefficients:
31 mkdir -p 'alt_classifier/within_disease/${within_coefficient.element_identifier}' &&
32 ln -s '${within_coefficient}' 'alt_classifier/within_disease/${within_coefficient.element_identifier}/classifier_coefficients.tsv' &&
33 #end for
34 #end if
35 ls -lahR &&
36 papaa_compare_within_models.R
37 --pancan_model 'classifier'
38 #if $include_alt.include_alt_select == 'true':
39 --alt_model 'alt_classifier'
40 #end if
41 > '${log}'
42 ]]>
43 </command>
44 <inputs>
45 <param argument="--pancan_model" label="pancancer classifier summary" name="pancan_classifier_summary" optional="false" type="data" format="txt" help="classifer_summary.txt"/>
46 <param label="pancancer classifier coefficients" name="pancan_classifier_coefficients" optional="false" type="data" format="tabular" help="classifier_coefficients.tsv"/>
47 <param label="pan_within classifier summary" name="pancan_within_classifier_summary" optional="false" type="data" format="txt" multiple="true" help="multiple classifer_summary.txt"/>
48 <param label="pan_within classifier coefficients" name="pancan_within_classifier_coefficients" optional="false" type="data" format="tabular" multiple="true" help="multiple classifier_coefficients.tsv"/>
49 <conditional name="include_alt">
50 <param name="include_alt_select" type="select" label="Would you want to compare given model with alt gene model?" help="output of pancancer classifier and pancancer within disease for alt gene">
51 <option value="false" selected="true">do not do alt gene</option>
52 <option value="true">do alt gene</option>
53 </param>
54 <when value="true">
55 <param argument="--alt_model" label="pancancer classifier summary" name="alt_pancan_classifier_summary" optional="false" type="data" format="txt" help="alt classifer_summary.txt"/>
56 <param label="pancancer classifier coefficients" name="alt_pancan_classifier_coefficients" optional="false" type="data" format="tabular" help="alt classifier_coefficients.tsv"/>
57 <param argument="pan_within classifier summary" label="alt_pancan_within_classifier_summary" name="alt_pancan_within_classifier_summary" optional="true" type="data" format="txt" multiple="true" help="multiple alt classifer_summary.txt"/>
58 <param label="alt_pancan_within classifier coefficients" name="alt_pancan_within_classifier_coefficients" optional="true" type="data" format="tabular" multiple="true" help="multiple alt classifier_coefficients.tsv"/>
59 </when>
60 <when value="false">
61 </when>
62 </conditional>
63 </inputs>
64 <outputs>
65 <data format="txt" name="log" label="${tool.name} on ${on_string} (Log)" />
66 <data format="pdf" name="aupr_comparison" label="${tool.name} on ${on_string} (aupr_comparison.pdf)" from_work_dir="classifier/figures/aupr_comparison.pdf"/>
67 <data format="pdf" name="auroc_comparison" label="${tool.name} on ${on_string} (auroc_comparison.pdf)" from_work_dir="classifier/figures/auroc_comparison.pdf"/>
68 <data format="pdf" name="alt_gene_aupr_comparison" label="${tool.name} on ${on_string} (alt_gene_aupr_comparison.pdf)" from_work_dir="classifier/figures/alt_gene_aupr_comparison.pdf" >
69 <filter>include_alt['include_alt_select'] == 'true' </filter>
70 </data>
71 <data format="pdf" name="alt_gene_auroc_comparison" label="${tool.name} on ${on_string} (alt_gene_auroc_comparison.pdf)" from_work_dir="classifier/figures/alt_gene_auroc_comparison.pdf" >
72 <filter>include_alt['include_alt_select'] == 'true' </filter>
73 </data>
74 </outputs>
75 <tests>
76 <test>
77 <param name="pancan_classifier_summary" value="classifier_summary.txt" ftype="txt"/>
78 <param name="pancan_classifier_coefficients" value="classifier_coefficients.tsv" ftype="tabular"/>
79 <param name="pancan_within_classifier_summary" value="classifier_summary/GBM" > <!--
80 <collection type="list">
81 <element name="GBM" value="GBM_100.txt" ftype="txt"/>
82 </collection> -->
83 </param>
84 <param name="pancan_within_classifier_coefficients" value="classifier_coefficients/GBM"> <!--
85 <collection type="list">
86 <element name="GBM" value="GBM_99.tabular" ftype="tabular"/>
87 </collection> -->
88 </param>
89 <param name="include_alt_select" value="false"/>
90 <!--
91 <conditional name="include_alt">
92 <param name="include_alt_select" value="false"/>
93 <param name="alt_pancan_summary" value="alt_pancan_summary.txt" ftype="txt"/>
94 <param name="alt_pancan_classifier_coefficients" value="alt_pancan_classifier_coefficients.tsv" ftype="tabular"/>
95 <param name="alt_pan_within_classifier_summary" value="alt_pan_within_classifier_summary.txt" ftype="txt"/>
96 <param name="alt_pan_within_classifier_coefficients" value="alt_pan_within_classifier_coefficients.tsv" ftype="tabular"/>
97 </conditional>
98 -->
99 <output name="log" file="compare_within_models_Log.txt"/>
100 <output name="aupr_comparison" file="aupr_comparison.pdf" compare="sim_size" delta="50"/>
101 <output name="auroc_comparison" file="auroc_comparison.pdf" compare="sim_size" delta="50"/>
102
103 </test>
104 </tests>
105 <help><![CDATA[
106
107 **Pancancer_Aberrant_Pathway_Activity_Analysis scripts/papaa_compare_within_models.R:**
108
109 **Inputs:**
110 --pancan_model String of the Directory: location of Pan classifier summary file
111 --alt_model String of the Directory: location of Alt gene classifier summary file
112
113 **Outputs:**
114 Comparison plots for Pan and Pan_within models ("auroc_comparison.pdf" and "aupr_comparison.pdf")
115
116 Comparison plots for altgene, alt_within, Pan_alt models ("alt_gene_auroc_comparison.pdf" and "alt_gene_aupr_comparison.pdf") ]]>
117
118 </help>
119 <expand macro="citations" />
120 </tool>