annotate ggplot2_barplot.xml @ 0:f098df64f6ad draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
author iuc
date Thu, 15 May 2025 13:00:48 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
1 <tool id="ggplot2_barplot" name="Barplot w ggplot2" version="@TOOL_VERSION@+galaxy0" profile="23.0">
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
2 <description>Barplot visualization tool using ggplot2</description>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
3 <macros>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
4 <import>macros.xml</import>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
5 </macros>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
6 <expand macro="requirements">
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
7 <requirement type="package" version="1.3.1">r-tidyr</requirement>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
8 <requirement type="package" version="19.0.0">r-arrow</requirement>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
9 <requirement type="package" version="1.1.5">r-rlang</requirement>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
10 </expand>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
11 <required_files>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
12 <include path="utils.r" />
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
13 </required_files>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
14 <creator>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
15 <person
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
16 givenName="Kristina"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
17 familyName="Gomoryova"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
18 url="https://github.com/KristinaGomoryova"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
19 identifier="0000-0003-4407-3917" />
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
20 <person
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
21 givenName="Helge"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
22 familyName="Hecht"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
23 url="https://github.com/hechth"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
24 identifier="0000-0001-6744-996X" />
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
25 <organization
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
26 url="https://www.recetox.muni.cz/"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
27 email="GalaxyToolsDevelopmentandDeployment@space.muni.cz"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
28 name="RECETOX MUNI" />
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
29 </creator>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
30
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
31 <command detect_errors="exit_code"><![CDATA[
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
32 Rscript -e 'source("${__tool_directory__}/utils.r")' -e 'source("${run_script}")'
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
33 #if $export_R_script
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
34 && cat ${run_script} >> $script
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
35 #end if
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
36 ]]></command>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
37
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
38 <configfiles>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
39 <configfile name="run_script"><![CDATA[
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
40 file_name <- "$input_data"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
41 file_extension <- "$input_data.ext"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
42 data_input <- load_data(file_name, file_extension)
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
43
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
44 quant_col <- colnames(data_input)[$quant_col]
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
45 grouping_col <- colnames(data_input)[$grouping_col]
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
46 data_input[[grouping_col]] <- as.factor(data_input[[grouping_col]])
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
47
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
48 #if $color_col
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
49 color_col <- colnames(data_input)[$color_col]
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
50 data_input[[color_col]] <- as.factor(data_input[[color_col]])
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
51 #end if
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
52
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
53 plot_barplot <- ggplot2::ggplot(data_input,
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
54 ggplot2::aes(x = !!rlang::sym(grouping_col),
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
55 y = !!rlang::sym(quant_col),
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
56 #if $color_col
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
57 fill = !!rlang::sym(color_col)
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
58 #end if
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
59 )) +
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
60 ggplot2::geom_bar(stat="identity"
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
61 #if $position
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
62 , position = ggplot2::position_dodge()
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
63 #end if
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
64 ) +
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
65 ggplot2::theme_bw()+
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
66 ggplot2::theme(axis.text.x = ggplot2::element_text(angle = 45, hjust=1))
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
67
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
68 #if $xlab
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
69 plot_barplot <- plot_barplot + ggplot2::xlab("$xlab")
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
70 #end if
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
71
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
72 #if $ylab
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
73 plot_barplot <- plot_barplot + ggplot2::ylab("$ylab")
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
74 #end if
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
75
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
76 ggplot2::ggsave(filename = "barplot.png", plot_barplot)
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
77
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
78 ]]></configfile>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
79 </configfiles>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
80
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
81 <inputs>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
82 <param name="input_data" type="data" format="csv,tsv,txt,tabular,parquet" label="Input table in a long format" help= "Input file in a tabular/tsv/csv/parquet format"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
83 <param name="quant_col" type="data_column" data_ref="input_data" use_header_names="true" label="Which column contains the quantitative information?" help="Select the column containing quantitative information."/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
84 <param name="grouping_col" type="data_column" data_ref="input_data" use_header_names="true" label="Which column contains the categories?" help="Select the column which contains the categories."/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
85 <param name="color_col" type="data_column" data_ref="input_data" use_header_names="true" optional="true" label="Which column to color according to?" help="Select the column which contains levels for color."/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
86 <param name="position" type="boolean" checked="false" truevalue="TRUE" falsevalue="FALSE" label="Use position dodge?" help="If a column for color is specified, should be the categories placed side-by-side or stacked (default)?"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
87 <expand macro="axes_labels"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
88 <expand macro="export_data"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
89 </inputs>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
90
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
91 <outputs>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
92 <data name="barplot" format="png" label="Barplot on ${on_string}" from_work_dir="barplot.png"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
93 <data name="script" format="txt" label="R script">
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
94 <filter>export_R_script</filter>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
95 </data>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
96 </outputs>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
97
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
98 <tests>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
99 <test expect_num_outputs="1">
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
100 <param name="input_data" value="barplot_test_data.txt"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
101 <param name="quant_col" value="3"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
102 <param name="grouping_col" value="4"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
103 <output name="barplot" ftype="png">
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
104 <assert_contents>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
105 <has_image_channels channels="1"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
106 <has_image_height height="2100"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
107 <has_image_width width="2100" />
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
108 <has_image_center_of_mass center_of_mass="1030.12, 1008.25" eps="0.1"/>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
109 </assert_contents>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
110 </output>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
111 </test>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
112 </tests>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
113
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
114 <help><![CDATA[
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
115 recetox-barplot help
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
116 =====================
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
117
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
118 Overview
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
119 --------
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
120
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
121 recetox-barplot allows creating barplots from tabular/csv/parquet data. On the input, data in a long format are expected, meaning that each column represents a variable, each row represents an observation as shown below.
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
122
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
123 User has to define which column holds the quantitative information (e.g. counts for particular category) and which column contains the categories to be plotted. It is also possible to use another variable to color the bars. Finally, `Use position dodge?` parameter defines whether the bars will be stacked above each other (default behavior when set to FALSE) or will be placed side-by-side (when set to TRUE). If no color column is supplied, setting this parameter will have no effect on the resulting barplots.
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
124
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
125 Example barplot input
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
126 ----------------------
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
127
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
128 +----------------------+-------------------+-----------------------+--------------------+
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
129 | SampleName | replicate | condition | Value |
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
130 +======================+===================+=======================+====================+
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
131 | sample1 | 1 | control | 20 |
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
132 +----------------------+-------------------+-----------------------+--------------------+
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
133 | sample2 | 1 | treatment | 40 |
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
134 +----------------------+-------------------+-----------------------+--------------------+
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
135 | sample3 | 2 | treatment | 10 |
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
136 +----------------------+-------------------+-----------------------+--------------------+
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
137 | ... | ... | ... | ... |
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
138 +----------------------+-------------------+-----------------------+--------------------+
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
139 ]]></help>
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
140
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
141 <expand macro="citations" />
f098df64f6ad planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff changeset
142 </tool>