Last updated: 2019-04-16
workflowr checks: (Click a bullet for more information) ✔ R Markdown file: up-to-date
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.
✔ Environment: empty
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.
✔ Seed:
set.seed(20190115)
The command set.seed(20190115) 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.
✔ Session information: recorded
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
✔ Repository version: daf0590
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: .DS_Store
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: .sos/
Ignored: analysis/.DS_Store
Ignored: data/.DS_Store
Ignored: output/.DS_Store
Untracked files:
Untracked: data/random_data_31.rds
Untracked: data/random_data_31_sim_gaussian_35.rds
Untracked: data/random_data_31_sim_gaussian_35_get_sumstats_1.rds
Untracked: data/small_data_1.ld_in_file.in.ld
Untracked: data/small_data_1.ld_out_file.out.ld
Untracked: data/small_data_132.ld_in_file.in.ld
Untracked: data/small_data_132.ld_out_file.out.ld
Untracked: data/small_data_132_sim_gaussian_12.rds
Untracked: data/small_data_132_sim_gaussian_12_get_sumstats_1.rds
Untracked: data/small_data_1_sim_gaussian_2.rds
Untracked: data/small_data_1_sim_gaussian_2_get_sumstats_1.rds
Untracked: data/small_data_46.rds
Untracked: data/small_data_46_sim_gaussian_10.rds
Untracked: data/small_data_46_sim_gaussian_10_get_sumstats_2.rds
Untracked: data/small_data_69.ld_in_file.in.ld
Untracked: data/small_data_69.ld_out_file.out.ld
Untracked: data/small_data_69_sim_gaussian_3.rds
Untracked: data/small_data_69_sim_gaussian_3_get_sumstats_1.rds
Untracked: data/small_data_69_sim_gaussian_3_get_sumstats_1_susie_z_1.rds
Untracked: data/small_data_69_sim_gaussian_3_get_sumstats_1_susie_z_2.rds
Untracked: figure/
Untracked: output/dscoutProblem475.rds
Untracked: output/dscoutProblem75.rds
Untracked: output/finemap_compare_random_data_null_dscout.rds
Untracked: output/finemap_compare_random_data_signal_dscout.rds
Untracked: output/finemap_compare_small_data_signal_dscout.rds
Untracked: output/finemap_compare_small_data_signal_dscout_RE8.rds
Untracked: output/r_compare_FINEMAP_PIP_ROC.rds
Untracked: output/r_compare_dscout_susie_finemappip_tibble.rds
Untracked: output/r_compare_dscout_susie_finemappip_truth_tibble.rds
Untracked: output/r_compare_susieb_PIP_ROC.rds
Untracked: output/r_compare_susiepip_tibble.rds
Untracked: output/r_compare_susierss_PIP_ROC.rds
Untracked: output/random_data_100_sim_gaussian_null_1_get_sumstats_1_finemap_1.rds
Untracked: output/random_data_31_35_fit_em.rds
Untracked: output/random_data_76.rds
Untracked: output/random_data_76_sim_gaussian_8.rds
Untracked: output/random_data_76_sim_gaussian_8_get_sumstats_1.rds
Untracked: output/small_data_42_sim_gaussian_36_get_sumstats_2_susie_z_2.rds
Untracked: output/small_data_92_sim_gaussian_30_get_sumstats_2_susie_z_2.rds
Unstaged changes:
Modified: analysis/SuSiEDAP_Power_data31_35.Rmd
Modified: analysis/SusieZPerformance.Rmd
Modified: analysis/SusieZPerformanceRE3.Rmd
Modified: output/dsc_susie_z_v_output.rds
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.
| File | Version | Author | Date | Message |
|---|---|---|---|---|
| Rmd | daf0590 | zouyuxin | 2019-04-16 | wflow_publish(“analysis/SuSiErssNotConverge.Rmd”) |
| html | 4c7b10d | zouyuxin | 2019-04-15 | Build site. |
| Rmd | faf1bd5 | zouyuxin | 2019-04-15 | wflow_publish(c(“analysis/SuSiErssNotConverge.Rmd”, “analysis/r_compare_susieb_problem.Rmd”)) |
| html | 9267aac | zouyuxin | 2019-04-15 | Build site. |
| Rmd | f22b0c3 | zouyuxin | 2019-04-15 | wflow_publish(“analysis/SuSiErssNotConverge.Rmd”) |
This data is simulated with PVE 0.6. There is only one signal.
library(susieR)
library(data.table)
Warning: package 'data.table' was built under R version 3.5.2
r.out = as.matrix(fread('data/small_data_69.ld_out_file.out.ld'))
r.in = as.matrix(fread('data/small_data_69.ld_in_file.in.ld'))
data = readRDS('data/small_data_69_sim_gaussian_3.rds')
ss = readRDS('data/small_data_69_sim_gaussian_3_get_sumstats_1.rds')
z = ss$sumstats$bhat/ss$sumstats$shat
susie_plot(z, y = "z", b=data$meta$true_coef)

| Version | Author | Date |
|---|---|---|
| 9267aac | zouyuxin | 2019-04-15 |
This is the reuslt from susie_bhat:
fit_b = susie_bhat(ss$sumstats$bhat, ss$sumstats$shat, R = r.in, n=287, L=5, estimate_residual_variance=TRUE)
susie_plot(fit_b, y='PIP', b = data$meta$true_coef)

| Version | Author | Date |
|---|---|---|
| 9267aac | zouyuxin | 2019-04-15 |
susie_rss fails to converge with L = 5:
fit_rss = susie_rss(z, R = r.in, L=5, max_iter = 20)
Warning in susie_rss(z, R = r.in, L = 5, max_iter = 20): The maximum number
of non-zero effects is greater than 1, this feature is experimental.
Warning in susie_rss(z, R = r.in, L = 5, max_iter = 20): IBSS algorithm did
not converge in 20 iterations!
plot(fit_rss$elbo)

| Version | Author | Date |
|---|---|---|
| 9267aac | zouyuxin | 2019-04-15 |
Using L=1, it converges.
fit_rss_init = susie_rss(z, R=r.in, L=1)
susie_plot(fit_rss_init, y='PIP', b=data$meta$true_coef)

| Version | Author | Date |
|---|---|---|
| 9267aac | zouyuxin | 2019-04-15 |
If we relax the constraint on residual variance, it converges. There is no significant credible set, and the estimated residual variance is 740.
fit_rss_relax = susie_rss(z, R = r.in, L=5, max_iter = 20, restrict = FALSE)
Warning in susie_rss(z, R = r.in, L = 5, max_iter = 20, restrict = FALSE):
The maximum number of non-zero effects is greater than 1, this feature is
experimental.
This data is simulated with PVE 0.8. There are five signals.
r.out = as.matrix(fread('data/small_data_132.ld_out_file.out.ld'))
r.in = as.matrix(fread('data/small_data_132.ld_in_file.in.ld'))
data = readRDS('data/small_data_132_sim_gaussian_12.rds')
ss = readRDS('data/small_data_132_sim_gaussian_12_get_sumstats_1.rds')
z = ss$sumstats$bhat/ss$sumstats$shat
susie_plot(z, y = "z", b=data$meta$true_coef)

| Version | Author | Date |
|---|---|---|
| 9267aac | zouyuxin | 2019-04-15 |
This is the reuslt from susie_bhat:
fit_b = susie_bhat(ss$sumstats$bhat, ss$sumstats$shat, R = r.in, n=287, L=5, estimate_residual_variance=TRUE)
susie_plot(fit_b, y='PIP', b = data$meta$true_coef)

| Version | Author | Date |
|---|---|---|
| 9267aac | zouyuxin | 2019-04-15 |
susie_rss fails to converge with L = 5. Using L=1, it converges, but it picks up the wrong one.
fit_rss = susie_rss(z, R = r.in, L=1)
susie_plot(fit_rss, y='PIP', b = data$meta$true_coef)

If we relax the constraint on residual variance, it converges. There is no significant credible set, and the estimated residual variance is 9560.
fit_rss_relax = susie_rss(z, R = r.in, L=5, max_iter = 20, restrict = FALSE)
Warning in susie_rss(z, R = r.in, L = 5, max_iter = 20, restrict = FALSE):
The maximum number of non-zero effects is greater than 1, this feature is
experimental.
sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS 10.14.4
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.12.0 susieR_0.7.1.500
loaded via a namespace (and not attached):
[1] workflowr_1.1.1 Rcpp_1.0.0 lattice_0.20-38
[4] digest_0.6.18 rprojroot_1.3-2 R.methodsS3_1.7.1
[7] grid_3.5.1 backports_1.1.3 git2r_0.24.0
[10] magrittr_1.5 evaluate_0.12 stringi_1.2.4
[13] whisker_0.3-2 R.oo_1.22.0 R.utils_2.7.0
[16] Matrix_1.2-15 rmarkdown_1.11 tools_3.5.1
[19] stringr_1.3.1 yaml_2.2.0 compiler_3.5.1
[22] htmltools_0.3.6 knitr_1.20
This reproducible R Markdown analysis was created with workflowr 1.1.1