Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bios4biol
bioinfo-utils
Commits
063fede3
Commit
063fede3
authored
Oct 25, 2018
by
Celine Noirot
Browse files
Debug library dependancies
parent
000aeca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/GOEnrichment.R
View file @
063fede3
...
...
@@ -15,12 +15,13 @@
packages
<-
c
(
"optparse"
,
# to read arguments from a command line
"ggplot2"
,
# nice plots
"RJSONIO"
,
# work with JSON file
"DBI"
)
"DBI"
,
"svglite"
)
for
(
package
in
packages
){
# if package is installed locally, load
if
(
!
(
package
%in%
rownames
(
installed.packages
())))
{
install.packages
(
package
)
install.packages
(
package
,
repos
=
"http://cran.univ-paris1.fr"
)
}
do.call
(
'library'
,
list
(
package
))
}
...
...
@@ -29,6 +30,8 @@ for(package in packages){
if
(
!
(
"topGO"
%in%
rownames
(
installed.packages
())))
{
source
(
"http://www.bioconductor.org/biocLite.R"
)
biocLite
(
"topGO"
,
suppressUpdates
=
TRUE
,
suppressAutoUpdate
=
TRUE
,
ask
=
FALSE
)
biocLite
(
"Rgraphviz"
,
suppressUpdates
=
TRUE
,
suppressAutoUpdate
=
TRUE
,
ask
=
FALSE
)
}
library
(
topGO
)
# GO enrichment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment