Last updated: 2025-01-07

Checks: 7 0

Knit directory: survival-susie/

This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20230201) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 7f116d8. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .RData
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/

Untracked files:
    Untracked:  analysis/time_gh.Rmd
    Untracked:  output/bf_comparison_b_1_n_500000.pdf

Unstaged changes:
    Modified:   analysis/bf_comparison.Rmd
    Deleted:    analysis/calibration_large_sample.Rmd
    Modified:   analysis/check_bf.Rmd
    Modified:   analysis/coxph_na.Rmd
    Modified:   analysis/pip_default_iter_gtex.Rmd
    Modified:   code/pip.R
    Modified:   output/bf_comparison.pdf
    Modified:   output/bf_comparison_b_0.01_n_500000.pdf
    Modified:   output/bf_defense.pdf
    Modified:   output/bf_different_bhat_large_n.pdf
    Modified:   output/bf_different_bhat_small_n.pdf
    Modified:   output/bf_different_n_large_b.pdf
    Deleted:    output/pip_combined.Rmd
    Modified:   output/pip_gtex.pdf
    Modified:   output/pip_ukb.pdf
    Modified:   output/plot_combined.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/time_benchmark.Rmd) and HTML (docs/time_benchmark.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 7f116d8 yunqi yang 2025-01-07 wflow_publish("analysis/time_benchmark.Rmd")
html 8ffbb38 yunqi yang 2025-01-04 Build site.
Rmd 843ebc7 yunqi yang 2025-01-04 wflow_publish("analysis/time_benchmark.Rmd")
html 9f5230b yunqi yang 2024-04-01 Build site.
Rmd 3af7f77 yunqi yang 2024-04-01 wflow_publish("analysis/time_benchmark.Rmd")

Description: time comparison between small and large data

  1. Small data (n ~ 500) vs. Large data (n = 50000)
  1. Susie: maxiter = 100 vs. maxiter = 10

  2. BVSNLP: niter = 30

  3. survival.svb: maxiter = 1000 vs. maxiter = 100

  4. susie.rss: maxiter = 100

  5. r2b: niter = 1e6.

time.gtex = readRDS("/project2/mstephens/yunqiyang/surv-susie/sim202406/sim_gtex_default_iter/time_comparison.rds")
time.ukb = readRDS("/project2/mstephens/yunqiyang/surv-susie/sim202406/sim_ukb_niter10/time_comparison.rds")
t_mean.gtex <- unlist(lapply(1:length(time.gtex),
                    function (i) {
                      res <- subset(time.gtex[[i]],cor_type = "real")
                      return(mean(res[,5],na.rm = TRUE))
                    }))


t_mean.ukb <- unlist(lapply(1:length(time.ukb),
                    function (i) {
                      res <- subset(time.ukb[[i]],cor_type = "real")
                      return(mean(res[,5],na.rm = TRUE))
                    }))
res = rbind(t_mean.gtex, t_mean.ukb)
colnames(res) = c("susie", "bvsnlp", "susie.rss", "svb", "r2b")
rownames(res) = c("gtex", "ukb")
res
         susie     bvsnlp  susie.rss       svb        r2b
gtex  331.0061   57.69978   6.448924  138.6065   190.2182
ukb  7275.3637 4498.76360 218.386279 2496.1227 10463.2586

sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /software/openblas-0.3.13-el7-x86_64/lib/libopenblas_haswellp-r0.3.13.so

locale:
 [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C         LC_TIME=C           
 [4] LC_COLLATE=C         LC_MONETARY=C        LC_MESSAGES=C       
 [7] LC_PAPER=C           LC_NAME=C            LC_ADDRESS=C        
[10] LC_TELEPHONE=C       LC_MEASUREMENT=C     LC_IDENTIFICATION=C 

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] workflowr_1.7.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.12      compiler_4.2.0   pillar_1.9.0     bslib_0.3.1     
 [5] later_1.3.0      git2r_0.30.1     jquerylib_0.1.4  tools_4.2.0     
 [9] getPass_0.2-2    digest_0.6.29    jsonlite_1.8.0   evaluate_0.15   
[13] lifecycle_1.0.4  tibble_3.2.1     pkgconfig_2.0.3  rlang_1.1.3     
[17] cli_3.6.2        rstudioapi_0.13  yaml_2.3.5       xfun_0.30       
[21] fastmap_1.1.0    httr_1.4.3       stringr_1.5.1    knitr_1.39      
[25] fs_1.5.2         vctrs_0.6.5      sass_0.4.1       rprojroot_2.0.3 
[29] glue_1.6.2       R6_2.5.1         processx_3.8.0   fansi_1.0.3     
[33] rmarkdown_2.14   callr_3.7.3      magrittr_2.0.3   whisker_0.4     
[37] ps_1.7.0         promises_1.2.0.1 htmltools_0.5.2  httpuv_1.6.5    
[41] utf8_1.2.2       stringi_1.7.6