annotate Kinatest-R_part1.R @ 1:f1bbd121dfb7 draft

Uploaded
author jfb
date Tue, 06 Feb 2018 17:13:10 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1 this.dir <- dirname(parent.frame(2)$ofile)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
2 setwd(this.dir)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
3
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
4
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
5 ImportedSubstrateList<- read.csv(input1, stringsAsFactors=FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
6 NegativeSubstrateList<- read.csv(input2, stringsAsFactors=FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
7 SubstrateBackgroundFrequency<- read.csv(input3, stringsAsFactors=FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
8
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
9 ScreenerFilename<-screener
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
10
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
11
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
12
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
13 FILENAME<-"output1"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
14 FILENAME2<-"output2"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
15 FILENAME3<-"output3"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
16
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
17
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
18
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
19
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
20
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
21
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
22
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
23
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
24
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
25
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
26
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
27
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
28
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
29
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
30
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
31
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
32
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
33
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
34
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
35
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
36
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
37
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
38
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
39
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
40 OutputMatrix<-"KinaseMatrix.csv"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
41 CharacterizationTable<-"CharacterizationTableForThisKinase.csv"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
42 SDtable<-"SDtableforthisKinase"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
43 SiteSelectivityTable<-"SiteSelectivityForThisKinase"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
44
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
45
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
46
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
47 substrates<-matrix(rep("A",times=((nrow(ImportedSubstrateList)-1)*15)),ncol = 15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
48 #SeqsToBeScored<-"asdasd"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
49
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
50 for (i in 2:nrow(ImportedSubstrateList))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
51 {
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
52 substratemotif<-ImportedSubstrateList[i,4:18]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
53 substratemotif[8]<-"Y"
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
54 #substratemotif<-paste(substratemotif,sep = "",collapse = "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
55 j=i-1
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
56 substratemotif<-unlist(substratemotif)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
57 substrates[j,1:15]<-substratemotif
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
58 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
59
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
60 # SpacesToOs<-c(""="O",)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
61 # substrates<-SpacesToOs[substrates]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
62
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
63 SubstrateBackgroundFrequency[nrow(SubstrateBackgroundFrequency),2]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
64
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
65 if(2==2){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
66 Amean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),2]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
67 Cmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),3]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
68 Dmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),4]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
69 Emean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),5]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
70 Fmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),6]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
71 Gmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),7]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
72 Hmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),8]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
73 Imean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),9]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
74 Kmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),10]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
75 Lmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),11]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
76 Mmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),12]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
77 Nmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),13]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
78 Pmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),14]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
79 Qmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),15]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
80 Rmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),16]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
81 Smean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),17]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
82 Tmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),18]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
83 Vmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),19]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
84 Wmean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),20]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
85 Ymean<-mean(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),21]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
86
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
87 AllMeans<-c(Amean,Cmean,Dmean,Emean,Fmean,Gmean,Hmean,Imean,Kmean,Lmean,Mmean,Nmean,Pmean,Qmean,Rmean,Smean,Tmean,Vmean,Wmean,Ymean)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
88
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
89 Asd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),2]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
90 Csd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),3]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
91 Dsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),4]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
92 Esd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),5]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
93 Fsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),6]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
94 Gsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),7]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
95 Hsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),8]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
96 Isd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),9]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
97 Ksd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),10]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
98 Lsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),11]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
99 Msd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),12]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
100 Nsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),13]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
101 Psd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),14]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
102 Qsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),15]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
103 Rsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),16]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
104 Ssd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),17]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
105 Tsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),18]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
106 Vsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),19]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
107 Wsd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),20]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
108 Ysd<-sd(as.numeric(SubstrateBackgroundFrequency[1:(nrow(SubstrateBackgroundFrequency)),21]), na.rm=TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
109 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
110 AllSDs<-c(Asd,Csd,Dsd,Esd,Fsd,Gsd,Hsd,Isd,Ksd,Lsd,Msd,Nsd,Psd,Qsd,Rsd,Ssd,Tsd,Vsd,Wsd,Ysd)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
111 #this is subbackfreq SDs
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
112
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
113 SBF_statisticalvalues<-cbind(AllMeans,AllSDs)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
114
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
115 #create the percent table
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
116 if (1==1){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
117 Column1<-substrates[,1]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
118 Column2<-substrates[,2]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
119 Column3<-substrates[,3]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
120 Column4<-substrates[,4]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
121 Column5<-substrates[,5]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
122 Column6<-substrates[,6]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
123 Column7<-substrates[,7]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
124 Column8<-substrates[,8]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
125 Column9<-substrates[,9]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
126 Column10<-substrates[,10]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
127 Column11<-substrates[,11]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
128 Column12<-substrates[,12]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
129 Column13<-substrates[,13]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
130 Column14<-substrates[,14]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
131 Column15<-substrates[,15]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
132
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
133 spaces1<-sum((Column1%in% ""))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
134 spaces2<-sum(Column2%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
135 spaces3<-sum(Column3%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
136 spaces4<-sum(Column4%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
137 spaces5<-sum(Column5%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
138 spaces6<-sum(Column6%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
139 spaces7<-sum(Column7%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
140 spaces8<-sum(Column8%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
141 spaces9<-sum(Column9%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
142 spaces10<-sum(Column10%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
143 spaces11<-sum(Column11%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
144 spaces12<-sum(Column12%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
145 spaces13<-sum(Column13%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
146 spaces14<-sum(Column14%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
147 spaces15<-sum(Column15%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
148
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
149 A1<-sum(Column1 %in% "A")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
150 A2<-sum(Column2 %in% "A")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
151 A3<-sum(Column3 %in% "A")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
152 A4<-sum(Column4 %in% "A")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
153 A5<-sum(Column5 %in% "A")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
154 A6<-sum(Column6 %in% "A")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
155 A7<-sum(Column7 %in% "A")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
156 A8<-sum(Column8 %in% "A")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
157 A9<-sum(Column9 %in% "A")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
158 A10<-sum(Column10 %in% "A")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
159 A11<-sum(Column11 %in% "A")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
160 A12<-sum(Column12 %in% "A")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
161 A13<-sum(Column13 %in% "A")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
162 A14<-sum(Column14 %in% "A")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
163 A15<-sum(Column15 %in% "A")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
164 AllAs<-cbind(A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
165
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
166 C1<-sum(Column1 %in% "C")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
167 C2<-sum(Column2 %in% "C")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
168 C3<-sum(Column3 %in% "C")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
169 C4<-sum(Column4 %in% "C")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
170 C5<-sum(Column5 %in% "C")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
171 C6<-sum(Column6 %in% "C")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
172 C7<-sum(Column7 %in% "C")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
173 C8<-sum(Column8 %in% "C")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
174 C9<-sum(Column9 %in% "C")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
175 C10<-sum(Column10 %in% "C")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
176 C11<-sum(Column11 %in% "C")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
177 C12<-sum(Column12 %in% "C")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
178 C13<-sum(Column13 %in% "C")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
179 C14<-sum(Column14 %in% "C")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
180 C15<-sum(Column15 %in% "C")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
181 CllCs<-cbind(C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
182
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
183 D1<-sum(Column1 %in% "D")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
184 D2<-sum(Column2 %in% "D")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
185 D3<-sum(Column3 %in% "D")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
186 D4<-sum(Column4 %in% "D")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
187 D5<-sum(Column5 %in% "D")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
188 D6<-sum(Column6 %in% "D")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
189 D7<-sum(Column7 %in% "D")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
190 D8<-sum(Column8 %in% "D")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
191 D9<-sum(Column9 %in% "D")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
192 D10<-sum(Column10 %in% "D")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
193 D11<-sum(Column11 %in% "D")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
194 D12<-sum(Column12 %in% "D")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
195 D13<-sum(Column13 %in% "D")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
196 D14<-sum(Column14 %in% "D")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
197 D15<-sum(Column15 %in% "D")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
198 DllDs<-cbind(D1,D2,D3,D4,D5,D6,D7,D8,D9,D10,D11,D12,D13,D14,D15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
199
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
200 E1<-sum(Column1 %in% "E")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
201 E2<-sum(Column2 %in% "E")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
202 E3<-sum(Column3 %in% "E")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
203 E4<-sum(Column4 %in% "E")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
204 E5<-sum(Column5 %in% "E")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
205 E6<-sum(Column6 %in% "E")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
206 E7<-sum(Column7 %in% "E")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
207 E8<-sum(Column8 %in% "E")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
208 E9<-sum(Column9 %in% "E")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
209 E10<-sum(Column10 %in% "E")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
210 E11<-sum(Column11 %in% "E")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
211 E12<-sum(Column12 %in% "E")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
212 E13<-sum(Column13 %in% "E")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
213 E14<-sum(Column14 %in% "E")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
214 E15<-sum(Column15 %in% "E")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
215 EllEs<-cbind(E1,E2,E3,E4,E5,E6,E7,E8,E9,E10,E11,E12,E13,E14,E15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
216
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
217
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
218 F1<-sum(Column1 %in% "F")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
219 F2<-sum(Column2 %in% "F")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
220 F3<-sum(Column3 %in% "F")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
221 F4<-sum(Column4 %in% "F")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
222 F5<-sum(Column5 %in% "F")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
223 F6<-sum(Column6 %in% "F")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
224 F7<-sum(Column7 %in% "F")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
225 F8<-sum(Column8 %in% "F")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
226 F9<-sum(Column9 %in% "F")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
227 F10<-sum(Column10 %in% "F")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
228 F11<-sum(Column11 %in% "F")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
229 F12<-sum(Column12 %in% "F")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
230 F13<-sum(Column13 %in% "F")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
231 F14<-sum(Column14 %in% "F")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
232 F15<-sum(Column15 %in% "F")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
233 FllFs<-cbind(F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
234
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
235
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
236 G1<-sum(Column1 %in% "G")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
237 G2<-sum(Column2 %in% "G")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
238 G3<-sum(Column3 %in% "G")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
239 G4<-sum(Column4 %in% "G")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
240 G5<-sum(Column5 %in% "G")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
241 G6<-sum(Column6 %in% "G")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
242 G7<-sum(Column7 %in% "G")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
243 G8<-sum(Column8 %in% "G")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
244 G9<-sum(Column9 %in% "G")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
245 G10<-sum(Column10 %in% "G")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
246 G11<-sum(Column11 %in% "G")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
247 G12<-sum(Column12 %in% "G")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
248 G13<-sum(Column13 %in% "G")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
249 G14<-sum(Column14 %in% "G")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
250 G15<-sum(Column15 %in% "G")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
251 GllGs<-cbind(G1,G2,G3,G4,G5,G6,G7,G8,G9,G10,G11,G12,G13,G14,G15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
252
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
253
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
254 H1<-sum(Column1 %in% "H")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
255 H2<-sum(Column2 %in% "H")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
256 H3<-sum(Column3 %in% "H")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
257 H4<-sum(Column4 %in% "H")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
258 H5<-sum(Column5 %in% "H")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
259 H6<-sum(Column6 %in% "H")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
260 H7<-sum(Column7 %in% "H")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
261 H8<-sum(Column8 %in% "H")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
262 H9<-sum(Column9 %in% "H")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
263 H10<-sum(Column10 %in% "H")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
264 H11<-sum(Column11 %in% "H")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
265 H12<-sum(Column12 %in% "H")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
266 H13<-sum(Column13 %in% "H")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
267 H14<-sum(Column14 %in% "H")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
268 H15<-sum(Column15 %in% "H")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
269 HllHs<-cbind(H1,H2,H3,H4,H5,H6,H7,H8,H9,H10,H11,H12,H13,H14,H15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
270
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
271
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
272 I1<-sum(Column1 %in% "I")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
273 I2<-sum(Column2 %in% "I")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
274 I3<-sum(Column3 %in% "I")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
275 I4<-sum(Column4 %in% "I")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
276 I5<-sum(Column5 %in% "I")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
277 I6<-sum(Column6 %in% "I")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
278 I7<-sum(Column7 %in% "I")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
279 I8<-sum(Column8 %in% "I")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
280 I9<-sum(Column9 %in% "I")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
281 I10<-sum(Column10 %in% "I")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
282 I11<-sum(Column11 %in% "I")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
283 I12<-sum(Column12 %in% "I")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
284 I13<-sum(Column13 %in% "I")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
285 I14<-sum(Column14 %in% "I")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
286 I15<-sum(Column15 %in% "I")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
287 IllIs<-cbind(I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
288
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
289
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
290 K1<-sum(Column1 %in% "K")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
291 K2<-sum(Column2 %in% "K")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
292 K3<-sum(Column3 %in% "K")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
293 K4<-sum(Column4 %in% "K")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
294 K5<-sum(Column5 %in% "K")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
295 K6<-sum(Column6 %in% "K")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
296 K7<-sum(Column7 %in% "K")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
297 K8<-sum(Column8 %in% "K")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
298 K9<-sum(Column9 %in% "K")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
299 K10<-sum(Column10 %in% "K")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
300 K11<-sum(Column11 %in% "K")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
301 K12<-sum(Column12 %in% "K")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
302 K13<-sum(Column13 %in% "K")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
303 K14<-sum(Column14 %in% "K")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
304 K15<-sum(Column15 %in% "K")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
305 KllKs<-cbind(K1,K2,K3,K4,K5,K6,K7,K8,K9,K10,K11,K12,K13,K14,K15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
306
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
307
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
308 L1<-sum(Column1 %in% "L")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
309 L2<-sum(Column2 %in% "L")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
310 L3<-sum(Column3 %in% "L")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
311 L4<-sum(Column4 %in% "L")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
312 L5<-sum(Column5 %in% "L")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
313 L6<-sum(Column6 %in% "L")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
314 L7<-sum(Column7 %in% "L")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
315 L8<-sum(Column8 %in% "L")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
316 L9<-sum(Column9 %in% "L")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
317 L10<-sum(Column10 %in% "L")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
318 L11<-sum(Column11 %in% "L")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
319 L12<-sum(Column12 %in% "L")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
320 L13<-sum(Column13 %in% "L")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
321 L14<-sum(Column14 %in% "L")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
322 L15<-sum(Column15 %in% "L")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
323 LllLs<-cbind(L1,L2,L3,L4,L5,L6,L7,L8,L9,L10,L11,L12,L13,L14,L15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
324
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
325
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
326 M1<-sum(Column1 %in% "M")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
327 M2<-sum(Column2 %in% "M")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
328 M3<-sum(Column3 %in% "M")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
329 M4<-sum(Column4 %in% "M")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
330 M5<-sum(Column5 %in% "M")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
331 M6<-sum(Column6 %in% "M")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
332 M7<-sum(Column7 %in% "M")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
333 M8<-sum(Column8 %in% "M")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
334 M9<-sum(Column9 %in% "M")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
335 M10<-sum(Column10 %in% "M")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
336 M11<-sum(Column11 %in% "M")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
337 M12<-sum(Column12 %in% "M")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
338 M13<-sum(Column13 %in% "M")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
339 M14<-sum(Column14 %in% "M")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
340 M15<-sum(Column15 %in% "M")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
341 MllMs<-cbind(M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
342
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
343
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
344 N1<-sum(Column1 %in% "N")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
345 N2<-sum(Column2 %in% "N")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
346 N3<-sum(Column3 %in% "N")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
347 N4<-sum(Column4 %in% "N")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
348 N5<-sum(Column5 %in% "N")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
349 N6<-sum(Column6 %in% "N")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
350 N7<-sum(Column7 %in% "N")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
351 N8<-sum(Column8 %in% "N")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
352 N9<-sum(Column9 %in% "N")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
353 N10<-sum(Column10 %in% "N")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
354 N11<-sum(Column11 %in% "N")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
355 N12<-sum(Column12 %in% "N")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
356 N13<-sum(Column13 %in% "N")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
357 N14<-sum(Column14 %in% "N")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
358 N15<-sum(Column15 %in% "N")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
359 NllNs<-cbind(N1,N2,N3,N4,N5,N6,N7,N8,N9,N10,N11,N12,N13,N14,N15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
360
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
361
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
362 P1<-sum(Column1 %in% "P")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
363 P2<-sum(Column2 %in% "P")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
364 P3<-sum(Column3 %in% "P")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
365 P4<-sum(Column4 %in% "P")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
366 P5<-sum(Column5 %in% "P")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
367 P6<-sum(Column6 %in% "P")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
368 P7<-sum(Column7 %in% "P")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
369 P8<-sum(Column8 %in% "P")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
370 P9<-sum(Column9 %in% "P")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
371 P10<-sum(Column10 %in% "P")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
372 P11<-sum(Column11 %in% "P")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
373 P12<-sum(Column12 %in% "P")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
374 P13<-sum(Column13 %in% "P")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
375 P14<-sum(Column14 %in% "P")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
376 P15<-sum(Column15 %in% "P")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
377 PllPs<-cbind(P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
378
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
379
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
380 Q1<-sum(Column1 %in% "Q")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
381 Q2<-sum(Column2 %in% "Q")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
382 Q3<-sum(Column3 %in% "Q")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
383 Q4<-sum(Column4 %in% "Q")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
384 Q5<-sum(Column5 %in% "Q")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
385 Q6<-sum(Column6 %in% "Q")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
386 Q7<-sum(Column7 %in% "Q")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
387 Q8<-sum(Column8 %in% "Q")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
388 Q9<-sum(Column9 %in% "Q")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
389 Q10<-sum(Column10 %in% "Q")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
390 Q11<-sum(Column11 %in% "Q")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
391 Q12<-sum(Column12 %in% "Q")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
392 Q13<-sum(Column13 %in% "Q")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
393 Q14<-sum(Column14 %in% "Q")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
394 Q15<-sum(Column15 %in% "Q")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
395 QllQs<-cbind(Q1,Q2,Q3,Q4,Q5,Q6,Q7,Q8,Q9,Q10,Q11,Q12,Q13,Q14,Q15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
396
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
397
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
398 R1<-sum(Column1 %in% "R")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
399 R2<-sum(Column2 %in% "R")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
400 R3<-sum(Column3 %in% "R")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
401 R4<-sum(Column4 %in% "R")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
402 R5<-sum(Column5 %in% "R")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
403 R6<-sum(Column6 %in% "R")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
404 R7<-sum(Column7 %in% "R")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
405 R8<-sum(Column8 %in% "R")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
406 R9<-sum(Column9 %in% "R")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
407 R10<-sum(Column10 %in% "R")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
408 R11<-sum(Column11 %in% "R")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
409 R12<-sum(Column12 %in% "R")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
410 R13<-sum(Column13 %in% "R")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
411 R14<-sum(Column14 %in% "R")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
412 R15<-sum(Column15 %in% "R")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
413 RllRs<-cbind(R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
414
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
415
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
416 S1<-sum(Column1 %in% "S")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
417 S2<-sum(Column2 %in% "S")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
418 S3<-sum(Column3 %in% "S")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
419 S4<-sum(Column4 %in% "S")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
420 S5<-sum(Column5 %in% "S")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
421 S6<-sum(Column6 %in% "S")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
422 S7<-sum(Column7 %in% "S")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
423 S8<-sum(Column8 %in% "S")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
424 S9<-sum(Column9 %in% "S")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
425 S10<-sum(Column10 %in% "S")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
426 S11<-sum(Column11 %in% "S")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
427 S12<-sum(Column12 %in% "S")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
428 S13<-sum(Column13 %in% "S")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
429 S14<-sum(Column14 %in% "S")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
430 S15<-sum(Column15 %in% "S")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
431 SllSs<-cbind(S1,S2,S3,S4,S5,S6,S7,S8,S9,S10,S11,S12,S13,S14,S15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
432
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
433
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
434 T1<-sum(Column1 %in% "T")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
435 T2<-sum(Column2 %in% "T")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
436 T3<-sum(Column3 %in% "T")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
437 T4<-sum(Column4 %in% "T")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
438 T5<-sum(Column5 %in% "T")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
439 T6<-sum(Column6 %in% "T")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
440 T7<-sum(Column7 %in% "T")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
441 T8<-sum(Column8 %in% "T")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
442 T9<-sum(Column9 %in% "T")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
443 T10<-sum(Column10 %in% "T")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
444 T11<-sum(Column11 %in% "T")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
445 T12<-sum(Column12 %in% "T")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
446 T13<-sum(Column13 %in% "T")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
447 T14<-sum(Column14 %in% "T")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
448 T15<-sum(Column15 %in% "T")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
449 TllTs<-cbind(T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
450
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
451
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
452 V1<-sum(Column1 %in% "V")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
453 V2<-sum(Column2 %in% "V")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
454 V3<-sum(Column3 %in% "V")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
455 V4<-sum(Column4 %in% "V")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
456 V5<-sum(Column5 %in% "V")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
457 V6<-sum(Column6 %in% "V")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
458 V7<-sum(Column7 %in% "V")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
459 V8<-sum(Column8 %in% "V")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
460 V9<-sum(Column9 %in% "V")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
461 V10<-sum(Column10 %in% "V")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
462 V11<-sum(Column11 %in% "V")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
463 V12<-sum(Column12 %in% "V")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
464 V13<-sum(Column13 %in% "V")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
465 V14<-sum(Column14 %in% "V")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
466 V15<-sum(Column15 %in% "V")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
467 VllVs<-cbind(V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
468
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
469
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
470 W1<-sum(Column1 %in% "W")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
471 W2<-sum(Column2 %in% "W")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
472 W3<-sum(Column3 %in% "W")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
473 W4<-sum(Column4 %in% "W")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
474 W5<-sum(Column5 %in% "W")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
475 W6<-sum(Column6 %in% "W")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
476 W7<-sum(Column7 %in% "W")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
477 W8<-sum(Column8 %in% "W")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
478 W9<-sum(Column9 %in% "W")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
479 W10<-sum(Column10 %in% "W")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
480 W11<-sum(Column11 %in% "W")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
481 W12<-sum(Column12 %in% "W")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
482 W13<-sum(Column13 %in% "W")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
483 W14<-sum(Column14 %in% "W")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
484 W15<-sum(Column15 %in% "W")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
485 WllWs<-cbind(W1,W2,W3,W4,W5,W6,W7,W8,W9,W10,W11,W12,W13,W14,W15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
486
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
487
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
488 Y1<-sum(Column1 %in% "Y")/(length(Column1)-spaces1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
489 Y2<-sum(Column2 %in% "Y")/(length(Column2)-spaces2)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
490 Y3<-sum(Column3 %in% "Y")/(length(Column3)-spaces3)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
491 Y4<-sum(Column4 %in% "Y")/(length(Column4)-spaces4)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
492 Y5<-sum(Column5 %in% "Y")/(length(Column5)-spaces5)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
493 Y6<-sum(Column6 %in% "Y")/(length(Column6)-spaces6)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
494 Y7<-sum(Column7 %in% "Y")/(length(Column7)-spaces7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
495 Y8<-sum(Column8 %in% "Y")/(length(Column8)-spaces8)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
496 Y9<-sum(Column9 %in% "Y")/(length(Column9)-spaces9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
497 Y10<-sum(Column10 %in% "Y")/(length(Column10)-spaces10)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
498 Y11<-sum(Column11 %in% "Y")/(length(Column11)-spaces11)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
499 Y12<-sum(Column12 %in% "Y")/(length(Column12)-spaces12)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
500 Y13<-sum(Column13 %in% "Y")/(length(Column13)-spaces13)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
501 Y14<-sum(Column14 %in% "Y")/(length(Column14)-spaces14)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
502 Y15<-sum(Column15 %in% "Y")/(length(Column15)-spaces15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
503 YllYs<-cbind(Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8,Y9,Y10,Y11,Y12,Y13,Y14,Y15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
504 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
505 #this is substrate percents
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
506
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
507 #A C D E F G H I K L N P Q R S T V W Y
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
508
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
509 PercentTable<-rbind(AllAs,CllCs,DllDs,EllEs,FllFs,GllGs,HllHs,IllIs,KllKs,LllLs,MllMs,NllNs,PllPs,QllQs,RllRs,SllSs,TllTs,VllVs,WllWs,YllYs)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
510 PercentTable<-PercentTable*100
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
511
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
512 #create the SD table
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
513 SDtable<-matrix(data = rep(1,times=(nrow(PercentTable)*ncol(PercentTable))),nrow = nrow(PercentTable),ncol = ncol(PercentTable))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
514 #for every row, a percertage minus the same mean over the same SD
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
515 if(1==1){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
516 SDtable[1,]<-(PercentTable[1,]-Amean)/Asd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
517 SDtable[2,]<-(PercentTable[2,]-Cmean)/Csd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
518 SDtable[3,]<-(PercentTable[3,]-Dmean)/Dsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
519 SDtable[4,]<-(PercentTable[4,]-Emean)/Esd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
520 SDtable[5,]<-(PercentTable[5,]-Fmean)/Fsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
521 SDtable[6,]<-(PercentTable[6,]-Gmean)/Gsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
522 SDtable[7,]<-(PercentTable[7,]-Hmean)/Hsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
523 SDtable[8,]<-(PercentTable[8,]-Imean)/Isd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
524 SDtable[9,]<-(PercentTable[9,]-Kmean)/Ksd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
525 SDtable[10,]<-(PercentTable[10,]-Lmean)/Lsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
526 SDtable[11,]<-(PercentTable[11,]-Mmean)/Msd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
527 SDtable[12,]<-(PercentTable[12,]-Nmean)/Nsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
528 SDtable[13,]<-(PercentTable[13,]-Pmean)/Psd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
529 SDtable[14,]<-(PercentTable[14,]-Qmean)/Qsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
530 SDtable[15,]<-(PercentTable[15,]-Rmean)/Rsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
531 SDtable[16,]<-(PercentTable[16,]-Smean)/Ssd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
532 SDtable[17,]<-(PercentTable[17,]-Tmean)/Tsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
533 SDtable[18,]<-(PercentTable[18,]-Vmean)/Vsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
534 SDtable[19,]<-(PercentTable[19,]-Wmean)/Wsd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
535 SDtable[20,]<-(PercentTable[20,]-Ymean)/Ysd
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
536 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
537
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
538
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
539 SetOfAAs<-c("Letter","A","C","D","E","F","G","H","I","K","L","M","N","P","Q","R","S","T","V","W","Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
540
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
541
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
542 SumOfSigmaAAs<-c(1:15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
543
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
544 for (i in 1:15){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
545 SumOfSigmasValue<-0
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
546 for (j in 1:20){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
547 value<-0
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
548 if (SDtable[j,i]>2){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
549 value<-sum(substrates[,i]==SetOfAAs[j])
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
550 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
551 SumOfSigmasValue<-SumOfSigmasValue+value
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
552 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
553 SumOfSigmaAAs[i]<-SumOfSigmasValue
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
554 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
555
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
556 # AAs1<-length(substrates[,1])-sum(substrates[,1]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
557 # AAs2<-length(substrates[,2])-sum(substrates[,2]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
558 # AAs3<-length(substrates[,3])-sum(substrates[,3]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
559 # AAs4<-length(substrates[,4])-sum(substrates[,4]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
560 # AAs5<-length(substrates[,5])-sum(substrates[,5]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
561 # AAs6<-length(substrates[,6])-sum(substrates[,6]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
562 # AAs7<-length(substrates[,7])-sum(substrates[,7]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
563 # AAs8<-length(substrates[,8])-sum(substrates[,8]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
564 # AAs9<-length(substrates[,9])-sum(substrates[,9]=="")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
565 #
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
566 #
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
567 #
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
568 # #AAsAtPositions<-c(AAs1,AAs2,AAs3,AAs4,AAs5,AAs6,AAs7,AAs8,AAs9)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
569 # AAsAtPositions<-c(length(substrates[,1]),length(substrates[,2]),length(substrates[,3]),length(substrates[,4]),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
570 # length(substrates[,5]),length(substrates[,6]),length(substrates[,7]),length(substrates[,8]),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
571 # length(substrates[,9]))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
572
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
573 SumOfExpectedSigmaAAs<-c(1:15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
574 for (i in 1:15){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
575 ExpectedValue<-0
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
576 for (j in 1:20){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
577 value<-0
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
578 if (SDtable[j,i]>2){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
579 value<-AllMeans[j]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
580 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
581 ExpectedValue<-ExpectedValue+value
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
582 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
583 SumOfExpectedSigmaAAs[i]<-ExpectedValue*(length(substrates[,i])-sum(substrates[,i]%in% ""))/100
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
584 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
585
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
586 SelectivityRow<-SumOfSigmaAAs/SumOfExpectedSigmaAAs
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
587 SelectivitySheet<-rbind(SumOfSigmaAAs,SumOfExpectedSigmaAAs,SelectivityRow)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
588
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
589 SetOfAAs<-matrix(data = SetOfAAs,ncol = 1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
590
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
591 SDtableu<-SDtable
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
592 HeaderSD<-c(-7:7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
593 SDtable<-rbind(HeaderSD,SDtableu)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
594 SDtable<-data.frame(SetOfAAs,SDtable)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
595
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
596 PercentTable<-rbind(HeaderSD,PercentTable)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
597 PercentTable<-data.frame(SetOfAAs,PercentTable)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
598 numberofY<-as.numeric(SubstrateBackgroundFrequency$Number.of.Y)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
599 numberofY<-numberofY[!is.na(numberofY)]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
600
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
601 numberofPY<-as.numeric(SubstrateBackgroundFrequency$Number.of.pY)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
602 numberofPY<-numberofPY[!is.na(numberofPY)]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
603
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
604 NormalizationScore<-sum(numberofPY)/sum(numberofY)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
605
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
606 # positions<-matrix(data = NA, nrow=20,ncol = 15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
607 #
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
608 # #column1
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
609 #
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
610 # for (q in 1:15) {
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
611 # sA<-sum(substrates[,i]=="A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
612 # positions[1,i]<-sA
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
613 # sC<-sum(substrates[,i]=="C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
614 # positions[2,i]<-sC
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
615 # sD<-sum(substrates[,i]=="D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
616 # positions[3,i]<-sD
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
617 # sE<-sum(substrates[,i]=="E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
618 # positions[4,i]<-sE
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
619 # sF<-sum(substrates[,i]=="F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
620 # sG<-sum(substrates[,i]=="G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
621 # sH<-sum(substrates[,i]=="H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
622 # sI<-sum(substrates[,i]=="I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
623 # sK<-sum(substrates[,i]=="K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
624 # sL<-sum(substrates[,i]=="L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
625 # sM<-sum(substrates[,i]=="M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
626 # sN<-sum(substrates[,i]=="N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
627 # sP<-sum(substrates[,i]=="P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
628 # sQ<-sum(substrates[,i]=="Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
629 # sR<-sum(substrates[,i]=="R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
630 # sS<-sum(substrates[,i]=="S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
631 # sT<-sum(substrates[,i]=="T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
632 # sV<-sum(substrates[,i]=="V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
633 # sW<-sum(substrates[,i]=="W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
634 # sY<-sum(substrates[,i]=="Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
635 # positions[5,i]<-sF
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
636 # positions[6,i]<-sG
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
637 # positions[7,i]<-sH
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
638 # positions[8,i]<-sI
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
639 # positions[9,i]<-sK
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
640 # positions[10,i]<-sL
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
641 # positions[11,i]<-sM
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
642 # positions[12,i]<-sN
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
643 # positions[13,i]<-sP
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
644 # positions[14,i]<-sQ
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
645 # positions[15,i]<-sR
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
646 # positions[16,i]<-sS
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
647 # positions[17,i]<-sT
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
648 # positions[18,i]<-sV
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
649 # positions[19,i]<-sW
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
650 # positions[20,i]<-sY
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
651 # }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
652
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
653 #here I create the positions table which is needed for the endogenous prob matrix and is simply "how many times did an AA show up in this spot?
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
654 if (6==6){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
655 Column1<-substrates[,1]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
656 Column2<-substrates[,2]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
657 Column3<-substrates[,3]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
658 Column4<-substrates[,4]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
659 Column5<-substrates[,5]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
660 Column6<-substrates[,6]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
661 Column7<-substrates[,7]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
662 Column8<-substrates[,8]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
663 Column9<-substrates[,9]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
664 Column10<-substrates[,10]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
665 Column11<-substrates[,11]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
666 Column12<-substrates[,12]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
667 Column13<-substrates[,13]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
668 Column14<-substrates[,14]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
669 Column15<-substrates[,15]
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
670
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
671 spaces1<-sum((Column1%in% ""))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
672 spaces2<-sum(Column2%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
673 spaces3<-sum(Column3%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
674 spaces4<-sum(Column4%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
675 spaces5<-sum(Column5%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
676 spaces6<-sum(Column6%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
677 spaces7<-sum(Column7%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
678 spaces8<-sum(Column8%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
679 spaces9<-sum(Column9%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
680 spaces10<-sum(Column10%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
681 spaces11<-sum(Column11%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
682 spaces12<-sum(Column12%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
683 spaces13<-sum(Column13%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
684 spaces14<-sum(Column14%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
685 spaces15<-sum(Column15%in% "")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
686
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
687 A1<-sum(Column1 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
688 A2<-sum(Column2 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
689 A3<-sum(Column3 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
690 A4<-sum(Column4 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
691 A5<-sum(Column5 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
692 A6<-sum(Column6 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
693 A7<-sum(Column7 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
694 A8<-sum(Column8 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
695 A9<-sum(Column9 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
696 A10<-sum(Column10 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
697 A11<-sum(Column11 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
698 A12<-sum(Column12 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
699 A13<-sum(Column13 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
700 A14<-sum(Column14 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
701 A15<-sum(Column15 %in% "A")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
702 AllAs<-cbind(A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
703
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
704 C1<-sum(Column1 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
705 C2<-sum(Column2 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
706 C3<-sum(Column3 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
707 C4<-sum(Column4 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
708 C5<-sum(Column5 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
709 C6<-sum(Column6 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
710 C7<-sum(Column7 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
711 C8<-sum(Column8 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
712 C9<-sum(Column9 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
713 C10<-sum(Column10 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
714 C11<-sum(Column11 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
715 C12<-sum(Column12 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
716 C13<-sum(Column13 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
717 C14<-sum(Column14 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
718 C15<-sum(Column15 %in% "C")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
719 CllCs<-cbind(C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
720
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
721 D1<-sum(Column1 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
722 D2<-sum(Column2 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
723 D3<-sum(Column3 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
724 D4<-sum(Column4 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
725 D5<-sum(Column5 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
726 D6<-sum(Column6 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
727 D7<-sum(Column7 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
728 D8<-sum(Column8 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
729 D9<-sum(Column9 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
730 D10<-sum(Column10 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
731 D11<-sum(Column11 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
732 D12<-sum(Column12 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
733 D13<-sum(Column13 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
734 D14<-sum(Column14 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
735 D15<-sum(Column15 %in% "D")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
736 DllDs<-cbind(D1,D2,D3,D4,D5,D6,D7,D8,D9,D10,D11,D12,D13,D14,D15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
737
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
738 E1<-sum(Column1 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
739 E2<-sum(Column2 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
740 E3<-sum(Column3 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
741 E4<-sum(Column4 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
742 E5<-sum(Column5 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
743 E6<-sum(Column6 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
744 E7<-sum(Column7 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
745 E8<-sum(Column8 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
746 E9<-sum(Column9 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
747 E10<-sum(Column10 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
748 E11<-sum(Column11 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
749 E12<-sum(Column12 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
750 E13<-sum(Column13 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
751 E14<-sum(Column14 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
752 E15<-sum(Column15 %in% "E")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
753 EllEs<-cbind(E1,E2,E3,E4,E5,E6,E7,E8,E9,E10,E11,E12,E13,E14,E15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
754
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
755 F1<-sum(Column1 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
756 F2<-sum(Column2 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
757 F3<-sum(Column3 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
758 F4<-sum(Column4 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
759 F5<-sum(Column5 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
760 F6<-sum(Column6 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
761 F7<-sum(Column7 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
762 F8<-sum(Column8 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
763 F9<-sum(Column9 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
764 F10<-sum(Column10 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
765 F11<-sum(Column11 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
766 F12<-sum(Column12 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
767 F13<-sum(Column13 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
768 F14<-sum(Column14 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
769 F15<-sum(Column15 %in% "F")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
770 FllFs<-cbind(F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
771
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
772 G1<-sum(Column1 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
773 G2<-sum(Column2 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
774 G3<-sum(Column3 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
775 G4<-sum(Column4 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
776 G5<-sum(Column5 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
777 G6<-sum(Column6 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
778 G7<-sum(Column7 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
779 G8<-sum(Column8 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
780 G9<-sum(Column9 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
781 G10<-sum(Column10 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
782 G11<-sum(Column11 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
783 G12<-sum(Column12 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
784 G13<-sum(Column13 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
785 G14<-sum(Column14 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
786 G15<-sum(Column15 %in% "G")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
787 GllGs<-cbind(G1,G2,G3,G4,G5,G6,G7,G8,G9,G10,G11,G12,G13,G14,G15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
788
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
789 H1<-sum(Column1 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
790 H2<-sum(Column2 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
791 H3<-sum(Column3 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
792 H4<-sum(Column4 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
793 H5<-sum(Column5 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
794 H6<-sum(Column6 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
795 H7<-sum(Column7 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
796 H8<-sum(Column8 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
797 H9<-sum(Column9 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
798 H10<-sum(Column10 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
799 H11<-sum(Column11 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
800 H12<-sum(Column12 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
801 H13<-sum(Column13 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
802 H14<-sum(Column14 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
803 H15<-sum(Column15 %in% "H")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
804 HllHs<-cbind(H1,H2,H3,H4,H5,H6,H7,H8,H9,H10,H11,H12,H13,H14,H15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
805
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
806 I1<-sum(Column1 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
807 I2<-sum(Column2 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
808 I3<-sum(Column3 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
809 I4<-sum(Column4 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
810 I5<-sum(Column5 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
811 I6<-sum(Column6 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
812 I7<-sum(Column7 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
813 I8<-sum(Column8 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
814 I9<-sum(Column9 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
815 I10<-sum(Column10 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
816 I11<-sum(Column11 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
817 I12<-sum(Column12 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
818 I13<-sum(Column13 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
819 I14<-sum(Column14 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
820 I15<-sum(Column15 %in% "I")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
821 IllIs<-cbind(I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
822
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
823 K1<-sum(Column1 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
824 K2<-sum(Column2 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
825 K3<-sum(Column3 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
826 K4<-sum(Column4 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
827 K5<-sum(Column5 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
828 K6<-sum(Column6 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
829 K7<-sum(Column7 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
830 K8<-sum(Column8 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
831 K9<-sum(Column9 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
832 K10<-sum(Column10 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
833 K11<-sum(Column11 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
834 K12<-sum(Column12 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
835 K13<-sum(Column13 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
836 K14<-sum(Column14 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
837 K15<-sum(Column15 %in% "K")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
838 KllKs<-cbind(K1,K2,K3,K4,K5,K6,K7,K8,K9,K10,K11,K12,K13,K14,K15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
839
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
840 L1<-sum(Column1 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
841 L2<-sum(Column2 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
842 L3<-sum(Column3 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
843 L4<-sum(Column4 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
844 L5<-sum(Column5 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
845 L6<-sum(Column6 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
846 L7<-sum(Column7 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
847 L8<-sum(Column8 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
848 L9<-sum(Column9 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
849 L10<-sum(Column10 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
850 L11<-sum(Column11 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
851 L12<-sum(Column12 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
852 L13<-sum(Column13 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
853 L14<-sum(Column14 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
854 L15<-sum(Column15 %in% "L")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
855 LllLs<-cbind(L1,L2,L3,L4,L5,L6,L7,L8,L9,L10,L11,L12,L13,L14,L15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
856
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
857 M1<-sum(Column1 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
858 M2<-sum(Column2 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
859 M3<-sum(Column3 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
860 M4<-sum(Column4 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
861 M5<-sum(Column5 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
862 M6<-sum(Column6 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
863 M7<-sum(Column7 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
864 M8<-sum(Column8 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
865 M9<-sum(Column9 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
866 M10<-sum(Column10 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
867 M11<-sum(Column11 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
868 M12<-sum(Column12 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
869 M13<-sum(Column13 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
870 M14<-sum(Column14 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
871 M15<-sum(Column15 %in% "M")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
872 MllMs<-cbind(M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
873
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
874 N1<-sum(Column1 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
875 N2<-sum(Column2 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
876 N3<-sum(Column3 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
877 N4<-sum(Column4 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
878 N5<-sum(Column5 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
879 N6<-sum(Column6 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
880 N7<-sum(Column7 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
881 N8<-sum(Column8 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
882 N9<-sum(Column9 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
883 N10<-sum(Column10 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
884 N11<-sum(Column11 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
885 N12<-sum(Column12 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
886 N13<-sum(Column13 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
887 N14<-sum(Column14 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
888 N15<-sum(Column15 %in% "N")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
889 NllNs<-cbind(N1,N2,N3,N4,N5,N6,N7,N8,N9,N10,N11,N12,N13,N14,N15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
890
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
891 P1<-sum(Column1 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
892 P2<-sum(Column2 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
893 P3<-sum(Column3 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
894 P4<-sum(Column4 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
895 P5<-sum(Column5 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
896 P6<-sum(Column6 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
897 P7<-sum(Column7 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
898 P8<-sum(Column8 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
899 P9<-sum(Column9 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
900 P10<-sum(Column10 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
901 P11<-sum(Column11 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
902 P12<-sum(Column12 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
903 P13<-sum(Column13 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
904 P14<-sum(Column14 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
905 P15<-sum(Column15 %in% "P")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
906 PllPs<-cbind(P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
907
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
908 Q1<-sum(Column1 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
909 Q2<-sum(Column2 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
910 Q3<-sum(Column3 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
911 Q4<-sum(Column4 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
912 Q5<-sum(Column5 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
913 Q6<-sum(Column6 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
914 Q7<-sum(Column7 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
915 Q8<-sum(Column8 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
916 Q9<-sum(Column9 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
917 Q10<-sum(Column10 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
918 Q11<-sum(Column11 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
919 Q12<-sum(Column12 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
920 Q13<-sum(Column13 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
921 Q14<-sum(Column14 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
922 Q15<-sum(Column15 %in% "Q")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
923 QllQs<-cbind(Q1,Q2,Q3,Q4,Q5,Q6,Q7,Q8,Q9,Q10,Q11,Q12,Q13,Q14,Q15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
924
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
925 R1<-sum(Column1 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
926 R2<-sum(Column2 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
927 R3<-sum(Column3 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
928 R4<-sum(Column4 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
929 R5<-sum(Column5 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
930 R6<-sum(Column6 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
931 R7<-sum(Column7 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
932 R8<-sum(Column8 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
933 R9<-sum(Column9 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
934 R10<-sum(Column10 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
935 R11<-sum(Column11 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
936 R12<-sum(Column12 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
937 R13<-sum(Column13 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
938 R14<-sum(Column14 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
939 R15<-sum(Column15 %in% "R")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
940 RllRs<-cbind(R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
941
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
942 S1<-sum(Column1 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
943 S2<-sum(Column2 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
944 S3<-sum(Column3 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
945 S4<-sum(Column4 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
946 S5<-sum(Column5 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
947 S6<-sum(Column6 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
948 S7<-sum(Column7 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
949 S8<-sum(Column8 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
950 S9<-sum(Column9 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
951 S10<-sum(Column10 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
952 S11<-sum(Column11 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
953 S12<-sum(Column12 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
954 S13<-sum(Column13 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
955 S14<-sum(Column14 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
956 S15<-sum(Column15 %in% "S")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
957 SllSs<-cbind(S1,S2,S3,S4,S5,S6,S7,S8,S9,S10,S11,S12,S13,S14,S15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
958
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
959 T1<-sum(Column1 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
960 T2<-sum(Column2 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
961 T3<-sum(Column3 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
962 T4<-sum(Column4 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
963 T5<-sum(Column5 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
964 T6<-sum(Column6 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
965 T7<-sum(Column7 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
966 T8<-sum(Column8 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
967 T9<-sum(Column9 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
968 T10<-sum(Column10 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
969 T11<-sum(Column11 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
970 T12<-sum(Column12 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
971 T13<-sum(Column13 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
972 T14<-sum(Column14 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
973 T15<-sum(Column15 %in% "T")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
974 TllTs<-cbind(T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
975
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
976 V1<-sum(Column1 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
977 V2<-sum(Column2 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
978 V3<-sum(Column3 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
979 V4<-sum(Column4 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
980 V5<-sum(Column5 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
981 V6<-sum(Column6 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
982 V7<-sum(Column7 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
983 V8<-sum(Column8 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
984 V9<-sum(Column9 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
985 V10<-sum(Column10 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
986 V11<-sum(Column11 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
987 V12<-sum(Column12 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
988 V13<-sum(Column13 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
989 V14<-sum(Column14 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
990 V15<-sum(Column15 %in% "V")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
991 VllVs<-cbind(V1,V2,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
992
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
993 W1<-sum(Column1 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
994 W2<-sum(Column2 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
995 W3<-sum(Column3 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
996 W4<-sum(Column4 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
997 W5<-sum(Column5 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
998 W6<-sum(Column6 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
999 W7<-sum(Column7 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1000 W8<-sum(Column8 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1001 W9<-sum(Column9 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1002 W10<-sum(Column10 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1003 W11<-sum(Column11 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1004 W12<-sum(Column12 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1005 W13<-sum(Column13 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1006 W14<-sum(Column14 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1007 W15<-sum(Column15 %in% "W")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1008 WllWs<-cbind(W1,W2,W3,W4,W5,W6,W7,W8,W9,W10,W11,W12,W13,W14,W15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1009
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1010 Y1<-sum(Column1 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1011 Y2<-sum(Column2 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1012 Y3<-sum(Column3 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1013 Y4<-sum(Column4 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1014 Y5<-sum(Column5 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1015 Y6<-sum(Column6 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1016 Y7<-sum(Column7 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1017 Y8<-sum(Column8 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1018 Y9<-sum(Column9 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1019 Y10<-sum(Column10 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1020 Y11<-sum(Column11 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1021 Y12<-sum(Column12 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1022 Y13<-sum(Column13 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1023 Y14<-sum(Column14 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1024 Y15<-sum(Column15 %in% "Y")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1025 YllYs<-cbind(Y1,Y2,Y3,Y4,Y5,Y6,Y7,Y8,Y9,Y10,Y11,Y12,Y13,Y14,Y15)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1026 PositionTable<-rbind(AllAs,CllCs,DllDs,EllEs,FllFs,GllGs,HllHs,IllIs,KllKs,LllLs,MllMs,NllNs,PllPs,QllQs,RllRs,SllSs,TllTs,VllVs,WllWs,YllYs)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1027 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1028 #endogenous prob matrix is AA position over subbackfreqmean
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1029 dim(PositionTable)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1030 EPMtable<-PositionTable
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1031 # EPMtable[1,]<-(PositionTable[1,]/(PositionTable[1,]*.01*Amean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1032 # EPMtable[2,]<-(PositionTable[2,]/(PositionTable[2,]*.01*Cmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1033 # EPMtable[3,]<-(PositionTable[3,]/(PositionTable[3,]*.01*Dmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1034 # EPMtable[4,]<-(PositionTable[4,]/(PositionTable[4,]*.01*Emean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1035 # EPMtable[5,]<-(PositionTable[5,]/(PositionTable[5,]*.01*Fmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1036 # EPMtable[6,]<-(PositionTable[6,]/(PositionTable[6,]*.01*Gmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1037 # EPMtable[7,]<-(PositionTable[7,]/(PositionTable[7,]*.01*Hmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1038 # EPMtable[8,]<-(PositionTable[8,]/(PositionTable[8,]*.01*Imean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1039 # EPMtable[9,]<-(PositionTable[9,]/(PositionTable[9,]*.01*Kmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1040 # EPMtable[10,]<-(PositionTable[10,]/(PositionTable[10,]*.01*Lmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1041 # EPMtable[11,]<-(PositionTable[11,]/(PositionTable[11,]*.01*Mmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1042 # EPMtable[12,]<-(PositionTable[12,]/(PositionTable[12,]*.01*Nmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1043 # EPMtable[13,]<-(PositionTable[13,]/(PositionTable[13,]*.01*Pmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1044 # EPMtable[14,]<-(PositionTable[14,]/(PositionTable[14,]*.01*Qmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1045 # EPMtable[15,]<-(PositionTable[15,]/(PositionTable[15,]*.01*Rmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1046 # EPMtable[16,]<-(PositionTable[16,]/(PositionTable[16,]*.01*Smean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1047 # EPMtable[17,]<-(PositionTable[17,]/(PositionTable[17,]*.01*Tmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1048 # EPMtable[18,]<-(PositionTable[18,]/(PositionTable[18,]*.01*Vmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1049 # EPMtable[19,]<-(PositionTable[19,]/(PositionTable[19,]*.01*Wmean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1050 # EPMtable[20,]<-(PositionTable[20,]/(PositionTable[20,]*.01*Ymean))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1051
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1052 columns<-c(length(Column1)-sum(Column1==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1053 length(Column2)-sum(Column2==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1054 length(Column3)-sum(Column3==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1055 length(Column4)-sum(Column4==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1056 length(Column5)-sum(Column5==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1057 length(Column6)-sum(Column6==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1058 length(Column7)-sum(Column7==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1059 length(Column8)-sum(Column8==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1060 length(Column9)-sum(Column9==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1061 length(Column10)-sum(Column10==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1062 length(Column11)-sum(Column11==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1063 length(Column12)-sum(Column12==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1064 length(Column13)-sum(Column13==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1065 length(Column14)-sum(Column14==""),
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1066 length(Column15)-sum(Column15==""))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1067
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1068 for (z in 1:15) {
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1069 for (y in 1:20) {
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1070 if (PositionTable[y,z]>0){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1071 EPMtable[y,z]<-PositionTable[y,z]/((columns[z]*.01*AllMeans[y]))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1072 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1073 if (PositionTable[y,z]==0){
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1074 EPMtable[y,z]<-(1/columns[z])/((columns[z]*.01*AllMeans[y]))
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1075 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1076 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1077 }
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1078 #here I created the endogenous probability matrix
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1079 #now all I need to do is make the program automatically determine which SDs are >2, and then make it perform screener and sorter on those SDs
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1080
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1081
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1082
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1083
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1084
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1085 # write.xlsx(SDtable,file=FILENAME, sheetName = "Standard Deviation Table",col.names = FALSE,row.names = FALSE,append = TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1086 # write.xlsx(PercentTable,file = FILENAME,sheetName = "Percent Table",col.names = FALSE,row.names = FALSE,append = TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1087 # write.xlsx(SelectivitySheet,file = FILENAME,sheetName = "Site Selectivity",col.names = FALSE,row.names = FALSE,append = TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1088 # write.xlsx(EPMtable,file=FILENAME,sheetName = "Endogenous Probability Matrix",col.names = FALSE,row.names = FALSE,append = TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1089 # write.xlsx(NormalizationScore,file = FILENAME,sheetName = "Normalization Score",col.names = FALSE,row.names = FALSE,append = TRUE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1090
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1091 NormalizationScore<-c("Normalization Score",NormalizationScore)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1092
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1093 write.table(x=c("SD Table"),file=FILENAME,append = TRUE,sep=",", row.names = FALSE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1094 write.table(SDtable,file=FILENAME,append = TRUE,sep=",", row.names = FALSE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1095 write.table(x=c("Percent Table"),file=FILENAME,append = TRUE,sep=",", row.names = FALSE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1096 write.table(PercentTable,file=FILENAME, append = TRUE,sep=",",row.names = FALSE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1097
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1098 EPMtableu<-EPMtable
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1099 HeaderSD<-c(-7:7)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1100 EPMtableu<-rbind(HeaderSD,EPMtableu)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1101 EPMtableu<-data.frame(SetOfAAs,EPMtableu)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1102
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1103 write.table("Site Selectivity Matrix", file = FILENAME2, append = TRUE, sep = ",", row.names = FALSE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1104 SelectivityHeader=matrix(data = c("Position",-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7),nrow = 1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1105 head<-matrix(data=rep(" ",times=16),nrow = 1)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1106 SelectivityHeader<-rbind(head,SelectivityHeader)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1107
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1108 write.table(SelectivityHeader, file = FILENAME2, append = TRUE, sep = ",", row.names = FALSE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1109 #colnames(SelectivitySheet)<-c("-7","-6","-5","-4","-3","-2","-1","0","1","2","3","4","5","6","7")
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1110 write.table(SelectivitySheet,file = FILENAME2, append = TRUE,sep = ",",row.names = TRUE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1111 write.table(x=c("Endogenous Probability Matrix"),file=FILENAME2,append = TRUE,sep=",", row.names = FALSE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1112 write.table(EPMtableu,file = FILENAME2, append = TRUE,sep = ",",row.names = FALSE, col.names = FALSE)
f1bbd121dfb7 Uploaded
jfb
parents:
diff changeset
1113 write.table(NormalizationScore, file = FILENAME2, append = TRUE,sep = ",",row.names = FALSE, col.names = FALSE)