This error occurs when prior_type = "equal". It doesn't happen every time but I don't see a pattern for when it does.
Error in t(X) %*% preci1con : non-conformable arguments
The Traceback doesn't seem helpful but I'm adding it anyway.
Traceback:
6. .local(object, ...)
5. fitNBthDE(form = form, annot = annot[ROIs_high, ], object = countmat[, ROIs_high], probenum = probenum, features_high = features_high, features_all = features_all, sizefact_start = sizefact_start, sizefact_BG = sizefact_BG, threshold_mean = threshold_mean, ...
4. fitNBthDE(form = form, annot = annot[ROIs_high, ], object = countmat[, ROIs_high], probenum = probenum, features_high = features_high, features_all = features_all, sizefact_start = sizefact_start, sizefact_BG = sizefact_BG, threshold_mean = threshold_mean, ...
3. .local(object, ...)
2. fitNBthDE(form = ~region, split = FALSE, object = kidney, preci2 = 10000, prior_type = "equal", preci1con = 1/25, sizescalebythreshold = TRUE)
- fitNBthDE(form = ~region, split = FALSE, object = kidney, preci2 = 10000, prior_type = "equal", preci1con = 1/25, sizescalebythreshold = TRUE)