You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Sorry, tree is too large. Please use standalone clmp package in R."))
121
+
paste("Sorry, tree is too large (limit ", MAXTREESIZE,
122
+
" tips). Please use standalone clmp package in R.",
123
+
sep='')
124
+
))
111
125
nsites<- detect.ml(phy)
126
+
if (!is.na(nsites)) {
127
+
output$msg1<- renderText(paste(
128
+
"Warning: detected ML tree - padded near-zero branch lengths to ",
129
+
1/nsites, sep=''))
130
+
}
112
131
res1<- clmp(phy, nrates=1, nsites=nsites)
113
132
res2<- clmp(phy, nrates=2, nsites=nsites)
114
133
115
134
list(phy=phy, res1=res1, res2=res2)
116
-
})
135
+
}, ignoreNULL=FALSE)
117
136
118
137
# user resets input to default tree
119
138
observeEvent(
@@ -165,9 +184,10 @@ server <- function(input, output, session) {
165
184
output$summary<- renderText({
166
185
res2<- v()$res2
167
186
#TODO: check if root state 0
168
-
validate(need(res2$states["Node1"]==0,
169
-
"Warning: root was assigned to cluster, results from 2-class model are invalid. You may be sampling from a recently expanding epidemic."))
170
-
187
+
if (res2$states["Node1"]!=0) {
188
+
output$msg2<- renderText("Warning: root was assigned to cluster, results from 2-class model may be invalid. Tree may be rooted incorrectly, or you may be sampling from a recently expanding epidemic.")
0 commit comments