-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrunIntrogress.Rd
80 lines (68 loc) · 2.49 KB
/
runIntrogress.Rd
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
75
76
77
78
79
80
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/genomicClinesXenvironment.R
\name{runIntrogress}
\alias{runIntrogress}
\title{Functions to run INTROGRESS and correlate genomic clines X environment}
\usage{
runIntrogress(
p1.file,
p2.file,
admix.file,
loci.file,
clineLabels = c("P1", "Het", "P2"),
minDelt = 0.8,
prefix = "population1",
outputDIR = "./plots",
showPLOTS = FALSE,
sep = "\\t",
pop.id = FALSE,
ind.id = FALSE,
fixed = FALSE
)
}
\arguments{
\item{p1.file}{Character string; File path for INTROGRESS p1 input file}
\item{p2.file}{Character string; File path for INTROGRESS p2 input file}
\item{admix.file}{Character string; File path for INTROGRESS admixed file}
\item{loci.file}{Character string; File path for INTROGRESS loci file}
\item{clineLabels}{Character vector of length == 3 for c(P1, Het, P2)
populations}
\item{minDelt}{Numeric; Minimum allele frequency delta to retain loci for
INTROGRESS}
\item{prefix}{Character string; Population prefix for input and output files}
\item{outputDIR}{Character string; File path for INTROGRESS output}
\item{showPLOTS}{Boolean; Whether to print the plots to the screen}
\item{sep}{Character string; Column delimiter for INTROGRESS input files}
\item{pop.id}{Boolean; Value for INTROGRESS parameter pop.id.
See ?prepare.data in introgress R pacakge}
\item{ind.id}{Boolean; Value for INTROGRESS parameter ind.id
See ?prepare.data in introgress R package}
\item{fixed}{Boolean; TRUE if input data are fixed SNPs}
}
\value{
List object containing genomic cline output
}
\description{
These functions run INTROGRESS and generate genomic clines. The genomic
clines are then correlated with the raster values at each sampling locality
for the raster layers determined to be the best predictors for species
distributions in MAXENT. See ?prepare_rasters, ?partition_raster_bg,
?runENMeval, ?summarize_ENMeval, and ?extractPointValues.
}
\details{
Function to run INTROGRESS
}
\examples{
eatt <- runIntrogress(p1.file = "EATT_p1data.txt",
p2.file = "EATT_p2data.txt",
admix.file = "EATT_admix.txt",
loci.file = "EATT_loci.txt",
clineLabels = c("EA", "Het", "TT")
minDelt = 0.8,
prefix = "eatt",
outputDIR = "./introgress_plots",
sep = "\t",
pop.id = FALSE,
ind.id = FALSE,
fixed = FALSE)
}