You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
PopGenome is a good software for population diversity analysis.
When I performed neutrality.stats sliding windows, I got following errors.
|===Error in if (n > 1) { : missing value where TRUE/FALSE needed
Calls: popgenome_diversity ... neutrality.stats -> neutrality.stats -> calc_freqstats -> init_coef
Execution halted
I think it was happened because no enough SNP to use in these windows.
I was wonder that if you can skip these windows or gives NAs back instead of stopping the program?
The text was updated successfully, but these errors were encountered:
I have encountered the same problem with you. Thank you for posting your solution! But since I am new to R. I wonder where I can modifiy and refresh my package, for I loaded library(PopGenome) directly before I ran performed neutrality.stats sliding windows.
I may be a silly question, but I do need your help.
@krystal915 ,here is the modified source code, extract it and install it using devtools:
devtools::install_local("/local/path/to/PopGenome_2.2.4/PopGenome", force = TRUE) PopGenome_2.2.4.zip
Hi,
PopGenome is a good software for population diversity analysis.
When I performed neutrality.stats sliding windows, I got following errors.
|===Error in if (n > 1) { : missing value where TRUE/FALSE needed
Calls: popgenome_diversity ... neutrality.stats -> neutrality.stats -> calc_freqstats -> init_coef
Execution halted
I think it was happened because no enough SNP to use in these windows.
I was wonder that if you can skip these windows or gives NAs back instead of stopping the program?
The text was updated successfully, but these errors were encountered: