-
Notifications
You must be signed in to change notification settings - Fork 1
/
SourceFile_template.R
executable file
·50 lines (45 loc) · 1.76 KB
/
SourceFile_template.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
#############################
# this is a template source file
# please change all paths accordingly
#############################
#############################
# Working directory
#############################
projectpath = "/PATH/TO/PROJECTS/CKDGen_ChrX/"
projectpath_main = "/PATH/TO/PROJECTS/CKDGen_ChrX/scripts/"
path_data = "/PATH/TO/PROJECTS/CKDGen_ChrX/data/"
#############################
# R library and R packages
#############################
.libPaths("/PATH/TO/RLibrary/VERSION_4.x/")
.libPaths()
suppressPackageStartupMessages(library(data.table))
setDTthreads(1)
suppressPackageStartupMessages(library(foreach))
suppressPackageStartupMessages(library(toolboxH))
suppressPackageStartupMessages(library(doMC))
suppressPackageStartupMessages(library(readxl))
suppressPackageStartupMessages(library(WriteXLS))
suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(coloc))
suppressPackageStartupMessages(library(biomaRt))
suppressPackageStartupMessages(library(GenomicRanges))
suppressPackageStartupMessages(library(rtracklayer))
suppressPackageStartupMessages(library(doParallel))
suppressPackageStartupMessages(library(ggplot2))
suppressPackageStartupMessages(library(ggcorrplot))
suppressPackageStartupMessages(library(RColorBrewer))
suppressPackageStartupMessages(library(ggrepel))
suppressPackageStartupMessages(library(gtx))
#############################
# Other Tools
#############################
path_plink2 = "/PATH/TO/TOOLS/plink2.0/20210203/unix_64/plink2"
path_gcta = "/PATH/TO/TOOLS/gcta_v1.94.0/gcta"
#############################
# Downloaded/requested data sets
#############################
path_GTExv8 = "/PATH/TO/DATA/GTEx_v8/"
path_NephQTL = "/PATH/TO/DATA/NEPTUNE/"
path_HUNT = "/PATH/TO/DATA/HUNT/"
path_UKBB = "/PATH/TO/DATA/UKBB/"