Simon-Coetzee / motifBreakR

A Package For Predicting The Disruptiveness Of Single Nucleotide Polymorphisms On Transcription Factor Binding Sites.
27 stars 12 forks source link

plotMB error: Error in if (doRev) { : the condition has length > 1 #46

Closed jing-wan closed 3 months ago

jing-wan commented 1 year ago

Hi, I got this error when I use plotMB:

plotMB(my.results, "rs2275915", effect = "strong")
Error in if (doRev) { : the condition has length > 1

Also error for the example:

data(example.results)
example.results
plotMB(example.results, "rs2661839", effect = "strong")
Error in if ((mcols(mresult)$varType == "Insertion" & mcols(mresult)$alleleDiff <  :  argument is of length zero

my.results is generated by motifbreakR, and looks like the same as example.results. The version is motifbreakR 2.12.2 Thanks.

Simon-Coetzee commented 1 year ago

is it possible that you have a palindromic motif with hits on both the + and - strands in your results, with the same providerID and providerName? I'm trying to narrow down the problem. If you could attach your results here it would be easier.

szhang1112 commented 1 year ago

I also got this error when visualizing the motifs - any solution yet?

bioarpit1 commented 10 months ago

same error any solution ?

dennishazelett commented 3 months ago

this issue has been resolved on another thread, please see https://github.com/Simon-Coetzee/motifBreakR/issues/53#issuecomment-2135865036