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
erro twisst_data_smooth #12
Comments
I have not encountered this error before. I could look into it if you share the weights file. |
Hi Simon, I'm attaching weights and the data: Scaffold_15 plots fine, Scaffold_2199 - does not. Thanks |
Hi giyany,
The R script is expecting each window to have a larger start and end position to the one before it. I'm not sure how this happened in your data, but you will need to correct the input files before using Simon |
Actually I just realised that I've already implemented a fix for this. You can include |
Thanks, that makes a lot of sense. The issue was, when using reorder_by_start=TRUE, I got this error: Error in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : in addition, the result of plot.twisst also seemed off, although it's not very clear to say: so I assumed reorder_by_start may not be doing what I expected. Now I sort the data beforehand: the reason it was sorted that way was that I used the order of files as they appeared on command line to pull out the coordinates. There are probably better ways to do it, but apparently I'm not the only one. |
I see. I will look into this. Perhaps there is still a bug in how I am doing the reordering. |
Would you please attach the weights file (output.run3.weights.csv) again? I couldn't download it for some reason. |
Happily: |
Another note: it seems to be a function of span_bp, maybe the data is simply too skewed/too many NA values for the span, not related to the order. |
I couldn't recreate your error, but I got different errors due to the files having different numbers of lines (possibly because the weights are from run3 and the window data from run4?). |
Yes, I attached the wrong file - sorry about that. Thanks a lot for this useful input, I'll re-do this considering just SNP numbers like the paper recommends. |
Great. Yes seems to work find with run4 after increasing the smoothing span. |
The text was updated successfully, but these errors were encountered: