-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathGENE_GERP_Singletons.R
More file actions
367 lines (276 loc) · 17.2 KB
/
GENE_GERP_Singletons.R
File metadata and controls
367 lines (276 loc) · 17.2 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
############################################
### Analyze genes and GERP info together ###
### FOCUS ON SINGLETON SITES ###
############################################
### Timothy M. Beissinger
### 12-11-2014
### Load singleton info
load("../OUTS/tF_maize.Robj")
tF.maize <- allChromosomes
load("../OUTS/tF_teo.Robj")
tF.teo <- allChromosomes
### Compute tF per site
names(tF.maize)[5] <- "tF.win"
names(tF.teo)[5] <- "tF.win"
tF.maize$tF <- tF.maize$tF/tF.maize$nSites
tF.teo$tF <- tF.teo$tF/tF.teo$nSites
### Trim tF matrices
tF.maize.backup <- tF.maize
tF.teo.backup <- tF.teo
tF.maize <- tF.maize[which(tF.maize$nSites>=100),]
tF.teo <- tF.teo[which(tF.teo$nSites>=100),]
#########################################################################
### Determine cM position for each gene by interpolating from panzea map
map <- read.table("../SNPs/NAM_phasedImputed_1cM_AllZeaGBSv2.3_allChrs/NAM_phasedImputed_1cM_AllZeaGBSv2.3_allChrs.hmp.txt",header=T,stringsAsFactors=F,sep="\t",comment.char="")
map <- map[,1:5]
ensemblUp <- map[,c(3,4,4)]
#write.table(file="../SNPs/ensemblUp.txt",ensemblUp,quote=F,col.names=F,row.names=F) # upload this file to ensembl to convert to maize v3
ensemblDown <- read.table("../SNPs/ensemblDown.gff",header=F,stringsAsFactors=F,sep="\t")
rem <- which(abs(as.numeric(ensemblUp[,2])-as.numeric(ensemblDown[,4])) > 2000000) #identify positions with massive shifts
map$posV3 <- ensemblDown[,4]
map <- map[-rem,] #remove positions with massive shifts
### Interpolate genetic position for every tF.maize position with info
chrLengths <- c(301476924,237917468,232245527,242062272,217959525,169407836,176826311,175377492,157038028,149632204)
maizeCm <- rep(NA,nrow(tF.maize))
rows <- nrow(tF.maize)
for(i in 1:nrow(tF.maize)){
cat( 100*i/rows, "% done", "\r")
lowerIndex <- which(map$chrom == tF.maize$chr[i] & map$posV3 <= tF.maize$center[i]) #find index of map anchors smaller than observed position
belowPhys <- max(map$posV3[lowerIndex[length(lowerIndex)]],1,na.rm=T) #take largest position of anchor that is smaller than observed position
belowGen <- max(map$cm[lowerIndex[length(lowerIndex)]],map$cm[which(map$chrom==tF.maize$chr[i])][1]-1,na.rm=T) #take corresponding genetic position
higherIndex <- which(map$chrom == tF.maize$chr[i] & map$posV3 > tF.maize$center[i]) #find index of map anchors larger than observed position
abovePhys <- min(map$posV3[higherIndex[1]],chrLengths[tF.maize$chr[i]],na.rm=T) #take smallest position of anchor that is larger than observed position
aboveGen <- min(map$cm[higherIndex[1]],map$cm[which(map$chrom==tF.maize$chr[i])][length(which(map$chrom==tF.maize$chr[i]))]+1,na.rm=T) #take corresponding genetic position
scale <- {tF.maize$center[i]-belowPhys}/{abovePhys-belowPhys} #compute linear scale for position of observed relative to anchors
newGen <- {aboveGen-belowGen}*scale + belowGen # compute genetic position for observed position
maizeCm[i] <- newGen
}
tF.maize$cm <- maizeCm
save.image("GENE_GERP_Singletons.RData")
### Interpolate genetic position for every tF.teo position with info
chrLengths <- c(301476924,237917468,232245527,242062272,217959525,169407836,176826311,175377492,157038028,149632204)
teoCm <- rep(NA,nrow(tF.teo))
rows <- nrow(tF.teo)
for(i in 1:nrow(tF.teo)){
cat( 100*i/rows, "% done", "\r")
lowerIndex <- which(map$chrom == tF.teo$chr[i] & map$posV3 <= tF.teo$center[i]) #find index of map anchors smaller than observed position
belowPhys <- max(map$posV3[lowerIndex[length(lowerIndex)]],1,na.rm=T) #take largest position of anchor that is smaller than observed position
belowGen <- max(map$cm[lowerIndex[length(lowerIndex)]],map$cm[which(map$chrom==tF.teo$chr[i])][1]-1,na.rm=T) #take corresponding genetic position
higherIndex <- which(map$chrom == tF.teo$chr[i] & map$posV3 > tF.teo$center[i]) #find index of map anchors larger than observed position
abovePhys <- min(map$posV3[higherIndex[1]],chrLengths[tF.teo$chr[i]],na.rm=T) #take smallest position of anchor that is larger than observed position
aboveGen <- min(map$cm[higherIndex[1]],map$cm[which(map$chrom==tF.teo$chr[i])][length(which(map$chrom==tF.teo$chr[i]))]+1,na.rm=T) #take corresponding genetic position
scale <- {tF.teo$center[i]-belowPhys}/{abovePhys-belowPhys} #compute linear scale for position of observed relative to anchors
newGen <- {aboveGen-belowGen}*scale + belowGen # compute genetic position for observed position
teoCm[i] <- newGen
}
tF.teo$cm <- teoCm
save.image("GENE_GERP_Singletons.RData")
### Load gene data, previously calculated in Diversity_vs_Gene_Density.R script
load("genesMod.Robj")
### Determine gene center
genesMod$center.cM <- {genesMod$end.cM - genesMod$start.cM}/2 + genesMod$start.cM
names(genesMod)[7]
geneList <- list()
for(i in 1:10){
geneList[[i]] <- genesMod$center.cM[which(genesMod$chromosome_name == i)]
}
### Determine distance to gene center maize
geneDist<-function(tF,geneList){ min(abs(tF[8] - geneList[[tF[1]]]),na.rm=T)}
tF.maize$distanceToGene <- apply(tF.maize,1,geneDist,geneList=geneList)
save.image("GENE_GERP_Singletons.RData")
### Determine distance to gene center teosinte
tF.teo$distanceToGene <- apply(tF.teo,1,geneDist,geneList=geneList)
save.image("GENE_GERP_Singletons.RData")
### Load gerp data, previously calculated in Diversity_vs_GERP.R script
load("gerpElements.Robj")
### Determine gerp element center
gerpElements$center.cM <- {gerpElements$end.cM - gerpElements$start.cM}/2 + gerpElements$start.cM
gerpList <- list()
for(i in 1:10){
gerpList[[i]] <- gerpElements$center.cM[which(gerpElements$chr == i)]
}
### Determine distance to gerp center maize
gerpDist<-function(tF,gerpList){ min(abs(tF[8] - gerpList[[tF[1]]]),na.rm=T)}
tF.maize$distanceToGerp <- apply(tF.maize,1,gerpDist,gerpList=gerpList)
save.image("GENE_GERP_Singletons.RData")
### Determine distance to gerp center teosinte
tF.teo$distanceToGerp <- apply(tF.teo,1,gerpDist,gerpList=gerpList)
save.image("GENE_GERP_Singletons.RData")
### Make new data frame with distance to putative functional element
tF.maize$distanceToElement <- apply(cbind(tF.maize$distanceToGene,tF.maize$distanceToGerp),1,min)
tF.teo$distanceToElement <- apply(cbind(tF.teo$distanceToGene,tF.teo$distanceToGerp),1,min)
### Standardize by neutral diversity
tF_maizeN <- mean(tF.maize$tF[which(tF.maize$distanceToElement>=0.01)],na.rm=T)
tF_teoN <- mean(tF.teo$tF[which(tF.teo$distanceToElement>=0.01)],na.rm=T)
tF.maize$tF.standardized.by.N <- tF.maize$tF/tF_maizeN
tF.teo$tF.standardized.by.N <- tF.teo$tF/tF_teoN
### Neutral-Standardized Spline
TeoSpline.neutral.standardized <- smooth.spline(tF.teo$distanceToElement,tF.teo$tF.standardized.by.N)
MaizeSpline.neutral.standardized <- smooth.spline(tF.maize$distanceToElement,tF.maize$tF.standardized.by.N)
### Plot
plot(NULL,xlim=c(0,0.1),ylim=c(0.4,1.2),xlab="Distance to Gene or Element (cM)",ylab="Singleton Diversity / Neutral Singleton Diversity (1kb windows)")
lines(TeoSpline.neutral.standardized,col="blue",lwd=3)
lines(MaizeSpline.neutral.standardized,col="red",lwd=3)
legend("topright","(x,y)",col=c("red","blue"),c("Maize","Teosinte"),lwd=3)
par(new = TRUE)
par(fig = c(0.47, 0.97, 0.1, 0.6))
plot(NULL,xlim=c(0,0.002),ylim=c(0.4,1),xlab="",ylab="",main="",cex.axis=0.75)
lines(TeoSpline.neutral.standardized,col="blue",lwd=2)
lines(MaizeSpline.neutral.standardized,col="red",lwd=2)
#text(0.004,-0.55,"Zoom",cex=1.5)
#############################################################################
### Assess significance! ##########################################
#############################################################################
TeoMat <- matrix(NA,nrow=1000000,ncol=100)
MaizeMat <- matrix(NA,nrow=1000000,ncol=100)
for(i in 1:100){
print(i)
maizeBoot <- sample(nrow(tF.maize),replace=T)
teoBoot <- sample(nrow(tF.teo),replace=T)
tF.maize.boot <- tF.maize[maizeBoot,]
tF.teo.boot <- tF.teo[teoBoot,]
### Standardize by neutral diversity
tF_maizeN.boot <- mean(tF.maize.boot$tF[which(tF.maize.boot$distanceToElement>=0.01)])
tF_teoN.boot <- mean(tF.teo.boot$tF[which(tF.teo.boot$distanceToElement>=0.01)])
tF.maize.boot$tF.standardized.by.N <- tF.maize.boot$tF/tF_maizeN.boot
tF.teo.boot$tF.standardized.by.N <- tF.teo.boot$tF/tF_teoN.boot
### Neutral-Standardized Spline
TeoSpline.neutral.standardized.boot <- smooth.spline(tF.teo.boot$distanceToElement,tF.teo.boot$tF.standardized.by.N)
MaizeSpline.neutral.standardized.boot <- smooth.spline(tF.maize.boot$distanceToElement,tF.maize.boot$tF.standardized.by.N)
TeoMat[,i] <- predict(TeoSpline.neutral.standardized.boot,seq(0,0.1,length.out=1000000))$y
MaizeMat[,i] <- predict(MaizeSpline.neutral.standardized.boot,seq(0,0.1,length.out=1000000))$y
}
### Determine 95% intervals
TeoLow <- apply(TeoMat,1,quantile,0.025)
TeoHigh <- apply(TeoMat,1,quantile,0.975)
MaizeLow <- apply(MaizeMat,1,quantile,0.025)
MaizeHigh <- apply(MaizeMat,1,quantile,0.975)
options(scipen=100)
pdf("distanceToElement_WithSignificance_Singletons.pdf",height=10,width=10)
#png("distanceToElement_WithSignificance_Singletons.png")
x <- seq(0,0.1,length.out=1000000)
plot(x,TeoLow,col="blue",type="n",xlim=c(0,0.05),ylim=c(0.4,1.1),ylab="Singleton Diversity / Neutral Singleton Diversity",xlab="Distance to Gene or Element (cM)")
polygon(c(x,rev(x)), c(TeoLow,rev(TeoHigh)),col=rgb(0, 0, 1,0.5),border=NA)
polygon(c(x,rev(x)), c(MaizeLow,rev(MaizeHigh)),col=rgb(1, 0, 0,0.5),border=NA)
observedTeo <- predict(TeoSpline.neutral.standardized,seq(0,0.1,length.out=1000000))$y
observedMaize <- predict(MaizeSpline.neutral.standardized,seq(0,0.1,length.out=1000000))$y
lines(x,observedTeo,col=rgb(0, 0, 1,0.75),lwd=2)
lines(x,observedMaize,col=rgb(1, 0, 0,0.75),lwd=2)
legend("bottomleft","(x,y)",col=c("red","blue"),c("Maize","Teosinte"),lwd=3)
par(new = TRUE)
par(fig = c(0.47, 0.97, 0.1, 0.6))
plot(x,TeoLow,col="blue",type="n",xlim=c(0,0.0005),ylim=c(0.4,0.9),ylab="",xlab="",xaxt="n",yaxt="n")
axis(1,c(0,0.0001,0.0002,0.0003,0.0004,0.0005),at=c(0,0.0001,0.0002,0.0003,0.0004,0.0005))
axis(2,c(0.4,0.5,0.6,0.7,0.8,0.9,1,1.1),at=c(0.4,0.5,0.6,0.7,0.8,0.9,1,1.1))
polygon(c(x,rev(x)), c(TeoLow,rev(TeoHigh)),col=rgb(0, 0, 1,0.5),border=NA)
polygon(c(x,rev(x)), c(MaizeLow,rev(MaizeHigh)),col=rgb(1, 0, 0,0.5),border=NA)
lines(x,observedTeo,col=rgb(0, 0, 1,0.75),lwd=2)
lines(x,observedMaize,col=rgb(1, 0, 0,0.75),lwd=2)
dev.off()
save.image("GENE_GERP_Singletons.RData")
####################################################################################
####################################################################################
### Repeat for distanct to gene -- more interesting ###
####################################################################################
####################################################################################
### Standardize by neutral diversity
tF_maize_gene_N <- mean(tF.maize$tF[which(tF.maize$distanceToGene>=0.02)],na.rm=T)
tF_teo_gene_N <- mean(tF.teo$tF[which(tF.teo$distanceToGene>=0.02)],na.rm=T)
tF.maize$tF.standardized.by.gene.N <- tF.maize$tF/tF_maize_gene_N
tF.teo$tF.standardized.by.gene.N <- tF.teo$tF/tF_teo_gene_N
### Neutral-Standardized Spline
TeoSpline.neutral.gene.standardized <- smooth.spline(tF.teo$distanceToGene,tF.teo$tF.standardized.by.gene.N)
MaizeSpline.neutral.gene.standardized <- smooth.spline(tF.maize$distanceToGene,tF.maize$tF.standardized.by.gene.N)
### SAVE FOR B-Calcs
save(TeoSpline.neutral.gene.standardized,MaizeSpline.neutral.gene.standardized,file="../../Bcalcs/splines.Robj")
### Plot
plot(NULL,xlim=c(0,0.1),ylim=c(0.4,1.2),xlab="Distance to Gene or Element (cM)",ylab="Singleton Diversity / Neutral Singleton Diversity (1kb windows)")
lines(TeoSpline.neutral.gene.standardized,col="blue",lwd=3)
lines(MaizeSpline.neutral.gene.standardized,col="red",lwd=3)
legend("topright","(x,y)",col=c("red","blue"),c("Maize","Teosinte"),lwd=3)
par(new = TRUE)
par(fig = c(0.47, 0.97, 0.1, 0.6))
plot(NULL,xlim=c(0,0.002),ylim=c(0.4,1),xlab="",ylab="",main="",cex.axis=0.75)
lines(TeoSpline.neutral.gene.standardized,col="blue",lwd=2)
lines(MaizeSpline.neutral.gene.standardized,col="red",lwd=2)
#text(0.004,-0.55,"Zoom",cex=1.5)
#############################################################################
### Assess significance! ##########################################
#############################################################################
TeoGeneMat <- matrix(NA,nrow=1000000,ncol=100)
MaizeGeneMat <- matrix(NA,nrow=1000000,ncol=100)
for(i in 1:100){
print(i)
maizeBoot <- sample(nrow(tF.maize),replace=T)
teoBoot <- sample(nrow(tF.teo),replace=T)
tF.maize.boot <- tF.maize[maizeBoot,]
tF.teo.boot <- tF.teo[teoBoot,]
### Standardize by neutral diversity
tF_maize_gene_N.boot <- mean(tF.maize.boot$tF[which(tF.maize.boot$distanceToGene>=0.02)])
tF_teo_gene_N.boot <- mean(tF.teo.boot$tF[which(tF.teo.boot$distanceToGene>=0.02)])
tF.maize.boot$tF.standardized.by.gene.N <- tF.maize.boot$tF/tF_maize_gene_N.boot
tF.teo.boot$tF.standardized.by.gene.N <- tF.teo.boot$tF/tF_teo_gene_N.boot
### Neutral-Standardized Spline
TeoSpline.neutral.gene.standardized.boot <- smooth.spline(tF.teo.boot$distanceToGene,tF.teo.boot$tF.standardized.by.gene.N)
MaizeSpline.neutral.gene.standardized.boot <- smooth.spline(tF.maize.boot$distanceToGene,tF.maize.boot$tF.standardized.by.gene.N)
TeoGeneMat[,i] <- predict(TeoSpline.neutral.gene.standardized.boot,seq(0,0.1,length.out=1000000))$y
MaizeGeneMat[,i] <- predict(MaizeSpline.neutral.gene.standardized.boot,seq(0,0.1,length.out=1000000))$y
}
### Determine 95% intervals
TeoGeneLow <- apply(TeoGeneMat,1,quantile,0.025)
TeoGeneHigh <- apply(TeoGeneMat,1,quantile,0.975)
MaizeGeneLow <- apply(MaizeGeneMat,1,quantile,0.025)
MaizeGeneHigh <- apply(MaizeGeneMat,1,quantile,0.975)
options(scipen=100)
#pdf("distanceToGene_WithSignificance_Singletons.pdf",height=10,width=10)
png("distanceToGene_WithSignificance_Singletons.png",height=10,width=10,units="in",res=300,pointsize=18)
x <- seq(0,0.1,length.out=1000000)
plot(x,TeoGeneLow,col="blue",type="n",xlim=c(0,0.05),ylim=c(0.4,1.1),ylab="Singleton Diversity / Neutral Singleton Diversity",xlab="Distance to Gene (cM)",main="Singleton diversity surrounding genes")
polygon(c(x,rev(x)), c(TeoGeneLow,rev(TeoGeneHigh)),col=rgb(0, 0, 1,0.5),border=NA)
polygon(c(x,rev(x)), c(MaizeGeneLow,rev(MaizeGeneHigh)),col=rgb(1, 0, 0,0.5),border=NA)
observedTeo <- predict(TeoSpline.neutral.gene.standardized,seq(0,0.1,length.out=1000000))$y
observedMaize <- predict(MaizeSpline.neutral.gene.standardized,seq(0,0.1,length.out=1000000))$y
lines(x,observedTeo,col=rgb(0, 0, 1,0.75),lwd=2)
lines(x,observedMaize,col=rgb(1, 0, 0,0.75),lwd=2)
legend("bottomleft","(x,y)",col=c("red","blue"),c("Maize","Teosinte"),lwd=3)
par(new = TRUE)
par(fig = c(0.47, 0.97, 0.1, 0.6))
plot(x,TeoLow,col="blue",type="n",xlim=c(0,0.0005),ylim=c(0.4,0.9),ylab="",xlab="",xaxt="n",yaxt="n")
axis(1,c(0,0.0001,0.0002,0.0003,0.0004,0.0005),at=c(0,0.0001,0.0002,0.0003,0.0004,0.0005))
axis(2,c(0.4,0.5,0.6,0.7,0.8,0.9,1,1.1),at=c(0.4,0.5,0.6,0.7,0.8,0.9,1,1.1))
polygon(c(x,rev(x)), c(TeoGeneLow,rev(TeoGeneHigh)),col=rgb(0, 0, 1,0.5),border=NA)
polygon(c(x,rev(x)), c(MaizeGeneLow,rev(MaizeGeneHigh)),col=rgb(1, 0, 0,0.5),border=NA)
#lines(x,observedTeo,col=rgb(0, 0, 1,0.75),lwd=2)
#lines(x,observedMaize,col=rgb(1, 0, 0,0.75),lwd=2)
dev.off()
save.image("GENE_GERP_Singletons.RData")
################ Manuscript figs ###################
#pdf("distanceToGene_WithSignificance_Singletons_manuscript.pdf",height=10,width=10)
png("distanceToGene_WithSignificance_Singletons_manuscript.png",height=10,width=10,units="in",res=300,pointsize=18)
x <- seq(0,0.1,length.out=1000000)
plot(x,TeoGeneLow,col="blue",type="n",xlim=c(0,0.05),ylim=c(0.4,1.1),ylab="Singleton Diversity / Neutral Singleton Diversity",xlab="Distance to Gene (cM)")#,main="Singleton diversity surrounding genes")
polygon(c(x,rev(x)), c(TeoGeneLow,rev(TeoGeneHigh)),col=rgb(0, 0, 1,0.5),border=NA)
polygon(c(x,rev(x)), c(MaizeGeneLow,rev(MaizeGeneHigh)),col=rgb(1, 0, 0,0.5),border=NA)
observedTeo <- predict(TeoSpline.neutral.gene.standardized,seq(0,0.1,length.out=1000000))$y
observedMaize <- predict(MaizeSpline.neutral.gene.standardized,seq(0,0.1,length.out=1000000))$y
lines(x,observedTeo,col=rgb(0, 0, 1,0.75),lwd=2)
lines(x,observedMaize,col=rgb(1, 0, 0,0.75),lwd=2)
legend("bottomleft","(x,y)",col=c("red","blue"),c("Maize","Teosinte"),lwd=3)
par(new = TRUE)
par(fig = c(0.47, 0.97, 0.1, 0.6))
plot(x,TeoLow,col="blue",type="n",xlim=c(0,0.0005),ylim=c(0.4,0.9),ylab="",xlab="",xaxt="n",yaxt="n")
axis(1,c(0,0.0001,0.0002,0.0003,0.0004,0.0005),at=c(0,0.0001,0.0002,0.0003,0.0004,0.0005))
axis(2,c(0.4,0.5,0.6,0.7,0.8,0.9,1,1.1),at=c(0.4,0.5,0.6,0.7,0.8,0.9,1,1.1))
polygon(c(x,rev(x)), c(TeoGeneLow,rev(TeoGeneHigh)),col=rgb(0, 0, 1,0.5),border=NA)
polygon(c(x,rev(x)), c(MaizeGeneLow,rev(MaizeGeneHigh)),col=rgb(1, 0, 0,0.5),border=NA)
#lines(x,observedTeo,col=rgb(0, 0, 1,0.75),lwd=2)
#lines(x,observedMaize,col=rgb(1, 0, 0,0.75),lwd=2)
dev.off()
### Output data for manuscript fig to add to downsampled plot
TeoGeneLow_Single <- TeoGeneLow
TeoGeneHigh_Single <- TeoGeneHigh
MaizeGeneLow_Single <- MaizeGeneLow
MaizeGeneHigh_Single <- MaizeGeneHigh
observedTeo_Single <- observedTeo
observedMaize_Single <- observedMaize
save(list=c("TeoGeneLow_Single", "TeoGeneHigh_Single", "MaizeGeneLow_Single", "MaizeGeneHigh_Single", "observedTeo_Single", "observedMaize_Single"),file="SingletonSplines.Robj")