motifBreakR icon indicating copy to clipboard operation
motifBreakR copied to clipboard

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

Open jing-wan opened this issue 2 years ago • 3 comments

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.

jing-wan avatar Nov 09 '22 16:11 jing-wan

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.

Simon-Coetzee avatar Nov 14 '22 22:11 Simon-Coetzee

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

szhang1112 avatar Jul 16 '23 15:07 szhang1112

same error any solution ?

bioarpit1 avatar Oct 27 '23 00:10 bioarpit1

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

dennishazelett avatar May 29 '24 17:05 dennishazelett