Skip to content

Commit 03c3c30

Browse files
committed
fix error with degenerate factors
1 parent 09a2148 commit 03c3c30

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: SingleCellAssay
22
Type: Package
33
Title: Core data structures for single-cell assays
4-
Version: 0.78
5-
Date: 2014-01-28
4+
Version: 0.79
5+
Date: 2014-04-08
66
Author: Andrew McDavid <[email protected]>, Greg Finak <[email protected]>
77
Maintainer: Greg Finak <[email protected]>
88
VignetteBuilder: knitr

R/zeroinf.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ zlm <- function(formula, data,lm.fun=glm,silent=TRUE, subset, ...){
6868
glmer(disc.formula, data, family='binomial', ...)
6969
}, silent=silent)
7070
} else{
71-
disc <- lm.fun(disc.formula, data, family='binomial', ...)
71+
disc <- try({
72+
lm.fun(disc.formula, data, family='binomial', ...)
73+
}, silent=silent)
7274
}
7375
if(inherits(disc, 'try-error')){
7476
disc <- lm(0~0)

0 commit comments

Comments
 (0)