-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrunParallelNewHybs_step3.R
More file actions
48 lines (32 loc) · 1.63 KB
/
runParallelNewHybs_step3.R
File metadata and controls
48 lines (32 loc) · 1.63 KB
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
############################################################################
# This R script is meant to be run in conjunction with
# hybriddetective (https://github.com/bwringe/hybriddetective).
# It assumes that the first two functions (steps) in the hybriddetective
# pipeline, getTopLoci() and freqbasedsim_AlleleSample(), have already been run.
# The output files from getTopLoci() should be in a directory with nothing
# else in it. Also try not to get too crazy with paths (trust me).
############################################################################
#devtools::install_github("bwringe/parallelnewhybrid")
library("parallel")
library("plyr")
library("stringr")
library("tidyr")
library("parallelnewhybrid")
## Get the file path to the working directory
path.hold <- getwd()
#############################################################################
###*** SETTINGS - SET THESE BEFORE RUNNING ANALYSIS ***###
###*** SET THE DIRECTORY FOR THE ANALYSIS HERE ***###
### Must have forward slashes at beginning and end ###
popDir <- "/simRunsX10/"
###*** SET THE BURNIN AND SWEEPS (AFTER BURN-IN) HERE***###
bIn = 200000
swps = 1000000
## Create an object that is the file path to the folder in which
## NewHybrids is installed. Note: this folder must be named "newhybrids"
my.NH <- "/home/btm002/hybrid_detective/newhybrids/"
###*** END OF SETTINGS ***###
##############################################################################
## Execute parallelnh.
parallelnh_LINUX(folder.data = paste0(path.hold, popDir),
where.NH = my.NH, burnin = bIn, sweeps = swps)