Describe the bug
Error when running get_indiv_surv() or run_bulksurv() commands
Expected behavior
For the code to execute without error and generate data frame in format acceptable by the conventional survival analysis functions.
Instead I get the following error message:
Error in tidyr::uncount():
! Can't convert weights to .
Backtrace:
ggbulksurv::get_indiv_surv(...)
tidyr:::uncount.data.frame(., censored)
after running get_indiv_surv(sample_data=dat,sample_order = c("control","experimental")). dat is a data.frame() that includes the day, dead, and censored columns. I get same error when running the run_bulksurv() function.
Desktop (please complete the following information):
OS: MacOS 14.5
Additional context
Add any other context about the problem here.
sessionInfo()
R version 4.4.0 (2024-04-24)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.5
attached base packages:
[1] stats graphics grDevices utils datasets methods base
It seems like there is an issue with the data in your censored column. Could you run str(dat) to check whether the censored column has type int or num?
Describe the bug Error when running get_indiv_surv() or run_bulksurv() commands
Expected behavior For the code to execute without error and generate data frame in format acceptable by the conventional survival analysis functions.
Instead I get the following error message:
Error in to .
Backtrace:
tidyr::uncount()
: ! Can't convertweights
after running get_indiv_surv(sample_data=dat,sample_order = c("control","experimental")). dat is a data.frame() that includes the day, dead, and censored columns. I get same error when running the run_bulksurv() function.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] BiocManager_1.30.23 magrittr_2.0.3 mtplot_1.3.1 lubridate_1.9.3 forcats_1.0.0
[6] stringr_1.5.1 dplyr_1.1.4 purrr_1.0.2 readr_2.1.5 tidyr_1.3.1
[11] tibble_3.2.1 ggplot2_3.5.1 tidyverse_2.0.0 ggbulksurv_0.3.0 devtools_2.4.5
[16] usethis_2.2.3