-
Notifications
You must be signed in to change notification settings - Fork 15
/
global.R
74 lines (59 loc) · 2.35 KB
/
global.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Author: Tokhir Dadaev
# License: MIT + file LICENSE.txt
# Workspace ---------------------------------------------------------------
#CRAN packages
# install.packages(c("shiny", "data.table", "dplyr", "lazyeval",
# "ggplot2", "ggrepel", "knitr", "markdown","DT",
# "lattice", "acepack", "cluster", "DBI", "scales",
# "colourpicker"))
library(shiny)
library(dplyr)
library(tidyr)
library(lazyeval) # dplyr
library(data.table)
library(ggplot2)
library(ggrepel) # geom_text_repel
library(knitr)
library(markdown)
library(DT)
library(lattice) # ggbio
library(acepack) # ggbio
library(cluster)
library(DBI) # gene plot
library(colourpicker)
library(igraph)
library(visNetwork)
#Bioconductor packages
# if (!requireNamespace("BiocManager", quietly = TRUE))
# install.packages("BiocManager")
# BiocManager::install(c("ggbio","GenomicRanges","TxDb.Hsapiens.UCSC.hg19.knownGene",
# "org.Hs.eg.db","rtracklayer"))
library(ggbio)
library(GenomicRanges)
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
library(org.Hs.eg.db) # gene symobols
library(rtracklayer) # bigwig
#GitHub packages
# install.packages("remotes")
# remotes::install_github("oncogenetics/oncofunco")
library(oncofunco)
# increase upload limit to 20Mb
options(shiny.maxRequestSize = 20 * 1024 ^ 2)
#Map fonts to Windows
if(Sys.info()['sysname'] == "Windows") {
windowsFonts(Courier=windowsFont("TT Courier New"))
}
# Data --------------------------------------------------------------------
# 01. prostate data region names ------------------------------------------
regions <- fread("Data/ProstateData/regions.csv", header = TRUE)
# 02. OncoFinemap: annot ---------------------------------------------------
annotOncoFinemap <- fread("Data/Annotation/Supp_Data1_clean_annot.csv", header = TRUE)
annotOncoFinemapEQTL <- fread("Data/Annotation/Supp_Data1_clean_eqtl.csv", header = TRUE)
# 03. wgEncodeBroadHistone ------------------------------------------------
#wgEncodeBroadHistone bigwig data description
wgEncodeBroadHistoneFileDesc <-
read.csv("Data/wgEncodeBroadHistone/wgEncodeBroadHistone.csv",
stringsAsFactors = FALSE)
# 04. GeneticMap1KG -------------------------------------------------------
GeneticMap1KG <- readRDS("Data/GeneticMap1KG/GeneticMap1KG.rds")
# TESTING -----------------------------------------------------------------