Mercurial > repos > iuc > mothur_pca
comparison pca.xml @ 0:56400efc6755 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
author | iuc |
---|---|
date | Fri, 19 May 2017 05:32:07 -0400 |
parents | |
children | 1fdf1610e7dc |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:56400efc6755 |
---|---|
1 <tool profile="16.07" id="mothur_pca" name="Pca" version="@WRAPPER_VERSION@.0"> | |
2 <description>Principal Coordinate Analysis for a shared file</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <expand macro="stdio"/> | |
8 <expand macro="version_command"/> | |
9 <command><![CDATA[ | |
10 @SHELL_OPTIONS@ | |
11 | |
12 ## create symlinks to input datasets | |
13 ln -s "$otu" otu.dat && | |
14 | |
15 echo 'pca( | |
16 #if $otu.is_of_type("mothur.relabund"): | |
17 relabund=otu.dat, | |
18 #elif $otu.is_of_type("mothur.shared"): | |
19 shared=otu.dat, | |
20 #end if | |
21 #if $label: | |
22 label=${ str($label).replace(",","-") }, | |
23 #end if | |
24 #if $groups: | |
25 groups=${ str($groups).replace(",","-") }, | |
26 #end if | |
27 metric=$metric | |
28 )' | |
29 | sed 's/ //g' ## mothur trips over whitespace | |
30 | mothur | |
31 | tee mothur.out.log | |
32 ]]></command> | |
33 <inputs> | |
34 <param name="otu" type="data" format="mothur.shared,mothur.relabund" label="shared,relabund - OTU Shared or Relabund file"/> | |
35 <param name="label" type="select" label="label - OTU Labels" multiple="true"> | |
36 <expand macro="labeloptions"/> | |
37 </param> | |
38 <param name="groups" type="select" label="groups - Groups to consider" multiple="true"> | |
39 <options> | |
40 <filter type="data_meta" ref="otu" key="groups"/> | |
41 </options> | |
42 </param> | |
43 <param name="metric" type="boolean" truevalue="true" falsevalue="false" checked="true" label="metric - Calculate pearson correlation coefficient"/> | |
44 </inputs> | |
45 <outputs> | |
46 <expand macro="logfile-output"/> | |
47 <collection name="pca_axes" type="list" label="${tool.name} on ${on_string}: pca.axes"> | |
48 <discover_datasets pattern=".*?\.(?P<designation>.*)\.pca\.axes" format="mothur.axes"/> | |
49 </collection> | |
50 <collection name="pca_loadings" type="list" label="${tool.name} on ${on_string}: pca.loadings"> | |
51 <discover_datasets pattern=".*?\.(?P<designation>.*)\.pca\.loadings" format="txt"/> | |
52 </collection> | |
53 </outputs> | |
54 <tests> | |
55 <test> | |
56 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> | |
57 <param name="groups" value="forest,pasture"/> | |
58 <param name="label" value="0.22,0.55"/> | |
59 <output_collection name="pca_axes" count="2"> | |
60 <element name="0.22" md5="4e32155fcfefe7d2f45b896d26b36409" ftype="mothur.axes"/> | |
61 </output_collection> | |
62 <output_collection name="pca_loadings" count="2"> | |
63 <element name="0.55" md5="8c76b60484ffcab2ef7230e29071dd51" ftype="txt"/> | |
64 </output_collection> | |
65 <expand macro="logfile-test"/> | |
66 </test> | |
67 </tests> | |
68 <help> | |
69 <![CDATA[ | |
70 | |
71 @MOTHUR_OVERVIEW@ | |
72 | |
73 **Command Documentation** | |
74 | |
75 The pca_ command generate principle components plot data for a shared_ or relabund_ file. | |
76 | |
77 .. _shared: https://www.mothur.org/wiki/Shared_file | |
78 .. _relabund: https://www.mothur.org/wiki/Get.relabund | |
79 .. _pca: https://www.mothur.org/wiki/Pca | |
80 ]]> | |
81 </help> | |
82 <expand macro="citations"/> | |
83 </tool> |