Open N0toriou5 opened 4 years ago
I had this issue too. After a lot of trouble shooting, I realized the vector has to be encoded as a factor, not as characters.
Set the grouping variable with:
variable(radar) <- data.frame(Group = factor(c(rep("Ctl",10),rep("Case",9))))
and it should work.
Thanks!
I've also modified filterBins() a little bit to avoid this error.
Hope that solves the problem.
Hi,
I am trying to use RADAR on my m6A dataset counting 10 Ctrl samples + coupled inputs and 9 Case samples + inputs. After setting the grouping variable as follow in the radar object:
variable(radar) <- data.frame(Group = c(rep("Ctl",10),rep("Case",9)))
I am trying to filter out low-coverage bins with radar <- filterBins(radar,minCountsCutOff = 15), but get the following error:
Error in filterBins(radar, minCountsCutOff = 15) : The predictor variable must have two groups
How should I set the grouping variable?
Thank you for your kind help.
BW