Skip to content

Commit e203b42

Browse files
committed
changed and to or
1 parent 957a46e commit e203b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/tcplCytoPt.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ tcplCytoPt <- function(chid = NULL, aeid = NULL, flag = TRUE,
193193
gb_mad <- median(zdst[used_in_global_mad_calc=='TRUE', mad]) #calculate global mad
194194
zdst[,global_mad := gb_mad] # add column for global mad
195195
zdst[, cyto_pt := med]
196-
zdst[burstpct < 0.05 & nhit < 2, `:=`(cyto_pt, default.pt)] # if the burst percent is less than .05 and at least 2 hits use the default pt instead
196+
zdst[burstpct < 0.05 | nhit < 2, `:=`(cyto_pt, default.pt)] # if the burst percent is less than .05 and at least 2 hits use the default pt instead
197197
zdst[, `:=`(cyto_pt_um, 10^cyto_pt)]
198198
zdst[, `:=`(lower_bnd_um, 10^(cyto_pt - 3 * global_mad))]
199199
zdst[,burstpct:=NULL] # remove burstpct from final results to match previous iterations of tcplCytopt

0 commit comments

Comments
 (0)