You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GeneLab_Reference_Annotations/Workflow_Documentation/GL_RefAnnotTable-A/workflow_code/install-org-db.R
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# install-org-db.R
2
2
3
+
# Set R library path to current working directory
4
+
lib_path<- file.path(getwd())
5
+
.libPaths(lib_path)
6
+
7
+
# Load required libraries
8
+
library(tidyverse)
9
+
library(AnnotationForge)
10
+
library(BiocManager)
11
+
3
12
# Function: Get annotations db from ref table. If no annotations db is defined, create the package name from genus, species, (and strain for microbes),
4
13
# Try to Bioconductor install annotations db. If fail then build the package using AnnotationForge, install it into the current directory.
0 commit comments