-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeCGI.R
25 lines (21 loc) · 825 Bytes
/
makeCGI.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
# Discover CpG islands (CGI) using Daphnia pulex BSgenome library
# Reference Links:
# https://genome.ucsc.edu/goldenPath/customTracks/custTracks.html
# https://www.haowulab.org/software/makeCGI/index.html
# Download & install
download.file(url = "https://www.haowulab.org/software/makeCGI/makeCGI_1.3.4.tar.gz",
destfile = "makeCGI_1.3.4.tar.gz")
install.packages("makeCGI_1.3.4.tar.gz", repos = NULL, type = "source")
# 1) Load in the libraries
library(makeCGI)
library(BSgenome.Dpulex.NCBI.ASM2113471v1)
# 2) Set up default parameters
# Dpulex
.CGIoptions = CGIoptions()
.CGIoptions$rawdat.type = "BSgenome"
.CGIoptions$package = "BSgenome.Dpulex.NCBI.ASM2113471v1"
.CGIoptions$species = "Dpulex"
.CGIoptions$cutoff.CpG = 0.975
# 3) Start running:
makeCGI(.CGIoptions)
# Result is saved to CGI-Dpulex.txt