Mercurial > repos > iuc > multigsea
annotate multiGSEA.R @ 1:e48b10ce08b8 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
author | iuc |
---|---|
date | Wed, 21 Feb 2024 15:41:52 +0000 |
parents | 28e29a3d0eda |
children |
rev | line source |
---|---|
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
1 library(multiGSEA, |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
2 quietly = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
3 warn.conflicts = FALSE |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
4 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
5 library(argparse, quietly = TRUE, warn.conflicts = FALSE) |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
6 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
7 ################################################################################ |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
8 ### Input Processing |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
9 ################################################################################ |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
10 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
11 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
12 # Collect arguments from command line |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
13 parser <- ArgumentParser(description = "multiGSEA R script") |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
14 |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
15 parser$add_argument("--transcriptomics", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
16 required = FALSE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
17 help = "Transcriptomics data" |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
18 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
19 parser$add_argument( |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
20 "--transcriptome_ids", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
21 required = FALSE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
22 help = "Transcriptomics ids", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
23 default = "SYMBOL" |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
24 ) |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
25 parser$add_argument("--proteomics", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
26 required = FALSE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
27 help = "Proteomics data" |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
28 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
29 parser$add_argument( |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
30 "--proteome_ids", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
31 required = FALSE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
32 help = "Proteomics ids", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
33 default = "SYMBOL" |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
34 ) |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
35 parser$add_argument("--metabolomics", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
36 required = FALSE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
37 help = "Metabolomics data" |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
38 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
39 parser$add_argument( |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
40 "--metabolome_ids", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
41 required = FALSE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
42 help = "Metabolomics ids", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
43 default = "HMDB" |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
44 ) |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
45 parser$add_argument("--organism", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
46 required = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
47 help = "Organism" |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
48 ) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
49 parser$add_argument("--combine_pvalues", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
50 required = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
51 help = "Combine p-values method" |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
52 ) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
53 parser$add_argument("--padj_method", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
54 required = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
55 help = "P-adjustment method" |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
56 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
57 parser$add_argument("--databases", |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
58 required = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
59 help = "Pathway databases" |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
60 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
61 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
62 args <- parser$parse_args() |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
63 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
64 ## ----Load library------------------------------------------------------------- |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
65 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
66 organism_mapping <- c( |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
67 "hsapiens" = "org.Hs.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
68 "mmusculus" = "org.Mm.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
69 "rnorvegicus" = "org.Rn.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
70 "cfamiliaris" = "org.Cf.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
71 "btaurus" = "org.Bt.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
72 "sscrofa" = "org.Ss.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
73 "ggallus" = "org.Gg.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
74 "drerio" = "org.Xl.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
75 "xlaevis" = "org.Dr.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
76 "dmelanogaster" = "org.Dm.eg.db", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
77 "celegans" = "org.Ce.eg.db" |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
78 ) |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
79 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
80 library(organism_mapping[args$organism], character.only = TRUE) |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
81 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
82 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
83 ## ----Load omics data---------------------------------------------------------- |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
84 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
85 layer <- c() |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
86 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
87 if (!is.null(args$transcriptomics)) { |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
88 transcriptome <- read.csv( |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
89 args$transcriptomics, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
90 header = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
91 sep = "\t", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
92 dec = "." |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
93 ) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
94 layer <- append(layer, "transcriptome") |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
95 } |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
96 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
97 if (!is.null(args$proteomics)) { |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
98 proteome <- read.csv(args$proteomics, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
99 header = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
100 sep = "\t", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
101 dec = "." |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
102 ) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
103 layer <- append(layer, "proteome") |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
104 } |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
105 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
106 if (!is.null(args$metabolomics)) { |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
107 metabolome <- read.csv(args$metabolomics, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
108 header = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
109 sep = "\t", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
110 dec = "." |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
111 ) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
112 layer <- append(layer, "metabolome") |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
113 } |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
114 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
115 ## ----rank_features------------------------------------------------------------ |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
116 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
117 # create data structure |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
118 omics_data <- initOmicsDataStructure(layer) |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
119 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
120 ## add transcriptome layer |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
121 if (!is.null(args$transcriptomics)) { |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
122 omics_data$transcriptome <- rankFeatures( |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
123 transcriptome$logFC, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
124 transcriptome$pValue |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
125 ) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
126 names(omics_data$transcriptome) <- transcriptome$Symbol |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
127 } |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
128 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
129 ## add proteome layer |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
130 if (!is.null(args$proteomics)) { |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
131 omics_data$proteome <- rankFeatures(proteome$logFC, proteome$pValue) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
132 names(omics_data$proteome) <- proteome$Symbol |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
133 } |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
134 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
135 ## add metabolome layer |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
136 ## HMDB features have to be updated to the new HMDB format |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
137 if (!is.null(args$metabolomics)) { |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
138 omics_data$metabolome <- |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
139 rankFeatures(metabolome$logFC, metabolome$pValue) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
140 names(omics_data$metabolome) <- metabolome$HMDB |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
141 names(omics_data$metabolome) <- gsub( |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
142 "HMDB", "HMDB00", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
143 names(omics_data$metabolome) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
144 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
145 } |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
146 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
147 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
148 ## remove NA's and sort feature ranks |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
149 omics_data <- lapply(omics_data, function(vec) { |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
150 sort(vec[!is.na(vec)]) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
151 }) |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
152 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
153 ## ----Pathway definitions------------------------------------------------------ |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
154 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
155 pathways <- |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
156 getMultiOmicsFeatures( |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
157 dbs = unlist(strsplit(args$databases, ",", fixed = TRUE)), |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
158 layer = layer, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
159 returnTranscriptome = args$transcriptome_ids, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
160 returnProteome = args$proteome_ids, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
161 returnMetabolome = args$metabolome_ids, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
162 organism = args$organism, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
163 useLocal = FALSE |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
164 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
165 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
166 ## ----calculate enrichment----------------------------------------------------- |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
167 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
168 enrichment_scores <- |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
169 multiGSEA(pathways, omics_data) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
170 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
171 ## ----combine_pvalues---------------------------------------------------------- |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
172 |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
173 df <- extractPvalues( |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
174 enrichmentScores = enrichment_scores, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
175 pathwayNames = names(pathways[[1]]) |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
176 ) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
177 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
178 df$combined_pval <- |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
179 combinePvalues(df, method = args$combine_pvalues) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
180 df$combined_padj <- |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
181 p.adjust(df$combined_pval, method = args$padj_method) |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
182 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
183 df <- cbind(data.frame(pathway = names(pathways[[1]])), df) |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
184 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
185 ## ----Write output------------------------------------------------------------- |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
186 |
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
187 write.table( |
1
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
188 df, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
189 file = "results.tsv", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
190 quote = FALSE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
191 sep = "\t", |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
192 col.names = TRUE, |
e48b10ce08b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 945cc63f011002e3f61d7e848d556b647e9c8878
iuc
parents:
0
diff
changeset
|
193 row.names = FALSE |
0
28e29a3d0eda
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multigsea commit 5c1b8a2b105a80e236f88e71a743147d79925ac4
iuc
parents:
diff
changeset
|
194 ) |