-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path2.09_calculateAverage_cM.r
43 lines (34 loc) · 1.18 KB
/
2.09_calculateAverage_cM.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
###################################################################
###################################################################
####
#### calculate average physical and genetic window size
####
#### Manfred Mayer (Technical University of Munich, Plant Breeding)
#### [email protected]
####
#### date: 03.07.2020
###################################################################
###################################################################
# general settings
options(stringsAsFactors=FALSE)
options(scipen=99)
options(warn = 1)
set.seed(212)
##############
# load phys and genet positions of haplotype windows (generated in script 2.06)
load("Info_Lists_genet_phys.RData")
str(Info_Lists)
phys <- NULL
genet <- NULL
for(CHR in 1:10){
phys <- rbind(phys, Info_Lists[[CHR]][["phys_InfoList"]])
genet <- rbind(genet, Info_Lists[[CHR]][["genet_InfoList"]])
}
str(phys)
str(genet)
head(phys)
head(genet)
summary(phys[ ,"Size_bp"])
summary(genet[ ,"Size_cM"])
##############
############################################################################################################################################################################################################