bmansfeld / QTLseqr

QTLseqr is an R package for QTL mapping using NGS Bulk Segregant Analysis
64 stars 42 forks source link

Error: The subscript for category ' closure ' is wrong #4

Closed ChengYunazhi closed 6 years ago

ChengYunazhi commented 6 years ago

Hi, Ben

when I call function "getSigRegions" to get the QTL snps, error was reported by R, as below:

Error: The subscript for category ' closure ' is wrong


I check source code of this function,found this:

qq 20180326113724

'table' is a function in R, is this the source of error?

Thanks!

bmansfeld commented 6 years ago

Hey, Thanks for the feedback. I renamed the variable in all the export functions. I should not be using conserved function names.

Let me know if it fixes the error or something else is causing it. Those functions run for me. I'll leave the issue open until you tell me it works for your data. Thanks. Ben

ChengYunazhi commented 6 years ago

Thanks, Ben.

I found the reason is dplyr packages running on my machine needs to update, when updating the packages to latest version, thoses functions work well, and output what we want.

bmansfeld commented 6 years ago

Great. Thanks for letting me know. I updated the functions to not use table in any case. Good luck with your research! -Ben