Mercurial > repos > iuc > ggplot2_barplot
annotate ggplot2_barplot.xml @ 0:41e9114cc7cd 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:01:57 +0000 |
parents | |
children |
rev | line source |
---|---|
0
41e9114cc7cd
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"> |
41e9114cc7cd
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> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
3 <macros> |
41e9114cc7cd
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> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
5 </macros> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
6 <expand macro="requirements"> |
41e9114cc7cd
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> |
41e9114cc7cd
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> |
41e9114cc7cd
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> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
10 </expand> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
11 <required_files> |
41e9114cc7cd
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" /> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
13 </required_files> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
14 <creator> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
15 <person |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
16 givenName="Kristina" |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
17 familyName="Gomoryova" |
41e9114cc7cd
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" |
41e9114cc7cd
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" /> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
20 <person |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
21 givenName="Helge" |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
22 familyName="Hecht" |
41e9114cc7cd
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" |
41e9114cc7cd
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" /> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
25 <organization |
41e9114cc7cd
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/" |
41e9114cc7cd
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" |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
28 name="RECETOX MUNI" /> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
29 </creator> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
30 |
41e9114cc7cd
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[ |
41e9114cc7cd
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}")' |
41e9114cc7cd
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 |
41e9114cc7cd
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 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
35 #end if |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
36 ]]></command> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
37 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
38 <configfiles> |
41e9114cc7cd
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[ |
41e9114cc7cd
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" |
41e9114cc7cd
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" |
41e9114cc7cd
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) |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
43 |
41e9114cc7cd
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] |
41e9114cc7cd
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] |
41e9114cc7cd
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]]) |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
47 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
48 #if $color_col |
41e9114cc7cd
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] |
41e9114cc7cd
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]]) |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
51 #end if |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
52 |
41e9114cc7cd
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, |
41e9114cc7cd
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), |
41e9114cc7cd
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), |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
56 #if $color_col |
41e9114cc7cd
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) |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
58 #end if |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
59 )) + |
41e9114cc7cd
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" |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
61 #if $position |
41e9114cc7cd
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() |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
63 #end if |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
64 ) + |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
65 ggplot2::theme_bw()+ |
41e9114cc7cd
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)) |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
67 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
68 #if $xlab |
41e9114cc7cd
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") |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
70 #end if |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
71 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
72 #if $ylab |
41e9114cc7cd
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") |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
74 #end if |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
75 |
41e9114cc7cd
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) |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
77 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
78 ]]></configfile> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
79 </configfiles> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
80 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
81 <inputs> |
41e9114cc7cd
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"/> |
41e9114cc7cd
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."/> |
41e9114cc7cd
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."/> |
41e9114cc7cd
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."/> |
41e9114cc7cd
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)?"/> |
41e9114cc7cd
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"/> |
41e9114cc7cd
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"/> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
89 </inputs> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
90 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
91 <outputs> |
41e9114cc7cd
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"/> |
41e9114cc7cd
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"> |
41e9114cc7cd
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> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
95 </data> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
96 </outputs> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
97 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
98 <tests> |
41e9114cc7cd
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"> |
41e9114cc7cd
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"/> |
41e9114cc7cd
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"/> |
41e9114cc7cd
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"/> |
41e9114cc7cd
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"> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
104 <assert_contents> |
41e9114cc7cd
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"/> |
41e9114cc7cd
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"/> |
41e9114cc7cd
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" /> |
41e9114cc7cd
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"/> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
109 </assert_contents> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
110 </output> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
111 </test> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
112 </tests> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
113 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
114 <help><![CDATA[ |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
115 recetox-barplot help |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
116 ===================== |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
117 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
118 Overview |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
119 -------- |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
120 |
41e9114cc7cd
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. |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
122 |
41e9114cc7cd
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. |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
124 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
125 Example barplot input |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
126 ---------------------- |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
127 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
128 +----------------------+-------------------+-----------------------+--------------------+ |
41e9114cc7cd
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 | |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
130 +======================+===================+=======================+====================+ |
41e9114cc7cd
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 | |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
132 +----------------------+-------------------+-----------------------+--------------------+ |
41e9114cc7cd
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 | |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
134 +----------------------+-------------------+-----------------------+--------------------+ |
41e9114cc7cd
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 | |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
136 +----------------------+-------------------+-----------------------+--------------------+ |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
137 | ... | ... | ... | ... | |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
138 +----------------------+-------------------+-----------------------+--------------------+ |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
139 ]]></help> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
140 |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
141 <expand macro="citations" /> |
41e9114cc7cd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit 57b86418a4f032a5664b8dc1c9585a11be629158
iuc
parents:
diff
changeset
|
142 </tool> |