annotate 16_fgsea/.Rhistory @ 2:9e75d29c2409 draft default tip

Uploaded
author dktanwar
date Mon, 18 Dec 2017 21:08:31 -0500
parents b75ceb945966
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
1 setwd("/Volumes/BINF1_Raid/home/dtanwar/projects/H3K4me3_McMasterU/exp/20171026-GO_analysis_232_changed_genes-11/20171027-ranked_genes_232")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
2 table <- read.delim("./input/20170722-genes_info_TSS_500bp.txt.xz", sep = "\t", header = T,
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
3 stringsAsFactors = F)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
4 View(table)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
5 table <- read.delim("./input/20170722-genes_info_TSS_500bp.txt.xz", sep = "\t", header = T,
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
6 stringsAsFactors = F)[,c(22,7)]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
7 View(table)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
8 sp_table <- split(x = table, f = table$SYMBOL)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
9 genes <- lapply(sp_table, function(x){
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
10 a <- x[1,]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
11 a[,2] <- mean(x[,2])
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
12 return(a)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
13 })
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
14 library(plyr)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
15 gl <- ldply(genes, data.frame)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
16 View(gl)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
17 gl <- ldply(genes, data.frame)[,-1]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
18 View(gl)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
19 gl[,1] <- toupper(gl[,1])
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
20 View(gl)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
21 write.table(gl, "./output/ranked_genes_list_232.rnk", quote = F, sep = "\t", row.names = F, col.names = F)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
22 setwd("/Volumes/BINF1_Raid/home/dtanwar/projects/H3K4me3_McMasterU/exp/20171026-GO_analysis_232_changed_genes-11/20171027-01_ranked_genes_232")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
23 library(plyr)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
24 table <- read.delim("./input/20170722-genes_info_TSS_500bp.txt.xz", sep = "\t", header = T,
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
25 stringsAsFactors = F)[,c(22,7)]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
26 sp_table <- split(x = table, f = table$SYMBOL)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
27 genes <- lapply(sp_table, function(x){
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
28 a <- x[1,]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
29 a[,2] <- mean(x[,2])
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
30 return(a)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
31 })
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
32 gl <- ldply(genes, data.frame)[,-1]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
33 write.table(gl, "./output/20171029-original_ranked_genes_list_232.rnk", quote = F, sep = "\t", row.names = F, col.names = F)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
34 gl[,1] <- toupper(gl[,1])
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
35 write.table(gl, "./output/ranked_genes_list_232.rnk", quote = F, sep = "\t", row.names = F, col.names = F)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
36 library(plyr)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
37 table <- read.delim("./input/20170722-genes_info_TSS_500bp.txt.xz", sep = "\t", header = T,
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
38 stringsAsFactors = F)[,c(22,7)]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
39 sp_table <- split(x = table, f = table$SYMBOL)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
40 genes <- lapply(sp_table, function(x){
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
41 a <- x[1,]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
42 a[,2] <- mean(x[,2])
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
43 return(a)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
44 })
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
45 gl <- ldply(genes, data.frame)[,-1]
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
46 gl
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
47 write.table(gl, "./output/20171029-original_ranked_genes_list_232.rnk", quote = F, sep = "\t", row.names = F, col.names = F)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
48 gl[,1] <- toupper(gl[,1])
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
49 write.table(gl, "./output/ranked_genes_list_232.rnk", quote = F, sep = "\t", row.names = F, col.names = F)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
50 # Send R errors to stderr
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
51 options(show.error.messages = F, error = function(){cat(geterrmessage(), file = stderr()); q("no", 1, F)})
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
52 # Avoid crashing Galaxy with an UTF8 error on German LC settings
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
53 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
54 # Import libraries
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
55 library("GenomicRanges")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
56 source("https://bioconductor.org/biocLite.R")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
57 biocLite()
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
58 source("http://bioconductor.org/biocLite.R")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
59 biocLite()
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
60 library("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
61 library("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
62 library("openxlsx")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
63 library("data.table")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
64 biocLite("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
65 # biocLite("openxlsx")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
66 biocLite("data.table")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
67 # Send R errors to stderr
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
68 options(show.error.messages = F, error = function(){cat(geterrmessage(), file = stderr()); q("no", 1, F)})
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
69 # Avoid crashing Galaxy with an UTF8 error on German LC settings
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
70 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
71 library("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
72 library("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
73 biocLite("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
74 source("http://bioconductor.org/biocLite.R")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
75 biocLite()
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
76 biocLite("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
77 biocLite("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
78 biocLite("Rcpp")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
79 biocLite("limma")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
80 biocLite("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
81 biocLite("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
82 source("http://bioconductor.org/biocLite.R")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
83 biocLite()
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
84 biocLite("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
85 biocLite("GenomicRanges")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
86 biocLite("Rsamtools")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
87 # Import libraries
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
88 library("GenomicRanges")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
89 library("Rsamtools")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
90 library("rtracklayer")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
91 library("parallel")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
92 library("foreach")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
93 library("doParallel")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
94 library("GenomicFeatures")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
95 library("Gviz")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
96 library("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
97 library("data.table")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
98 library("BSgenome")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
99 library("Biobase")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
100 library("iterators")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
101 library("Biostrings")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
102 library("IRanges")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
103 library("BiocGenerics")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
104 library("AnnotationDbi")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
105 library("XVector")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
106 library("GenomeInfoDb")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
107 library("S4Vectors")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
108 library("GenomicAlignments")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
109 library("BSgenome.Hsapiens.UCSC.hg19")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
110 library("org.Hs.eg.db")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
111 library("BSgenome.Mmusculus.UCSC.mm10")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
112 library("org.Mm.eg.db")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
113 library("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
114 library("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
115 # library("openxlsx")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
116 library("data.table")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
117 options(stringAsfactors = FALSE, useFancyQuotes = FALSE)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
118 source("https://bioconductor.org/biocLite.R")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
119 biocLite()
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
120 source("https://bioconductor.org/biocLite.R")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
121 biocLite()
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
122 library("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
123 library("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
124 # library("openxlsx")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
125 library("data.table")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
126 source("https://bioconductor.org/biocLite.R")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
127 biocLite("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
128 library("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
129 library("edgeR")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
130 # library("openxlsx")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
131 library("data.table")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
132 options(stringAsfactors = FALSE, useFancyQuotes = FALSE)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
133 # Take in trailing command line arguments
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
134 args <- commandArgs(trailingOnly = TRUE)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
135 # Get options using the spec as defined by the enclosed list
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
136 # Options are read from the default: commandArgs(TRUE)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
137 option_specification = matrix(c(
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
138 'input1', 'i1', 2, 'character',
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
139 'input2', 'i2', 2, 'character',
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
140 'input3', 'i3', 2, 'integer',
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
141 'input4', 'i4', 2, 'integer',
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
142 'output', 'o', 2, 'character'
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
143 ), byrow=TRUE, ncol=4);
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
144 # Parse options
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
145 options = getopt(option_specification)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
146 library("rworldmap")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
147 install.packages("rworldmap")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
148 library("rworldmap")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
149 theCountries <- c("DEU", "COD", "BFA")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
150 malDF <- data.frame(country = c("DEU", "COD", "BFA"),
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
151 malaria = c(1, 1, 1))
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
152 malMap <- joinCountryData2Map(malDF, joinCode = "ISO3",
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
153 nameJoinColumn = "country")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
154 mapCountryData(malMap, nameColumnToPlot="malaria", catMethod = "categorical",
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
155 missingCountryCol = gray(.8))
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
156 require(rgdal)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
157 require(rgeos)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
158 require(ggplot2)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
159 install.packages("rgdal")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
160 install.packages("rgeos")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
161 require(rgdal)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
162 require(rgeos)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
163 require(ggplot2)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
164 655 + 290 + 658
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
165 235+38+186
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
166 370+357+50+37+59+386+30+112+300
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
167 750+22+49+25+317
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
168 750+22+49+25+317 +6
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
169 239 + 61+760
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
170 1060+1169+1701
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
171 235+38+186
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
172 3930+459
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
173 653+571+546+211+
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
174 0
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
175 1981+1235+1148
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
176 4364+43
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
177 1701-40
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
178 459+1661+1060
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
179 459+1661+1060 +1169
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
180 459-27
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
181 370+205+6+179+360+455
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
182 432+1575+1060+1169
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
183 mat <- matrix(data = c(1:9), nrow = 3, ncol = 3, byrow = T)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
184 mat
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
185 apply(mat, 1, mean)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
186 apply(mat, 2, mean)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
187 vec <- 1:10
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
188 apply(X = vec, 1, print)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
189 apply(X = vec, 2, print)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
190 sapply(X = vec, FUN = print)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
191 sapply(X = vec, FUN = print, simplify = T)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
192 sapply(X = vec, FUN = print, simplify = F)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
193 sapply(X = vec, FUN = function(x) x -1)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
194 as.integer(c(4.1, 5.2, 6.3, 6.4))
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
195 as.numeric(c(4.1, 5.2, 6.3, 6.4))
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
196 ?quantile
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
197 ?read.table
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
198 ?hist
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
199 ?boxplot
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
200 ?read.csv
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
201 ?quantile
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
202 quantile(x <- rnorm(1001)) # Extremes & Quartiles by default
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
203 res <- matrix(as.numeric(NA), 9, 7)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
204 res
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
205 for(type in 1:9) res[type, ] <- y <- quantile(x, p, type = type)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
206 dimnames(res) <- list(1:9, names(y))
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
207 for(type in 1:9) res[type, ] <- y <- quantile(x, p, type = type)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
208 setwd("~/Desktop/planemo_tools/16_fgsea")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
209 # Send R errors to stderr
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
210 options(show.error.messages = F, error = function(){cat(geterrmessage(), file = stderr()); q("no", 1, F)})
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
211 # Avoid crashing Galaxy with an UTF8 error on German LC settings
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
212 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
213 # Import library
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
214 library("getopt")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
215 library("fgsea")
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
216 options(stringAsfactors = FALSE, useFancyQuotes = FALSE)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
217 # Take in trailing command line arguments
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
218 args <- commandArgs(trailingOnly = TRUE)
b75ceb945966 Uploaded
dktanwar
parents:
diff changeset
219 sessionInfo()