Last updated: 2019-09-04

Checks: 6 1

Knit directory: ptb_workflowr/

This reproducible R Markdown analysis was created with workflowr (version 1.4.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(20190313) 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.

Using absolute paths to the files within your workflowr project makes it difficult for you and others to run your code on a different machine. Change the absolute path(s) below to the suggested relative path(s) to make your code more reproducible.

absolute relative
/home/nwknoblauch/Dropbox/Repos/ptb_workflowr/cache/rcc4/ cache/rcc4
~/Dropbox/Repos/ptb_workflowr/R/config.R R/config.R

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.

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:     (dellxps's conflicted copy 2019-07-30).Rhistory
    Ignored:     (dellxps's conflicted copy 2019-08-14).Rhistory
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    analysis/PTB_features (dellxps's conflicted copy 2019-06-19).Rmd
    Ignored:    analysis/figure/
    Ignored:    cache/
    Ignored:    data/NA_character_.RDS
    Ignored:    data/ag_df.RDS
    Ignored:    data/annotations.h5
    Ignored:    data/big_hic_t.tsv.gz
    Ignored:    data/chr19_snpdata_hm3only.RDS
    Ignored:    data/endometrium.jpg
    Ignored:    data/eqtl_gwas_file.tsv.gz
    Ignored:    data/evd_list_chr19_hm3.RDS
    Ignored:    data/exons.bed
    Ignored:    data/fat_eqtl.tsv.gz
    Ignored:    data/gencode.v28.annotation.gff3.gz
    Ignored:    data/genes.bed
    Ignored:    data/gwas_file.tsv.gz
    Ignored:    data/gwas_ptb_file.tsv.gz
    Ignored:    data/gwas_ptb_file_i.tsv.zstd
    Ignored:    data/gwas_scz_file.tsv.gz
    Ignored:    data/hic_t.tsv.gz
    Ignored:    data/little_gwas_i.tsv.zstd
    Ignored:    data/matched_snp.RDS
    Ignored:    data/new_cache_log.RDS
    Ignored:    data/ngwas_df.h5
    Ignored:    data/old_cache_log.RDS
    Ignored:    data/retd.RDS
    Ignored:    data/shuffeqtl_gwas_file.tsv.gz
    Ignored:    data/split_d.h5
    Ignored:    data/sub_gwas_ptb.tsv.gz
    Ignored:    data/susie_r.RDS
    Ignored:    data/ut_eqtl.tsv.gz
    Ignored:    old_index/

Untracked files:
    Untracked:  .drake_history/
    Untracked:  R/impute.R
    Untracked:  R/old_functions.R
    Untracked:  analysis/23_and_me.Rmd
    Untracked:  analysis/LD.Rmd
    Untracked:  analysis/awd.RData
    Untracked:  analysis/dataset_SNPs_mismatches-reference.txt
    Untracked:  analysis/enrichment_analysis.Rmd
    Untracked:  analysis/finemap_plot.Rmd
    Untracked:  analysis/joint_annotations.Rmd
    Untracked:  analysis/ldshrink_drake.Rmd
    Untracked:  analysis/mws.RData
    Untracked:  analysis/test_knit_code.Rmd
    Untracked:  analysis/test_knit_code2.Rmd
    Untracked:  bd.txt
    Untracked:  code/
    Untracked:  config.yml
    Untracked:  config/four_features.yaml
    Untracked:  config/four_features_repro_ctrl.yaml
    Untracked:  config/four_features_repro_dec.yaml
    Untracked:  extract_results_main.R
    Untracked:  extract_sigma_g.R
    Untracked:  false_positives.dsc
    Untracked:  marginal_joint.R
    Untracked:  power.dsc
    Untracked:  presentations/
    Untracked:  ptb_cache/
    Untracked:  sigma_g.dsc
    Untracked:  sim_results/
    Untracked:  sub_drake.sh
    Untracked:  summarize_sigma_g.R

Unstaged changes:
    Modified:   R/config.R
    Modified:   analysis/PTB_features.Rmd
    Modified:   analysis/marginal_joint.Rmd
    Modified:   analysis/multifeature.Rmd
    Modified:   analysis/multifeature_update.Rmd
    Modified:   config/workflow_params_desktop.yaml
    Modified:   config/workflow_params_rcc.yaml
    Modified:   config/workflow_params_xps.yaml
    Modified:   make.R
    Modified:   slurm_clustermq.tmpl
    Modified:   torque_clustermq.tmpl

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 R Markdown and HTML files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view them.

File Version Author Date Message
Rmd 30bd2f7 CreRecombinase 2019-09-04 wflow_publish(“analysis/region_discovery.Rmd”)

Introduction

library(tidyverse)
── Attaching packages ──────────────────────────────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.2.0.9000      ✔ purrr   0.3.2      
✔ tibble  2.1.3           ✔ dplyr   0.8.3      
✔ tidyr   0.8.99.9000     ✔ stringr 1.4.0      
✔ readr   1.3.1           ✔ forcats 0.4.0      
── Conflicts ─────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
library(glue)

Attaching package: 'glue'
The following object is masked from 'package:dplyr':

    collapse
source("~/Dropbox/Repos/ptb_workflowr/R/config.R")
names_d <- model_df$name
model_terms <- model_df$features
names(model_terms) <- model_df$name
all_feat <- unique(c(unlist(model_terms)))
cc <- drake::drake_cache("/home/nwknoblauch/Dropbox/Repos/ptb_workflowr/cache/rcc4/")
dbdir <-"/home/nwknoblauch/Dropbox/scratch/ptb_scratch/gene_anno/"
drake::loadd(top_gwas_loc,cache=cc)
drake::loadd(top_gwas_reg,cache=cc)
top_regions <- top_gwas_reg$region_id
top_snp <- dplyr::select(top_gwas_loc,min_p=p,region_id=region_id) %>% dplyr::mutate(region_id=as.integer(as.numeric(region_id))) %>% group_by(region_id) %>% summarise(min_p=min(min_p))
fdr_results <- map_df(names_d,function(x){
    mutate(drake::readd(glue("fdr_results_.scratch.midway2.nwknoblauch.ptb_scratch.{x}.txt.gz"),character_only = T,cache=cc),model=x)
}) %>% dplyr::select(region_id,fdr,model) %>% inner_join(data_config$data$ld_df) %>% inner_join(top_snp)
Joining, by = "region_id"
Joining, by = "region_id"
spread(fdr_results,key=model,value=fdr) %>% DT::datatable()

sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Manjaro Linux

Matrix products: default
BLAS/LAPACK: /usr/lib/libopenblas_haswellp-r0.3.6.so

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

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

other attached packages:
 [1] tidyselect_0.2.5   RSSp_0.9.0.9000    ldmap_0.0.0.9000  
 [4] daprcpp_1.0.0.9000 ldshrink_1.0-1     furrr_0.1.0.9002  
 [7] future_1.13.0      bigsnpr_0.11.5     bigstatsr_0.9.9   
[10] vroom_1.0.2.9000   RSQLite_2.1.1      drake_7.4.0.9000  
[13] fs_1.3.1           susieR_0.8.1.0525  here_0.1          
[16] dbplyr_1.4.2       MonetDBLite_0.6.1  glue_1.3.1        
[19] forcats_0.4.0      stringr_1.4.0      dplyr_0.8.3       
[22] purrr_0.3.2        readr_1.3.1        tidyr_0.8.99.9000 
[25] tibble_2.1.3       ggplot2_3.2.0.9000 tidyverse_1.2.1   

loaded via a namespace (and not attached):
 [1] colorspace_1.4-1       RcppEigen_0.3.3.5.0    rprojroot_1.3-2       
 [4] XVector_0.24.0         GenomicRanges_1.36.0   rstudioapi_0.10       
 [7] listenv_0.7.0          DT_0.7.2               bit64_0.9-7           
[10] lubridate_1.7.4        xml2_1.2.2             codetools_0.2-16      
[13] knitr_1.23             zeallot_0.1.0          jsonlite_1.6          
[16] workflowr_1.4.0        broom_0.5.2            shiny_1.3.2           
[19] compiler_3.6.1         httr_1.4.1             backports_1.1.4       
[22] assertthat_0.2.1       Matrix_1.2-17          lazyeval_0.2.2        
[25] cli_1.1.0              later_0.8.0            htmltools_0.3.6       
[28] tools_3.6.1            igraph_1.2.4.1         gtable_0.3.0          
[31] GenomeInfoDbData_1.2.1 Rcpp_1.0.2             cellranger_1.1.0      
[34] vctrs_0.2.0.9001       nlme_3.1-140           iterators_1.0.10      
[37] crosstalk_1.0.0        wavethresh_4.6.8       xfun_0.8              
[40] globals_0.12.4         rvest_0.3.4            mime_0.7              
[43] lifecycle_0.1.0        zlibbioc_1.30.0        MASS_7.3-51.4         
[46] scales_1.0.0           promises_1.0.1         hms_0.5.0             
[49] parallel_3.6.1         yaml_2.2.0             memoise_1.1.0         
[52] stringi_1.4.3          highr_0.8              S4Vectors_0.22.0      
[55] foreach_1.4.4          BiocGenerics_0.30.0    filelock_1.0.2        
[58] storr_1.2.2            GenomeInfoDb_1.20.0    rlang_0.4.0.9002      
[61] pkgconfig_2.0.2        bitops_1.0-6           evaluate_0.14         
[64] lattice_0.20-38        htmlwidgets_1.3        cowplot_1.0.0         
[67] bit_1.1-14             magrittr_1.5           R6_2.4.0              
[70] IRanges_2.18.1         generics_0.0.2         base64url_1.4         
[73] txtq_0.1.3             DBI_1.0.0              pillar_1.4.2          
[76] haven_2.1.0            whisker_0.4            withr_2.1.2           
[79] RCurl_1.95-4.12        modelr_0.1.4           crayon_1.3.4          
[82] rmarkdown_1.13         grid_3.6.1             readxl_1.3.1          
[85] data.table_1.12.2      blob_1.1.1             git2r_0.26.1          
[88] digest_0.6.20          xtable_1.8-4           httpuv_1.5.1          
[91] RcppParallel_4.4.3     stats4_3.6.1           munsell_0.5.0