Hi Elspeth,
Looks most likely something with the plot at the end goes wrong. Not sure why. Can you check you have no spaces in your indNames and popNames and lociNames
And or run the gl.LDNe with the option plot.out=FALSE (this might work), but still would be good to know what is going wrong here.
Also not sure why you go via genind there is a function
vcfR2genlight which should work as well, but maybe you tried that.
Another test would be to run
gl.compliance.check(gl_cluster) to try to make sure it is a complete genlight/dartR object.
Cheers, Bernd
==============================================================================
Dr Bernd Gruber )/_
_.--..---"-,--c_
Professor Ecological Modelling \|..' ._O__)_
Tel: (02) 6206 3804 ,=. _.+ _ \..--( /
Fax: (02) 6201 2328 \\.-''_.-' \ ( \_
Institute for Applied Ecology `''' `\__ /\
Faculty of Science and Technology ')
University of Canberra ACT 2601 AUSTRALIA
Email: bernd....@canberra.edu.au
WWW: bernd-gruber
Australian Government Higher Education Provider Number CRICOS #00212K
NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.
==============================================================================
--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dartr+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dartr/e6303d11-1cb1-420d-9e8b-5f8badb73407n%40googlegroups.com.
Error in strt[y]:stp[y] : NA/NaN argument
Do you think it is still struggling to output the results?
Thanks again for your help!
Elle
Hi Luis,Thank you so much!!Have a lovely weekend,All my best,Elle
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/2d67d996-85d9-4573-88e9-8ec57f7ca7bcn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/9e9c8f23-8832-47a1-a260-ec69eba7f45fn%40googlegroups.com.
Hi,
Not sure if helpful. We found in one of our student a “quirk” in the Neestimator. If there is a loci that is 100% heterozygous for all individuals (all ones) then the interval estimates become INF. Therefore we filtered for that loci “manually” before running it. This kind of loci do not get filtered by the monomorph filter and in your case it could be that by subsampling you might get such cases.
The way to filter is for example:
gl <- possums.gl
drop <- locNames(gl)[apply(as.matrix(gl), 2, function(x) all(as.numeric(x)==1, na.rm=T))]
if (length(drop)>0) gl <- gl.drop.loc(gl,loc.list = drop)
should work I think (but not tested)
==============================================================================
Dr Bernd Gruber )/_
_.--..---"-,--c_
Professor Ecological Modelling \|..' ._O__)_
Tel: (02) 6206 3804 ,=. _.+ _ \..--( /
Fax: (02) 6201 2328 \\.-''_.-' \ ( \_
Institute for Applied Ecology `''' `\__ /\
Faculty of Science and Technology ')
University of Canberra ACT 2601 AUSTRALIA
Email: bernd....@canberra.edu.au
WWW: bernd-gruber
Australian Government Higher Education Provider Number CRICOS #00212K
NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.
==============================================================================
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/d4f7c300-626c-4584-be8f-95d5ce9307a8n%40googlegroups.com.
R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.utf8 LC_CTYPE=English_Australia.utf8 LC_MONETARY=English_Australia.utf8
[4] LC_NUMERIC=C LC_TIME=English_Australia.utf8
attached base packages:
[1] tcltk stats graphics grDevices utils datasets methods base
other attached packages:
[1] sf_1.0-12 maps_3.4.1 maptools_1.1-6 plotrix_3.8-2 plotfunctions_1.4
[6] scales_1.2.1 shapefiles_0.7.2 foreign_0.8-84 gstat_2.1-1 fields_14.1
[11] viridis_0.6.3 viridisLite_0.4.2 spam_2.9-1 patchwork_1.1.2 ggrepel_0.9.3
[16] BiodiversityR_2.15-1 vegan_2.6-4 lattice_0.21-8 permute_0.9-7 ggmap_3.0.2
[21] rgdal_1.6-6 geodata_0.5-8 terra_1.7-29 ggpubfigs_0.0.1 lubridate_1.9.2
[26] forcats_1.0.0 stringr_1.5.0 purrr_1.0.1 readr_2.1.4 tidyr_1.3.0
[31] tibble_3.2.1 tidyverse_2.0.0 stringi_1.7.12 AlleleShift_1.1 raster_3.6-20
[36] sp_1.6-0 dartR_2.9.5 dartR.data_1.0.2 dplyr_1.1.2 ggplot2_3.4.2
[41] adegenet_2.1.10 ade4_1.7-22
loaded via a namespace (and not attached):
[1] utf8_1.2.3 R.utils_2.12.2 tidyselect_1.2.0 lme4_1.1-33 htmlwidgets_1.6.2
[6] grid_4.2.3 combinat_0.0-8 StAMPP_1.6.3 munsell_0.5.0 units_0.8-1
[11] codetools_0.2-19 withr_2.5.0 gdsfmt_1.34.1 colorspace_2.1-0 pegas_1.2
[16] knitr_1.42 rstudioapi_0.14 stats4_4.2.3 labeling_0.4.2 RgoogleMaps_1.4.5.3
[21] farver_2.1.1 gap.datasets_0.0.5 vctrs_0.6.2 generics_0.1.3 xfun_0.39
[26] timechange_0.2.0 R6_2.5.1 doParallel_1.0.17 bitops_1.0-7 reshape_0.8.9
[31] promises_1.2.0.1 nnet_7.3-18 gtable_0.3.3 sandwich_3.0-2 rlang_1.1.1
[36] calibrate_1.7.7 splines_4.2.3 checkmate_2.1.0 yaml_2.3.7 reshape2_1.4.4
[41] abind_1.4-5 backports_1.4.1 httpuv_1.6.11 Hmisc_5.0-1 tools_4.2.3
[46] Rcmdr_2.8-0 ellipsis_0.3.2 RColorBrewer_1.1-3 proxy_0.4-27 Rcpp_1.0.10
[51] plyr_1.8.8 base64enc_0.1-3 classInt_0.4-9 rpart_4.1.19 zoo_1.8-12
[56] haven_2.5.2 cluster_2.1.4 survey_4.1-1 magrittr_2.0.3 data.table_1.14.8
[61] visreg_2.7.0 spacetime_1.3-0 genetics_1.3.8.1.3 effects_4.2-2 mvtnorm_1.1-3
[66] hms_1.1.3 RcmdrMisc_2.7-2 mime_0.12 evaluate_0.21 xtable_1.8-4
[71] jpeg_0.1-10 readxl_1.4.2 gridExtra_2.3 MuMIn_1.47.5 compiler_4.2.3
[76] KernSmooth_2.23-20 crayon_1.5.2 minqa_1.2.5 gdistance_1.6.2 R.oo_1.25.0
[81] htmltools_0.5.5 mgcv_1.8-42 later_1.3.1 tzdb_0.3.0 Formula_1.2-5
[86] DBI_1.1.3 PopGenReport_3.0.7 MASS_7.3-59 boot_1.3-28.1 relimp_1.0-5
[91] Matrix_1.5-4 car_3.1-2 cli_3.6.1 mitools_2.4 R.methodsS3_1.8.2
[96] gdata_2.19.0 parallel_4.2.3 insight_0.19.1 dotCall64_1.0-2 igraph_1.4.2
[101] pkgconfig_2.0.3 foreach_1.5.2 SNPRelate_1.32.2 digest_0.6.31 rmarkdown_2.21
[106] cellranger_1.1.0 intervals_0.15.3 htmlTable_2.4.1 nortest_1.0-4 gap_1.5-1
[111] shiny_1.7.4 gtools_3.9.4 nloptr_2.0.3 lifecycle_1.0.3 nlme_3.1-162
[116] dismo_1.3-9 carData_3.0-5 seqinr_4.2-30 fansi_1.0.4 pillar_1.9.0
[121] GGally_2.1.2 fastmap_1.1.1 httr_1.4.6 survival_3.5-5 glue_1.6.2
[126] xts_0.13.1 FNN_1.1.3.2 mmod_1.3.3 png_0.1-8 iterators_1.0.14
[131] tcltk2_1.2-11 class_7.3-21 e1071_1.7-13 ape_5.7-1
You received this message because you are subscribed to a topic in the Google Groups "dartR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dartr/qIgrNXlBgkQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/d4f7c300-626c-4584-be8f-95d5ce9307a8n%40googlegroups.com.
Hi Elsbeth,
Can you try to run it locally and not from your onedrive with the “funny” characters and spaces in the path.
I know that R and oneDrive can have issues and that might be the case here.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/CANWhuxiREDT-i6sk_94FTU-kJdxsBK1LNHCsOWD3vAiFcJF4xg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/3ce508ce-25d2-4b32-8f74-9d6e2b87308an%40googlegroups.com.