YosefLab / scone

53 stars 12 forks source link

Warning when using default zero option #85

Open drisso opened 7 years ago

drisso commented 7 years ago

Because the default value of zero in scone is zero = c("none", "preadjust", "postadjust", "strong"), the following line throws a warning: https://github.com/YosefLab/scone/blob/master/R/scone_main.R#L177

the condition has length > 1 and only the first element will be used

Adding the following line before L177 should fix it.

zero <- match.arg(zero)