-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlobalSession.R
38 lines (29 loc) · 1.61 KB
/
GlobalSession.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
globalSession <- list()
globalSession$static$HOME_DIR <- "/home/echu113/ws_rstudio/"
initGlobalSession <- function() {
# LOAD INTERNAL DEPENDENCIES ===================================================
library(tidyverse)
library(limma)
library(pheatmap)
library(homologene)
library(parallel)
# ==============================================================================
# -----------------------------
# PUBLIC
# -----------------------------
public <- list()
public$HOME_DIR <- globalSession$static$HOME_DIR
public$WORKSPACES <- paste0(public$HOME_DIR, "_workspaces/")
public$UTILS_DIR <- paste0(public$HOME_DIR, "utils/")
public$EXPRESSION_DATA_DIR <- paste0(public$HOME_DIR, "expression_data/")
public$BEDS_DATA_DIR <- paste0(public$HOME_DIR, "beds_data/")
# LOAD INTERNAL DEPENDENCIES ===================================================
source(paste0(public$UTILS_DIR, "CollectionUtils.R")); public$collectionUtils <- constructCollectionUtils()
source(paste0(public$UTILS_DIR, "GraphingUtils.R")); public$graphingUtils <- constructGraphingUtils()
source(paste0(public$UTILS_DIR, "DataWranglerUtils.R")); public$dataWrangler <- constructDataWrangler()
source(paste0(public$UTILS_DIR, "EvaluationUtils.R")); public$evaluationUtils <- constructEvaluationUtils()
# source(paste0(public$UTILS_DIR, "OntologyUtils.R")); public$ontologyUtils <- constructOntology(public)
# source(paste0(public$UTILS_DIR, "LiftOverUtils.R")); public$liftOverUtils <- constructLiftOverUtils(public)
# ==============================================================================
return(public)
}