Mercurial > repos > qfabrepo > metadegalaxy_phyloseq_net
comparison phyloseq_net.xml @ 0:af6d9ad14a0f draft
"planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_net commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
author | qfabrepo |
---|---|
date | Mon, 14 Sep 2020 08:13:43 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:af6d9ad14a0f |
---|---|
1 <tool id="phyloseq_net" name="Phyloseq Network Plot" version="1.24.2" hidden="false"> | |
2 <description>Phyloseq Network Plot</description> | |
3 <requirements> | |
4 <requirement type="package" version="3.4.1">r-base</requirement> | |
5 <requirement type="package" version="1.24.2">bioconductor-phyloseq</requirement> | |
6 <requirement type="package" version="1.20.0">bioconductor-deseq2</requirement> | |
7 <requirement type="package" version="1.10.4">r-data.table</requirement> | |
8 <requirement type="package" version="1.20.0">r-getopt</requirement> | |
9 <requirement type="package" version="9.18">ghostscript</requirement> | |
10 </requirements> | |
11 <version_command><![CDATA[ | |
12 echo $(R --version | grep version | grep -v GNU)", phyloseq version" $(R --vanilla --slave -e "library(phyloseq); cat(sessionInfo()\$otherPkgs\$phyloseq\$Version)" 2> /dev/null | grep -v -i "WARNING: ") | |
13 ]]></version_command> | |
14 <command detect_errors="exit_code"><![CDATA[ | |
15 Rscript '${__tool_directory__}/phyloseq_net.r' | |
16 #if str($file_source.file_source_selector) == "set_biom": | |
17 --infile='$input' | |
18 --metafile='$metadata_input' | |
19 --biom="${file_source.file_source_selector}" | |
20 --xcolumn="${xaxis_column}" | |
21 --lcolumn="${legend_column}" | |
22 --outdir="$htmlfile.files_path" | |
23 --htmlfile='$htmlfile' | |
24 #else: | |
25 --infile='$input' | |
26 --metafile='$metadata_input' | |
27 --biom="${file_source.file_source_selector}" | |
28 --obsfile="${file_source.obstable}" | |
29 --norm="${file_source.norm_bool}" | |
30 --xcolumn="${xaxis_column}" | |
31 --lcolumn="${legend_column}" | |
32 --outdir="$htmlfile.files_path" | |
33 --htmlfile='$htmlfile' | |
34 #end if | |
35 ]]></command> | |
36 | |
37 <inputs> | |
38 | |
39 <conditional name="file_source"> | |
40 <param name="file_source_selector" type="select" label="Choose a file type"> | |
41 <option value="set_biom" selected="True"> BIOM File</option> | |
42 <option value="set_table"> Count File </option> | |
43 </param> | |
44 <when value="set_biom"> | |
45 <param format="biom1" name="input" type="data" label="Input File"/> | |
46 | |
47 </when> | |
48 <when value="set_table"> | |
49 <param format="tabular" name="input" type="data" label="Input File"/> | |
50 <param format="tabular" name="obstable" type="data" label="Observation file"/> | |
51 <param name="norm_bool" type="boolean" truevalue="true" falsevalue="false" checked="false" label="is the data normalised?"/> | |
52 </when> | |
53 </conditional> | |
54 <param format="tabular" name="metadata_input" type="data" label="Metadata file"/> | |
55 <param name="xaxis_column" type="data_column" data_ref="metadata_input" use_header_names="TRUE" label="Select a group for distance matrix"/> | |
56 <param name="legend_column" type="data_column" data_ref="metadata_input" use_header_names="TRUE" label="Column used as legend"/> | |
57 </inputs> | |
58 | |
59 <outputs> | |
60 <data format="html" name="htmlfile" label="${tool.name}.html"/> | |
61 </outputs> | |
62 | |
63 <tests> | |
64 <test> <!-- Test #1: Test BIOM format input --> | |
65 <!-- <conditional name="file_source"> --> | |
66 <param name="file_source_selector" value="set_biom"/> | |
67 <param name="input" value="GP.biom" ftype="biom1" /> | |
68 <param name="norm_bool" value="true"/> | |
69 <param name="metadata_input" value="metadata.txt" ftype="tabular"/> | |
70 <param name="xaxis_column" value="5" /> | |
71 <param name="legend_column" value="4" /> | |
72 <!-- </conditional>--> | |
73 <output name="htmlfile" ftype="html" file="biom_out.html" /> | |
74 </test> | |
75 <test> <!-- Test #2: Test TABULAR format inputs --> | |
76 <!-- <conditional name="file_source"> --> | |
77 <param name="file_source_selector" value="set_table" /> | |
78 <param name="input" value="count.txt" ftype="tabular" /> | |
79 <param name="obstable" value="observation.txt" ftype="tabular" /> | |
80 <param name="metadata_input" value="metadata.txt" ftype="tabular" /> | |
81 <param name="norm_bool" value="true" /> | |
82 <param name="xaxis_column" value="5" /> | |
83 <param name="legend_column" value="4" /> | |
84 <!-- </conditional> --> | |
85 <output name="htmlfile" ftype="html" file="test.html" /> | |
86 </test> | |
87 </tests> | |
88 | |
89 <help> | |
90 **What it does** | |
91 Creates a correlation network plot between samples using an R package called phyloseq_. | |
92 | |
93 .. _phyloseq: https://joey711.github.io/phyloseq/plot_network-examples.html | |
94 | |
95 ----- | |
96 | |
97 **Input** | |
98 | |
99 | |
100 - **Choose a file type** - choose the input file type (e.g., BIOM or count table) | |
101 - **Input file** - choose the input file | |
102 - **Observation** - appear only if the "count table" selected in "choose a file type" | |
103 - **is the data normalised** - appear only if the "count table" selected in "choose a file type" | |
104 - **Select a group for distance matrix** - This group will be used to calculate the distance matrix | |
105 - **Column used as legend** - select a group from the metadata for legend | |
106 | |
107 | |
108 .. _BIOM: http://biom-format.org/ | |
109 | |
110 ----- | |
111 ========= | |
112 Resources | |
113 ========= | |
114 | |
115 **Wrapper Authors** | |
116 | |
117 QFAB Bioinformatics (support@qfab.org) | |
118 | |
119 </help> | |
120 <citations> | |
121 <citation type="doi">10.18129/B9.bioc.phyloseq</citation> | |
122 <citation type="dio">doi:10.1186/2047-217X-1-7</citation> | |
123 </citations> | |
124 | |
125 </tool> |