Mercurial > repos > ecology > ecology_homogeneity_normality
comparison homogeneity_normality.xml @ 0:9f679060051a draft
"planemo upload for repository https://github.com/Marie59/Data_explo_tools commit 2f883743403105d9cac6d267496d985100da3958"
author | ecology |
---|---|
date | Tue, 27 Jul 2021 16:56:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9f679060051a |
---|---|
1 <tool id="ecology_homogeneity_normality" name="Homoscedasticity and normality" version="@VERSION@" profile="20.01"> | |
2 <description>Checks the homogeneity of the variance and the normality of the distribution | |
3 </description> | |
4 <macros> | |
5 <import>macro.xml</import> | |
6 </macros> | |
7 <expand macro="Explo_requirements"> | |
8 <requirement type="package" version="3.0_10">r-car</requirement> | |
9 <requirement type="package" version="1.1.1">r-cowplot</requirement> | |
10 <requirement type="package" version="0.4.0">r-ggpubr</requirement> | |
11 </expand> | |
12 <command detect_errors="exit_code"><![CDATA[ | |
13 Rscript | |
14 '$__tool_directory__/graph_homogeneity_normality.r' | |
15 '$input' | |
16 '$colnames' | |
17 '$date' | |
18 '$species' | |
19 '$variable' | |
20 '$output_levene' | |
21 '$output_ks' | |
22 '$plots' | |
23 ]]> | |
24 </command> | |
25 <inputs> | |
26 <expand macro="explo_input"/> | |
27 <param name="date" label="Select column containing temporal data (year, date, ...)" type="data_column" data_ref="input" use_header_names="true"/> | |
28 <param name="species" label="Select column containing species" type="data_column" data_ref="input" use_header_names="true"/> | |
29 <param name="variable" label="Select column containing numerical values (like abundances)" type="data_column" data_ref="input" numerical="true" use_header_names="true"/> | |
30 </inputs> | |
31 <outputs> | |
32 <data name="output_levene" from_work_dir="levene.txt" format="txt" label="Levene test - Homoscedasticity"/> | |
33 <data name="output_ks" from_work_dir="ks.txt" format="txt" label="Kolmogorov-Smirnov test - Normality"/> | |
34 <collection type="list" name="plots"> | |
35 <discover_datasets pattern="(?P<designation>.+)\.png" visible="false" format="png"/> | |
36 </collection> | |
37 </outputs> | |
38 <tests> | |
39 <test> | |
40 <param name="input" value="data_frenchbbs.tabular"/> | |
41 <param name="colnames" value="true"/> | |
42 <param name="date" value="2"/> | |
43 <param name="species" value="3"/> | |
44 <param name="variable" value="4"/> | |
45 <output name="output_levene" value="levene.txt"/> | |
46 <output name="output_ks"> | |
47 <assert_contents> | |
48 <has_n_lines n="9"/> | |
49 </assert_contents> | |
50 </output> | |
51 <output_collection name="plots" type="list" count="2"> | |
52 <element name="Homogeneity" ftype="png"> | |
53 <assert_contents> | |
54 <has_text text="PNG"/> | |
55 </assert_contents> | |
56 </element> | |
57 <element name="Normal_distribution" ftype="png"> | |
58 <assert_contents> | |
59 <has_text text="PNG"/> | |
60 </assert_contents> | |
61 </element> | |
62 </output_collection> | |
63 </test> | |
64 </tests> | |
65 <expand macro="topic"/> | |
66 <help><![CDATA[ | |
67 =============================================================== | |
68 Checks homogeneity of variance (homoscedasticity) and normality | |
69 =============================================================== | |
70 | |
71 | |
72 **What it does** | |
73 | |
74 | |
75 This tool checks homogeneity of variances (Levene test) for every species and represents it through multiple boxplots and the normal distribution (Kolmogorov-Smirnov test) represented by a distribution histogram and a Q-Q plot. | |
76 | |
77 If the levene test is significant (P-value in column Pr < 0.5 and at least one * at the end of the 4th line), variances aren't homogeneous, the hypothesis of *homoscedasticity is rejected*. | |
78 | |
79 If the K-S test is significant (p-value < 0.5), your numerical variable *isn't* normally distributed, the hypothesis of *normality is rejected*. | |
80 | |
81 | |
82 **Input description** | |
83 | |
84 A tabular file with observation data. Must at least contain three columns temporal referential (year, date, ...), species and a numerical factor. | |
85 | |
86 +----------+-----------+-----------+ | |
87 | date | number | species | | |
88 +==========+===========+===========+ | |
89 | year | 4 | speciesID | | |
90 +----------+-----------+-----------+ | |
91 | ... | ... | ... | | |
92 +----------+-----------+-----------+ | |
93 | |
94 **Output** | |
95 | |
96 A text output that summarizes the result of the performed Levene test for homogeneity of variances (homoscedasticity). | |
97 | |
98 A text output that summarizes the result of the performed Kolmogrov-Smirnov test for normality. | |
99 | |
100 Multiple PNG files representing the homogeneity of variances for each species at each time point of the study. | |
101 | |
102 One PNG file representing the distribution of the data. | |
103 ]]> </help> | |
104 <expand macro="explo_bibref"/> | |
105 | |
106 </tool> |