Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_scan1() with non-matrix input gives weird error #135

Closed
kbroman opened this issue Sep 20, 2019 · 0 comments
Closed

plot_scan1() with non-matrix input gives weird error #135

kbroman opened this issue Sep 20, 2019 · 0 comments
Labels

Comments

@kbroman
Copy link
Member

kbroman commented Sep 20, 2019

If the input to plot_scan1() is a vector, convert it to a single-column matrix. Otherwise you can an error like:

 Error in if (nrow(x) != length(unlist(map))) stop("nrow(x) [", nrow(x),  : 
   argument is of length zero 
@kbroman kbroman added the bug label Sep 20, 2019
kbroman added a commit to kbroman/qtl2 that referenced this issue Nov 19, 2020
- If input scan1 output is a numeric vector, it's
  converted to a single-column matrix to avoid a weird error
  (since we're looking for row names)
@kbroman kbroman closed this as completed Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant