Mercurial > repos > iuc > fgsea
annotate fgsea.R @ 0:9bb7943b5263 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
author | iuc |
---|---|
date | Sat, 20 Oct 2018 05:47:18 -0400 |
parents | |
children | 17eb1e0d711f |
rev | line source |
---|---|
0
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
1 options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } ) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
2 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
3 # we need that to not crash galaxy with an UTF8 error on German LC settings. |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
4 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8") |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
5 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
6 suppressPackageStartupMessages({ |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
7 library(fgsea) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
8 library(ggplot2) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
9 library(optparse) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
10 }) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
11 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
12 option_list <- list( |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
13 make_option(c("-rnk_file", "--rnk_file"), type="character", help="Path to ranked genes file"), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
14 make_option(c("-header", "--header"), type="logical", help = "Does ranked genes file have a header"), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
15 make_option(c("-sets_file", "--sets_file"), type="character", help = "Path to gene sets file"), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
16 make_option(c("-gmt", "--gmt"), type="logical", help = "Is the sets file in GMT format"), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
17 make_option(c("-out_tab","--out_tab"), type="character", help="Path to output file"), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
18 make_option(c("-min_size", "--min_size"), type="integer", help="Minimal size of a gene set to test. All pathways below the threshold are excluded."), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
19 make_option(c("-max_size", "--max_size"), type="integer", help="Maximal size of a gene set to test. All pathways above the threshold are excluded."), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
20 make_option(c("-n_perm", "--n_perm"), type="integer", help="Number of permutations to do. Minimial possible nominal p-value is about 1/nperm"), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
21 make_option(c("-rda_opt", "--rda_opt"), type="logical", help="Output RData file"), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
22 make_option(c("-plot_opt", "--plot_opt"), type="logical", help="Output plot"), |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
23 make_option(c("-top_num", "--top_num"), type="integer", help="Top number of pathways to plot") |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
24 ) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
25 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
26 parser <- OptionParser(usage = "%prog [options] file", option_list=option_list) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
27 args = parse_args(parser) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
28 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
29 # Vars: |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
30 rnk_file = args$rnk_file |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
31 if (args$header) { |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
32 header = TRUE |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
33 } else { |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
34 header = FALSE |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
35 } |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
36 sets_file = args$sets_file |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
37 gmt = args$gmt |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
38 out_tab = args$out_tab |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
39 min_size = args$min_size |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
40 max_size = args$max_size |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
41 n_perm = args$n_perm |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
42 rda_opt = args$rda_opt |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
43 plot_opt = args$plot_opt |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
44 top_num = args$top_num |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
45 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
46 ## Basically using the steps from the fgsea vignette |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
47 rankTab <- read.table(rnk_file, header=header, colClasses = c("character", "numeric")) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
48 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
49 ranks <-rankTab[,2] |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
50 names(ranks) <- rankTab[,1] |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
51 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
52 if (gmt) { |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
53 pathways <- gmtPathways(sets_file) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
54 } else { |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
55 pathways <- load(sets_file) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
56 pathways <- get(pathways) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
57 } |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
58 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
59 fgseaRes <- fgsea(pathways, ranks, minSize=min_size, maxSize=max_size, nperm=n_perm) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
60 fgseaRes <- fgseaRes[order(pval), ] |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
61 # Convert leadingEdge column from list to character to output |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
62 fgseaRes$leadingEdge <- sapply(fgseaRes$leadingEdge, toString) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
63 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
64 write.table(fgseaRes, out_tab, sep="\t", row.names=FALSE, quote=FALSE) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
65 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
66 if (plot_opt) { |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
67 pdf("fgsea_plots.pdf", width=8) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
68 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
69 topPathways <- head(fgseaRes, n=top_num) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
70 topPathways <- topPathways$pathway |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
71 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
72 ## Make summary table plot for top pathways |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
73 plotGseaTable(pathways[topPathways], ranks, fgseaRes, gseaParam = 0.5, |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
74 colwidths = c(5.3,3,0.7, 0.9, 0.9)) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
75 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
76 # Make enrichment plots for top pathways |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
77 for (i in topPathways) { |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
78 p <- plotEnrichment(pathways[[i]], ranks) + labs(title=i) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
79 print(p) |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
80 } |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
81 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
82 dev.off() |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
83 } |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
84 |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
85 ## Output RData file |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
86 if (rda_opt) { |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
87 save.image(file = "fgsea_analysis.RData") |
9bb7943b5263
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fgsea commit 9a6eda48463d6c19e9c5f3f2f8109f33de74855d-dirty
iuc
parents:
diff
changeset
|
88 } |