Last updated: 2025-04-24

Checks: 7 0

Knit directory: prs/

This reproducible R Markdown analysis was created with workflowr (version 1.7.1). 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(20250417) 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 077b30f. 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:    .DS_Store
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    analysis/.DS_Store
    Ignored:    data/.DS_Store

Untracked files:
    Untracked:  analysis/dds.rda
    Untracked:  analysis/differential_expression.Rmd
    Untracked:  analysis/metadata.txt
    Untracked:  analysis/normalized_counts.rda
    Untracked:  analysis/vst norm counts.rda
    Untracked:  data/GTEx_v8.bk
    Untracked:  data/GTEx_v8.rds
    Untracked:  data/Whole_Blood.v8.covariates.txt
    Untracked:  data/blood_cell/
    Untracked:  data/gene_reads_2017-06-05_v8_whole_blood.gct
    Untracked:  data/gene_tpm_2017-06-05_v8_whole_blood.gct.gz
    Untracked:  data/immune/

Unstaged changes:
    Deleted:    analysis/normalized_counts.txt
    Modified:   prs.Rproj

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/PRS_data_info.Rmd) and HTML (docs/PRS_data_info.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 7338250 ElisaChen 2025-04-17 first commit

Data

To analyze the correlation between polygenetic risk score (PRS) and gene expression, we first compute PRS of each GTEx samples for a trait:

  • SNP-based PRS:

    • Immune traits: trained by our collaborator, Salem Werdyani. Study information including Open GWAS ID, sample sizes, number of cases & controls are listed below:
    Trait pmid Open GWAS ID Sample size Cases Control
    Celiac 34278373 GCST90014442 326,438 2,364 324,074
    Celiac

    38789286

    20190752

    GCST90468120 15,283 4,533 10,750
    IBD 34017140 GCST90013901 407,746 4,161 403,585
    IBD 34017140 GCST90013951 404,781 4,130 400,650
    SLE 26502338 GCST003156 14,267 5,201 9,066
    SLE 33536424 GCST011096 12,615 4,576 8,039
    T1D 33830302 GCST90000529 17,685 7,467 10,218
    T1D 34012112 GCST90014023 520,580 18,942 501,638
    • blood cell counts: sourced from Vuckovic D et al’s study. The study leverages UK Biobank cohort to perform a genome-wide discovery analysis in 408,112 European participants, investigating 29 blood cell phenotypes.

    Both data sources provide effect weights for SNPs associated with specific traits, facilitating the construction of PRS.

  • GTEx genotype data (version 8), consisting of 15,201 RNA-sequencing samples from 49 tissues of 838 postmortem donors. Here, we focus on whole blood samples (n = 670).


sessionInfo()
R version 4.2.2 (2022-10-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur ... 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/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] workflowr_1.7.1

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.14       compiler_4.2.2    pillar_1.10.1     bslib_0.9.0      
 [5] later_1.4.1       git2r_0.33.0      jquerylib_0.1.4   tools_4.2.2      
 [9] getPass_0.2-4     digest_0.6.37     jsonlite_1.8.9    evaluate_1.0.3   
[13] lifecycle_1.0.4   tibble_3.2.1      pkgconfig_2.0.3   rlang_1.1.5      
[17] cli_3.6.3         rstudioapi_0.17.1 yaml_2.3.10       xfun_0.50        
[21] fastmap_1.2.0     httr_1.4.7        stringr_1.5.1     knitr_1.49       
[25] fs_1.6.5          vctrs_0.6.5       sass_0.4.9        rprojroot_2.0.4  
[29] glue_1.8.0        R6_2.5.1          processx_3.8.5    rmarkdown_2.29   
[33] callr_3.7.6       magrittr_2.0.3    whisker_0.4.1     ps_1.8.1         
[37] promises_1.3.2    htmltools_0.5.8.1 httpuv_1.6.15     stringi_1.8.4    
[41] cachem_1.1.0