-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.R
47 lines (38 loc) · 1.3 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
## Load necessary packages
library(shiny)
library(shinycssloaders)
library(shinyjs)
library(shinythemes)
library(markdown)
library(GenomicRanges)
library(DT)
library(plotRegulome)
library(magrittr)
## Add informtion for link preview
share <- list(
title = "The Islet Regulome Browser",
url = "http://http://isletregulome.com",
image = "http://http://isletregulome.com/isletregulome/favicon.png",
description = "The Islet Regulome Browser is a visualization tool that provides access to interactive exploration of pancreatic islet genomic data.",
twitter_user = "isletregulome"
)
## Path for IsletRegulome files
path <- "PIRB_database/"
## Create chromosome names
chr.names <- paste0("chr", c(1:23, "X", "Y"))
## Load chr lengths
load(paste0(path, "shared/hg19_len.rda"))
## Load gene names
load(paste0(path, "shared/genes_key.rda"))
## Load info from baits (Virtual 4C)
load(paste0(path, "hg19/virtual4c/baitID_keyTable.rda"))
ids <- unique(ids[order(ids$baitName), c(1:2,7)])
# Select only those for which a file exists
ids <- ids[ids$fileExists,]
list.art4C <- ids$baitID
names(list.art4C) <- ids$baitName
## Load UI elements ---------------------------
source("ui_elements/sidebarPanel.R")
source("ui_elements/mainPanelPlot.R")
source("ui_elements/mainPanelTable.R")
source("ui_elements/mainPanelTopbar.R")