assigner
assigner copied to clipboard
assigner::assignment_ngs() - Error in dplyr::bind_rows(.) : Argument 1 must have names.
Dear Thierry,
Description of the bug assigner::assignment_ngs does not work with the dataset data_assigner_sim_01 included in assigner - suspecting it is a dplyr issue. I tried dplyr v1.0.0 and the latest v1.0.10 without sucess. I used the dataset included in assigner after having problems with my own dataset. I wanted to know if it was a problem with the formatting of my data (also dplyr related issue) or if it was the function.
To reproduce
library(assigner)
data<- data_assigner_sim_01
test1 <- assigner::assignment_ngs(
data = data,
assignment.analysis = "gsi_sim",
markers.sampling = "ranked",
thl = 0.2,
iteration.method = 5
)
error message
################################################################################
########################## assigner::assignment_ngs ############################
################################################################################
Execution date/time: 20221206@1917
Assignment analysis with gsi_sim
Subsampling: not selected
Conducting Assignment analysis using Training, Holdout, Leave-one-out
Using training samples to rank markers based on Fst
Holdout samples saved in your folder
Starting parallel computations, for progress monitor activity in folder...
Ranking markers based on Fst
Removing holdout individuals
Fst computation...
Error in dplyr::bind_rows(.) : Argument 1 must have names.
Computation time, overall: 6 sec
########################## assignment_ngs completed ############################
- output of
devtools::session_info()
Session info ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
setting value
version R version 4.2.1 (2022-06-23 ucrt)
os Windows Server 2012 R2 x64 (build 9600)
system x86_64, mingw32
ui Rgui
language (EN)
collate English_United States.1252
ctype English_United States.1252
tz unknown
date 2022-12-06
pandoc NA
- Packages -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
package * version date (UTC) lib source
ade4 1.7-20 2022-11-01 [1] CRAN (R 4.2.2)
adegenet 2.1.8 2022-10-02 [1] CRAN (R 4.2.2)
ape 5.6-2 2022-03-02 [1] CRAN (R 4.2.1)
assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.2.1)
assigner * 0.5.8 2022-09-15 [1] Github (thierrygosselin/assigner@d39a692)
bit 4.0.4 2020-08-04 [1] CRAN (R 4.2.1)
bit64 4.0.5 2020-08-30 [1] CRAN (R 4.2.1)
cachem 1.0.6 2021-08-19 [1] CRAN (R 4.2.1)
callr 3.7.3 2022-11-02 [1] CRAN (R 4.2.2)
carrier 0.1.0 2018-10-16 [1] CRAN (R 4.2.1)
cli 3.4.1 2022-09-23 [1] CRAN (R 4.2.2)
cluster 2.1.4 2022-08-22 [1] CRAN (R 4.2.1)
codetools 0.2-18 2020-11-04 [2] CRAN (R 4.2.1)
colorspace 2.0-3 2022-02-21 [1] CRAN (R 4.2.1)
crayon 1.5.2 2022-09-29 [1] CRAN (R 4.2.2)
curl 4.3.3 2022-10-06 [1] CRAN (R 4.2.2)
data.table 1.14.4 2022-10-17 [1] CRAN (R 4.2.2)
DBI 1.1.3 2022-06-18 [1] CRAN (R 4.2.1)
devtools 2.4.5 2022-10-11 [1] CRAN (R 4.2.2)
digest 0.6.30 2022-10-18 [1] CRAN (R 4.2.2)
dplyr * 1.0.10 2022-09-01 [1] CRAN (R 4.2.2)
ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.2.1)
fansi 1.0.3 2022-03-24 [1] CRAN (R 4.2.1)
fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.2.1)
fs 1.5.2 2021-12-08 [1] CRAN (R 4.2.1)
furrr 0.3.1 2022-08-15 [1] CRAN (R 4.2.1)
future 1.29.0 2022-11-06 [1] CRAN (R 4.2.2)
generics 0.1.3 2022-07-05 [1] CRAN (R 4.2.1)
ggplot2 3.4.0 2022-11-04 [1] CRAN (R 4.2.2)
globals 0.16.2 2022-11-21 [1] CRAN (R 4.2.2)
glue 1.6.2 2022-02-24 [1] CRAN (R 4.2.1)
gtable 0.3.1 2022-09-01 [1] CRAN (R 4.2.1)
hms 1.1.2 2022-08-19 [1] CRAN (R 4.2.1)
htmltools 0.5.3 2022-07-18 [1] CRAN (R 4.2.1)
htmlwidgets 1.5.4 2021-09-08 [1] CRAN (R 4.2.1)
httpuv 1.6.6 2022-09-08 [1] CRAN (R 4.2.1)
igraph 1.3.5 2022-09-22 [1] CRAN (R 4.2.2)
later 1.3.0 2021-08-18 [1] CRAN (R 4.2.1)
lattice 0.20-45 2021-09-22 [2] CRAN (R 4.2.1)
lifecycle 1.0.3 2022-10-07 [1] CRAN (R 4.2.2)
listenv 0.8.0 2019-12-05 [1] CRAN (R 4.2.1)
magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.2.1)
MASS 7.3-58.1 2022-08-03 [1] CRAN (R 4.2.1)
Matrix 1.5-3 2022-11-11 [1] CRAN (R 4.2.2)
memoise 2.0.1 2021-11-26 [1] CRAN (R 4.2.1)
mgcv 1.8-40 2022-03-29 [2] CRAN (R 4.2.1)
mime 0.12 2021-09-28 [1] CRAN (R 4.2.0)
miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.2.1)
munsell 0.5.0 2018-06-12 [1] CRAN (R 4.2.1)
nlme 3.1-160 2022-10-10 [1] CRAN (R 4.2.2)
parallelly 1.32.1 2022-07-21 [1] CRAN (R 4.2.1)
permute 0.9-7 2022-01-27 [1] CRAN (R 4.2.1)
pillar 1.8.1 2022-08-19 [1] CRAN (R 4.2.1)
pkgbuild 1.4.0 2022-11-27 [1] CRAN (R 4.2.2)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.2.1)
pkgload 1.3.2 2022-11-16 [1] CRAN (R 4.2.2)
plyr 1.8.8 2022-11-11 [1] CRAN (R 4.2.2)
prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.2.1)
processx 3.8.0 2022-10-26 [1] CRAN (R 4.2.2)
profvis 0.3.7 2020-11-02 [1] CRAN (R 4.2.1)
promises 1.2.0.1 2021-02-11 [1] CRAN (R 4.2.1)
ps 1.7.2 2022-10-26 [1] CRAN (R 4.2.2)
purrr 0.3.5 2022-10-06 [1] CRAN (R 4.2.2)
R6 2.5.1 2021-08-19 [1] CRAN (R 4.2.1)
radiator 1.2.4 2022-11-15 [1] Github (thierrygosselin/radiator@06ae13f)
Rcpp 1.0.9 2022-07-08 [1] CRAN (R 4.2.1)
readr 2.1.3 2022-10-01 [1] CRAN (R 4.2.2)
remotes 2.4.2 2021-11-30 [1] CRAN (R 4.2.1)
reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.2.1)
rlang 1.0.6 2022-09-24 [1] CRAN (R 4.2.2)
scales 1.2.1 2022-08-20 [1] CRAN (R 4.2.1)
seqinr 4.2-16 2022-05-19 [1] CRAN (R 4.2.1)
sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.2.1)
shiny 1.7.3 2022-10-25 [1] CRAN (R 4.2.2)
stringi 1.7.8 2022-07-11 [1] CRAN (R 4.2.1)
stringr * 1.5.0 2022-12-02 [1] CRAN (R 4.2.2)
tibble 3.1.8 2022-07-22 [1] CRAN (R 4.2.1)
tidyr 1.2.1 2022-09-08 [1] CRAN (R 4.2.1)
tidyselect 1.2.0 2022-10-10 [1] CRAN (R 4.2.2)
tzdb 0.3.0 2022-03-28 [1] CRAN (R 4.2.1)
urlchecker 1.0.1 2021-11-30 [1] CRAN (R 4.2.1)
usethis 2.1.6 2022-05-25 [1] CRAN (R 4.2.1)
utf8 1.2.2 2021-07-24 [1] CRAN (R 4.2.1)
vctrs 0.5.0 2022-10-22 [1] CRAN (R 4.2.2)
vegan 2.6-4 2022-10-11 [1] CRAN (R 4.2.2)
vroom 1.6.0 2022-09-30 [1] CRAN (R 4.2.2)
withr 2.5.0 2022-03-03 [1] CRAN (R 4.2.1)
xtable 1.8-4 2019-04-21 [1] CRAN (R 4.2.1)
[1] C:/Users/Admin/AppData/Local/R/win-library/4.2
[2] C:/Program Files/R/R-4.2.1/library
---------------------------------------------------------------------------------
Thank you for the help
Have a good day
Sandrine
Thanks for reporting the bug Sandrine, I'll have a look at it this morning
Hi Thierry,
Have you had a chance to look at this error yet ? I would like to use your package but I run into the same issue as Sapicq while going through the tutorial.
Thanks,
Pauline