/
tkfst.branch.tt
160 lines (126 loc) · 1.99 KB
/
tkfst.branch.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
;; TKF Structure Tree
;; Singlet model identical to that of tkfst-fixed.tt.
;; Branch model modified to allow for insertion and deletion of S-links.
;;;;;;;;;;;;
;; Branch ;;
;;;;;;;;;;;;
>branch-stateTyping
; Match:
; loop
L = s
IL = i
ML = m
DL = m
WL = w
; stem
S = s
IS = i
MS = m
DS = m
WS = w
; bifurc
Bm[S L] = bm
Bp[e L] = bm
Bm[e L] = bm
; Insert sub-model:
; loop
Li = s
ILi = i
; stem
Si = s
ISi = i
; bifurc
Bi[Si L] = bi
Bi[Si Li] = bi
Bi[e Li] = bi
e = e
>branch-absorbProfiling
; loop
ML = l
DL = l
; stem
MS = lr
DS = lr
Bm[S L] = Bi[S L]
Bp[e L] = Bi[S L]
Bm[e L] = Bi[e L]
>branch-emitProfiling
; loop
IL = l
ML = l
DL =
; stem
IS = lr
MS = lr
DS =
Bm[S L] = Bm[S L]
Bp[e L] = Bp[e L]
Bm[e L] = Bm[e L]
; Insert sub-model:
ILi = l
ISi = lr
; bifurc
Bi[Si L] = Bi[Si L]
Bi[Si Li] = Bi[Si Li]
Bi[e Li] = Bi[e Li]
>branch-emitDist
IL = p1
ML = m1_t
IS = p2
MS = m2_t
ILi = p1
ISi = p2
>branch-tm
; loop
L -> IL = b1(t), Bi[Si L] = b1(t)*pS(), WL = 1-b1(t)
IL -> IL = b1(t), Bi[Si L] = b1(t)*pS(), WL = 1-b1(t)
ML -> IL = b1(t), Bi[Si L] = b1(t)*pS(), WL = 1-b1(t)
DL -> IL = g1(t), Bi[Si L] = g1(t)*pS(), WL = 1-g1(t)
WL -> ML = a1(t), DL = 1-a1(t), Bm[S L] = a1(t), Bp[e L] = 1-a1(t), e = 1
; stem
S -> IS = b2(t), WS = 1-b2(t)
IS -> IS = b2(t), WS = 1-b2(t)
MS -> IS = b2(t), WS = 1-b2(t)
DS -> IS = g2(t), WS = 1-g2(t)
WS -> MS = a2(t), DS = 1-a2(t), Bm[e L] = 1
e ->
; Insert sub-model
Li -> ILi = K1(), Bi[Si Li] = K1()*pS(), e = 1-K1()
ILi -> ILi = K1(), Bi[Si Li] = K1()*pS(), e = 1-K1()
Si -> ISi = K2(), Bi[e Li] = 1-K2()
ISi -> ISi = K2(), Bi[e Li] = 1-K2()
>branch-bifurc
Bm[S L] -> (S, L, e)
Bp[e L] -> (e, L, e)
Bm[e L] -> (e, L, e)
Bi[Si L] -> (Si, L, e)
Bi[Si Li] -> (Si, Li, e)
Bi[e Li] -> (e, Li, e)
>branch-stateSorting
L = 1
IL = 2
ML = 3
DL = 3.5
WL = 4
; stem
S = 1
IS = 2
MS = 3
DS = 3.5
WS = 4
; bifurc
Bm[S L] = 5
Bp[e L] = 5
Bm[e L] = 5
; Insert sub-model:
; loop
Li = 6
ILi = 7
; stem
Si = 6
ISi = 7
; bifurc
Bi[Si L] = 9
Bi[Si Li] = 9
Bi[e Li] = 9
e = 10