Coolgenome / iTALK

58 stars 22 forks source link

Error when running DEG #21

Closed jamrute closed 4 years ago

jamrute commented 4 years ago

Hi,

Thanks for creating this great method! I am trying to run DEG for a cell type using:

deg_Mac<-DEG(subset(data, cell_type=='Macrophages'), method='Wilcox', contrast=c("B","A"))

where my two compare_groups are "B" and "A" (data$compare_group). However, I get the following error:

Error in wilcox.test.formula(counts[i, ] ~ groups) : grouping factor must have exactly 2 levels

Appreciate any help!