-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUtils.R
32 lines (27 loc) · 861 Bytes
/
Utils.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
#=== UTILS ===#
# Axel Rosendahl Huber
# Purpose: Load the commonly used packages and created functions for the Genotoxic E.coli study
# ==== Miscealaneous ===== #
options(stringsAsFactors = F) # Prevent conversion of strings to factors in dataframe
library(tidyverse)
library(MutationalPatterns)
library(BSgenome)
library(BSgenome.Hsapiens.UCSC.hg19)
library(reshape2)
library(ggdendro)
library(ggplot2)
library(tidyverse)
library(magrittr)
library(VariantAnnotation)
library(pracma)
# ======== Retrieve and source all functions ===== #
wd <- getwd()
setwd(paste(wd, "/Functions", sep = ""))
# Get all available functions in the Scripts/R_functions folder
functions <- dir(pattern = ".R")
for (i in functions) {
source(i)
cat("Loading function:", i, "\n" , sep = " ")
}
setwd(wd)
ref_genome <- "BSgenome.Hsapiens.UCSC.hg19"