annotate volcanoplot.xml @ 5:44608d0193ed draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
author iuc
date Sun, 06 Jun 2021 09:12:22 +0000
parents 73b8cb5bddcd
children 83c573f2e73c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
1 <tool id="volcanoplot" name="Volcano Plot" version="0.0.4">
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
2 <description>create a volcano plot</description>
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
3 <edam_topics>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
4 <edam_topic>topic_0092</edam_topic>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
5 </edam_topics>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
6 <edam_operations>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
7 <edam_operation>operation_0337</edam_operation>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
8 </edam_operations>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
9 <requirements>
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
10 <requirement type="package" version="3.3.3">r-ggplot2</requirement>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
11 <requirement type="package" version="0.9.1">r-ggrepel</requirement>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
12 <requirement type="package" version="1.0.6">r-dplyr</requirement>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
13 </requirements>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
14 <version_command><![CDATA[
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
15 echo $(R --version | grep version | grep -v GNU)", ggplot2 version" $(R --vanilla --slave -e "library(ggplot2); cat(sessionInfo()\$otherPkgs\$ggplot2\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", ggrepel version" $(R --vanilla --slave -e "library(ggrepel); cat(sessionInfo()\$otherPkgs\$ggrepel\$Version)" 2> /dev/null | grep -v -i "WARNING: ")", dplyr version" $(R --vanilla --slave -e "library(dplyr); cat(sessionInfo()\$otherPkgs\$dplyr\$Version)" 2> /dev/null | grep -v -i "WARNING: ")
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
16 ]]></version_command>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
17 <command detect_errors="exit_code"><![CDATA[
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
18 #if $out_options.rscript_out:
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
19 cp '${volcanoplot_script}' rscript.txt &&
3
6d532d760950 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 16205b1cd782c5a4f7c08af7d4ee50dc5903418b
iuc
parents: 1
diff changeset
20 #end if
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
21 Rscript '${volcanoplot_script}'
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
22 ]]></command>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
23 <configfiles>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
24 <configfile name="volcanoplot_script"><![CDATA[
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
25 # Galaxy settings start ---------------------------------------------------
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
26
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
27 # setup R error handling to go to stderr
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
28 options(show.error.messages = F, error = function() {cat(geterrmessage(), file = stderr()); q("no", 1, F)})
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
29
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
30 # we need that to not crash galaxy with an UTF8 error on German LC settings.
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
31 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8")
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
32
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
33
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
34 # Load packages -----------------------------------------------------------
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
35
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
36 suppressPackageStartupMessages({
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
37 library(dplyr)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
38 library(ggplot2)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
39 library(ggrepel)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
40 })
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
41
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
42
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
43 # Import data ------------------------------------------------------------
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
44
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
45 # Check if header is present by checking if P value column is numeric or not
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
46
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
47 first_line <- read.delim('$input', header = FALSE, nrow = 1)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
48
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
49 first_pvalue <- first_line[, $pval_col]
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
50
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
51 if (is.numeric(first_pvalue)) {
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
52 print("No header row detected")
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
53 results <- read.delim('$input', header = FALSE)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
54 } else {
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
55 print("Header row detected")
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
56 results <- read.delim('$input', header = TRUE)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
57 }
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
58
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
59
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
60 # Format data ------------------------------------------------------------
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
61
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
62 # Create columns from the column numbers specified
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
63 results <- results %>% mutate(fdr = .[[$fdr_col]],
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
64 pvalue = .[[$pval_col]],
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
65 logfc = .[[$lfc_col]],
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
66 labels = .[[$label_col]])
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
67
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
68 # Get names for legend
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
69 down <- unlist(strsplit('$plot_options.legend_labs', split = ","))[1]
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
70 notsig <- unlist(strsplit('$plot_options.legend_labs', split = ","))[2]
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
71 up <- unlist(strsplit('$plot_options.legend_labs', split = ","))[3]
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
72
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
73 # Set colours
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
74 colours <- setNames(c("cornflowerblue", "grey", "firebrick"), c(down, notsig, up))
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
75
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
76 # Create significant (sig) column
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
77 results <- mutate(results, sig = case_when(
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
78 fdr < $signif_thresh & logfc > $lfc_thresh ~ up,
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
79 fdr < $signif_thresh & logfc < -$lfc_thresh ~ down,
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
80 TRUE ~ notsig))
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
81
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
82 ## R code below is left aligned for R script output
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
83
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
84 #if $labels.label_select != "none"
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
85 # Specify genes to label --------------------------------------------------
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
86 #if $labels.label_select == "file"
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
87 labelfile <- read.delim('$labels.label_file')
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
88 results <- mutate(results, labels = ifelse(labels %in% labelfile[, 1], labels, ""))
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
89 #elif $labels.label_select == "signif"
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
90 #if $labels.top_num <= 0
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
91 results <- mutate(results, labels = "")
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
92 #elif $labels.top_num > 0
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
93 top <- results %>%
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
94 filter(sig != notsig) %>%
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
95 slice_min(order_by = pvalue, n = $labels.top_num)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
96 toplabels <- pull(top, labels)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
97 results <- mutate(results, labels = ifelse(labels %in% toplabels, labels, ""))
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
98 #else
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
99 results <- mutate(results, labels = ifelse(sig != notsig, labels, ""))
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
100 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
101 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
102 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
103
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
104
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
105 # Create plot -------------------------------------------------------------
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
106
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
107 pdf("out.pdf")
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
108 p <- ggplot(results, aes(x = logfc, y = -log10(pvalue))) +
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
109 geom_point(aes(colour = sig)) +
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
110 scale_color_manual(values = colours) +
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
111 scale_fill_manual(values = colours) +
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
112 theme(panel.grid.major = element_blank(),
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
113 panel.grid.minor = element_blank(),
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
114 panel.background = element_blank(),
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
115 axis.line = element_line(colour = "black"),
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
116 legend.key = element_blank())
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
117
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
118 #if not '$plot_options.title'
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
119 p <- p + ggtitle('$plot_options.title')
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
120 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
121
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
122 #if not '$plot_options.xlab'
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
123 p <- p + xlab('$plot_options.xlab')
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
124 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
125
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
126 #if not '$plot_options.ylab'
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
127 p <- p + ylab('$plot_options.ylab')
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
128 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
129
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
130 #if not '$plot_options.xmin' and '$plot_options.xmax'
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
131 p <- p + xlim('$plot_options.xmin', '$plot_options.xmax')
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
132 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
133
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
134 #if not '$plot_options.ymax'
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
135 p <- p + ylim(0, '$plot_options.ymax')
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
136 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
137
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
138 # Set legend title
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
139 #if not '$plot_options.legend'
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
140 p <- p + labs(colour = '$plot_options.legend')
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
141 #else
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
142 p <- p + labs(colour = "")
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
143 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
144
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
145 #if $labels.label_select != "none"
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
146 # Add gene labels in boxes
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
147 #if $plot_options.boxes
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
148 p <- p + geom_label_repel(aes(label = labels, fill = sig),
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
149 segment.colour = "black",
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
150 colour = "white",
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
151 min.segment.length = 0,
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
152 show.legend = FALSE)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
153 #else
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
154 # Add gene labels
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
155 p <- p + geom_text_repel(aes(label = labels, col = sig),
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
156 min.segment.length = 0,
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
157 box.padding = 0.3,
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
158 point.padding = 0.3,
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
159 show.legend = FALSE)
3
6d532d760950 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 16205b1cd782c5a4f7c08af7d4ee50dc5903418b
iuc
parents: 1
diff changeset
160 #end if
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
161 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
162
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
163 print(p)
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
164 dev.off()
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
165
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
166
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
167 #if $out_options.rdata_out
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
168 # Save RData -------------------------------------------------------------
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
169 save.image(file="volcanoplot.RData")
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
170 #end if
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
171
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
172
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
173 # R and Package versions -------------------------------------------------
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
174 sessionInfo()
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
175
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
176 ]]></configfile>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
177 </configfiles>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
178 <inputs>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
179 <param name="input" type="data" format="tabular" label="Specify an input file" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
180 <param name="fdr_col" type="data_column" data_ref="input" label="FDR (adjusted P value)" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
181 <param name="pval_col" type="data_column" data_ref="input" label="P value (raw)" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
182 <param name="lfc_col" type="data_column" data_ref="input" label="Log Fold Change" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
183 <param name="label_col" type="data_column" data_ref="input" label="Labels" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
184 <param name="signif_thresh" type="float" max="1" value="0.05" label="Significance threshold" help="Default: 0.05"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
185 <param name="lfc_thresh" type="float" value="0" label="LogFC threshold to colour" help="Default: 0"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
186 <conditional name="labels">
1
7b7303fa20e3 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit c2b155f1fd4470ddecb5bd1c6e2c54dd46bfeaed
iuc
parents: 0
diff changeset
187 <param name="label_select" type="select" label="Points to label" help="Select to label significant points or input labels from file. Default: None">
7b7303fa20e3 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit c2b155f1fd4470ddecb5bd1c6e2c54dd46bfeaed
iuc
parents: 0
diff changeset
188 <option value="none" selected="True">None</option>
7b7303fa20e3 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit c2b155f1fd4470ddecb5bd1c6e2c54dd46bfeaed
iuc
parents: 0
diff changeset
189 <option value="signif">Significant</option>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
190 <option value="file">Input from file</option>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
191 </param>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
192 <when value="signif">
1
7b7303fa20e3 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit c2b155f1fd4470ddecb5bd1c6e2c54dd46bfeaed
iuc
parents: 0
diff changeset
193 <param name="top_num" type="integer" optional="True" label="Only label top most significant" help="Specify the top number of points to label by P value significance. If no number is specified, all points that pass the FDR and Log Fold Change thresholds will be labelled."/>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
194 </when>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
195 <when value="file">
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
196 <param name="label_file" type="data" format="tabular" label="File of labels"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
197 </when>
4
73b8cb5bddcd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit e8c104fae4904d9c3c35834ac37ee17cf8e49bb9
iuc
parents: 3
diff changeset
198 <when value="none" />
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
199 </conditional>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
200 <section name="plot_options" expanded="false" title="Plot Options">
3
6d532d760950 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 16205b1cd782c5a4f7c08af7d4ee50dc5903418b
iuc
parents: 1
diff changeset
201 <param name="boxes" type="boolean" truevalue="True" falsevalue="False" checked="True" label="Label Boxes" help="If this is set to Yes, the labels for the points will be in boxes. Default: Yes"/>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
202 <param name="title" type="text" optional="True" label="Plot title"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
203 <param name="xlab" type="text" optional="True" label="Label for x axis"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
204 <param name="ylab" type="text" optional="True" label="Label for y axis"/>
3
6d532d760950 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 16205b1cd782c5a4f7c08af7d4ee50dc5903418b
iuc
parents: 1
diff changeset
205 <param name="xmin" type="float" optional="True" label="Minimum value for x axis" help="To customise the x axis limits, specify both minimum and maximum values. Leave empty for automatic values."/>
6d532d760950 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 16205b1cd782c5a4f7c08af7d4ee50dc5903418b
iuc
parents: 1
diff changeset
206 <param name="xmax" type="float" optional="True" label="Maximum value for x axis" help="To customise the x axis limits, specify both minimum and maximum values. Leave empty for automatic values."/>
6d532d760950 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 16205b1cd782c5a4f7c08af7d4ee50dc5903418b
iuc
parents: 1
diff changeset
207 <param name="ymax" type="float" optional="True" label="Maximum value for y axis" help="To customise the y axis upper limit, specify the maximum value, the minimum will be 0. Leave empty for automatic value."/>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
208 <param name="legend" type="text" optional="True" label="Label for Legend Title"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
209 <param name="legend_labs" type="text" value="Down,Not Sig,Up" label="Labels for Legend" help="Labels in the legend can be specified. Default: Down,Not Sig,Up"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
210 </section>
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
211 <section name="out_options" expanded="false" title="Output Options">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
212 <param name="rscript_out" type="boolean" truevalue="True" falsevalue="False" checked="False" label="Output Rscript?"
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
213 help="Output the R code used by the tool, can view and edit in R. Default: No"/>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
214 <param name="rdata_out" type="boolean" truevalue="True" falsevalue="False" checked="False" label="Output RData file?"
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
215 help="Output the data generated by the RScript code, can be loaded into R with load(). Default: No">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
216 </param>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
217 </section>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
218 </inputs>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
219 <outputs>
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
220 <data name="plot" format="pdf" from_work_dir="out.pdf" label="${tool.name} on ${on_string}: PDF"/>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
221 <data name="rscript" format="txt" from_work_dir="rscript.txt" label="${tool.name} on ${on_string}: Rscript">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
222 <filter>out_options['rscript_out']</filter>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
223 </data>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
224 <data name="rdata" format="rdata" from_work_dir="volcanoplot.RData" label="${tool.name} on ${on_string}: RData">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
225 <filter>out_options['rdata_out']</filter>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
226 </data>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
227 </outputs>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
228 <tests>
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
229 <test expect_num_outputs="1">
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
230 <!-- Ensure default output works -->
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
231 <param name="input" ftype="tabular" value="input.tab"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
232 <param name="fdr_col" value="4" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
233 <param name="pval_col" value="3" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
234 <param name="lfc_col" value="2" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
235 <param name="label_col" value="1" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
236 <param name="lfc_thresh" value="0" />
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
237 <output name="plot">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
238 <assert_contents>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
239 <has_size value= "933447" delta="1000" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
240 </assert_contents>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
241 </output>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
242 </test>
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
243 <test expect_num_outputs="1">
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
244 <!-- Ensure input labels and plot options work -->
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
245 <param name="input" ftype="tabular" value="input.tab"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
246 <param name="fdr_col" value="4" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
247 <param name="pval_col" value="3" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
248 <param name="lfc_col" value="2" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
249 <param name="label_col" value="1" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
250 <param name="lfc_thresh" value="0" />
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
251 <param name="label_select" value="file"/>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
252 <param name="label_file" ftype="tabular" value="labels.tab" />
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
253 <output name="plot">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
254 <assert_contents>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
255 <has_size value= "936522" delta="1000" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
256 </assert_contents>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
257 </output>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
258 </test>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
259 <test expect_num_outputs="3">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
260 <!-- Ensure rscript and rdata outputs work -->
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
261 <param name="input" ftype="tabular" value="input.tab"/>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
262 <param name="fdr_col" value="4" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
263 <param name="pval_col" value="3" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
264 <param name="lfc_col" value="2" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
265 <param name="label_col" value="1" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
266 <param name="lfc_thresh" value="0" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
267 <param name="label_select" value="file"/>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
268 <param name="label_file" ftype="tabular" value="labels.tab" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
269 <param name="rscript_out" value="True"/>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
270 <param name="rdata_out" value="True"/>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
271 <output name="plot">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
272 <assert_contents>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
273 <has_size value= "936522" delta="1000" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
274 </assert_contents>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
275 </output>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
276 <output name="rscript" value= "out.rscript" lines_diff="8"/>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
277 <output name="rdata">
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
278 <assert_contents>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
279 <has_size value= "589613" delta="1000" />
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
280 </assert_contents>
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
281 </output>
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
282 </test>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
283 </tests>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
284 <help><![CDATA[
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
285 .. class:: infomark
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
286
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
287 **What it does**
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
288
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
289 This tool creates a Volcano plot using ggplot2. Points can be labelled via ggrepel. It was inspired by this Getting Genetics Done `blog post`_.
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
290
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
291 In statistics, a `Volcano plot`_ is a type of scatter-plot that is used to quickly identify changes in large data sets composed of replicate data. It plots significance versus fold-change on the y and x axes, respectively. These plots are increasingly common in omic experiments such as genomics, proteomics, and metabolomics where one often has a list of many thousands of replicate data points between two conditions and one wishes to quickly identify the most meaningful changes. A volcano plot combines a measure of statistical significance from a statistical test (e.g., a p value from an ANOVA model) with the magnitude of the change, enabling quick visual identification of those data-points (genes, etc.) that display large magnitude changes that are also statistically significant.
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
292
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
293 A volcano plot is constructed by plotting the negative log of the p value on the y axis (usually base 10). This results in data points with low p values (highly significant) appearing toward the top of the plot. The x axis is the log of the fold change between the two conditions. The log of the fold change is used so that changes in both directions appear equidistant from the center. Plotting points in this way results in two regions of interest in the plot: those points that are found toward the top of the plot that are far to either the left- or right-hand sides. These represent values that display large magnitude fold changes (hence being left or right of center) as well as high statistical significance (hence being toward the top).
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
294
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
295 Source: Wikipedia
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
296
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
297 -----
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
298
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
299 **Inputs**
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
300
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
301 A tabular file containing the columns below (additional columns may be present):
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
302
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
303 * P value
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
304 * FDR / adjusted P value
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
305 * Log fold change
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
306 * Labels (e.g. Gene symbols or IDs)
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
307
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
308 The tool will auto-detect if a header is present, by checking if the first row in the P value column is a number or not.
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
309
1
7b7303fa20e3 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit c2b155f1fd4470ddecb5bd1c6e2c54dd46bfeaed
iuc
parents: 0
diff changeset
310 All significant points, those meeting the specified FDR and Log Fold Change thresholds, will be coloured, red for upregulated, blue for downregulated. Users can choose to apply labels to the points (such as gene symbols) from the Labels column. To label all significant points, select "Significant" for the **Points to label** option, or to only label the top most significant specify a number under "Only label top most significant". Users can label any points of interest through selecting **Points to label** "Input from file" and providing a tabular labels file. The labels file must contain a header row and have the labels in the first column. These labels must match the labels in the main input file.
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
311
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
312 **Outputs**
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
313
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
314 A PDF containing a Volcano plot like below.
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
315
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
316 .. image:: $PATH_TO_IMAGES/volcano_plot.png
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
317
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
318 .. _Volcano plot: https://en.wikipedia.org/wiki/Volcano_plot_(statistics)
5
44608d0193ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 8464d1b013c316d88b37884be521c0ef50be5623"
iuc
parents: 4
diff changeset
319 .. _blog post: https://gettinggeneticsdone.blogspot.com/2016/01/
0
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
320
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
321 ]]></help>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
322 <citations>
59ebf2c42c0e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit 7cc1a05f2868f270bf5bdbbd4820ef6f69c9fc8d
iuc
parents:
diff changeset
323 </citations>
4
73b8cb5bddcd planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/volcanoplot commit e8c104fae4904d9c3c35834ac37ee17cf8e49bb9
iuc
parents: 3
diff changeset
324 </tool>