Last updated: 2024-05-31
Checks: 6 1
Knit directory: multigroup_ctwas_analysis/
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.
The R Markdown file has unstaged changes. To know which version of
the R Markdown file created these results, you’ll want to first commit
it to the Git repo. If you’re still working on the analysis, you can
ignore this warning. When you’re finished, you can run
wflow_publish
to commit the R Markdown file and build the
HTML.
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(20231112)
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 163c010. 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: .Rhistory
Ignored: results/
Unstaged changes:
Modified: analysis/multi_group_6traits_15weights_ukbb.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/multi_group_6traits_15weights_ukbb.Rmd
) and HTML
(docs/multi_group_6traits_15weights_ukbb.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 | 163c010 | XSun | 2024-05-31 | update |
html | 163c010 | XSun | 2024-05-31 | update |
Rmd | 2b980bb | XSun | 2024-05-30 | update |
html | 2b980bb | XSun | 2024-05-30 | update |
The independent tissues are selected by single tissue analysis
eQTL, sQTL weights are from GTEx PredictDB
apaQTL wetights are from https://www.nature.com/articles/s41467-024-46064-7#Sec2. Top 10 SNPs with largest abs(weights) were selected after harmonization
PredictDB:
FUSION:
100G 2core got killed
Results from multi-group analysis
The results are summarized by
Heritability contribution by contexts: we aggregate the PVE values by omics and tissues, making it easier to understand the distribution of PVE across different genetic contexts.
Combined PIP by omics: we aggregate the Susie PIPs by omics
Combined PIP by contexts: we aggregate the Susie PIPs by tissues, making it easier to understand the distribution of PIP across different genetic contexts.
Specific molecular traits of top genes: we creates a pie chart to visualize the proportion of genes classified into different categories based on their PIPs contributed by each genetics contexts. The categories are based on the proportion of each QTL type relative to the combined PIP value:
Comparing with single group eQTL results
Please not that the ealier single group eQTL analyses were performed under L=5 but the current analyses were under L=3
We compared number of significant genes, overlapping genes and the changes in PVE for eQTLs across five tissues reported by single eQTL analysi
TO DO
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
[1] "the top tissues from single group analyses are Cells_Cultured_fibroblasts,Whole_Blood,Adipose_Subcutaneous,Esophagus_Mucosa,Heart_Left_Ventricle"
We then looked into Whole_Blood
. Please not that the
ealier single group eQTL analyses were performed under L=5
but the current analyses were under L=3
.
So we re-ran the single group analysis using L=3
with
for Whole_Blood
.
[1] "The number of sig genes reported by single group analysis under L=3 is 10"
[1] "The number of overlapped genes is 7"
locus zoom plot for the regions containing these genes: https://uchicago.box.com/s/ziv0v006pxwnuprhxbagdfr0cnfk5e23
DT::datatable(df_summary,caption = htmltools::tags$caption( style = 'caption-side: topleft; text-align = left; color:black;','All genes with pip > 0.8 from single group analysis and all genes with combined pip >0.8 from multi group analysis'),options = list(pageLength = 5) )
ggplot(df_summary, aes(x = combined_pip_multi_group, y = combined_pip_nonzero_cs_multi_group)) +
geom_point() + # Add points
geom_abline(intercept = 0, slope = 1, color = "red", linetype = "dashed") +
labs(x = "Combined PIP Multi Group (adding up all pips)",
y = "Combined PIP Nonzero CS Multi Group (only pips with non-zero CS added)",
title = "Comparison for combined pip") +
theme_minimal()
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
[1] "the top tissues from single group analyses are Liver,Spleen,Adipose_Subcutaneous,Adrenal_Gland,Esophagus_Mucosa"
We then looked into Adipose_Subcutaneous
. Please not
that the ealier single group eQTL analyses were performed under
L=5
but the current analyses were under
L=3
.
So we re-ran the single group analysis using L=3
with
for Adipose_Subcutaneous
.
[1] "The number of sig genes reported by single group analysis under L=3 is 16"
[1] "The number of overlapped genes is 4"
locus zoom plot for the regions containing these genes: https://uchicago.box.com/s/u93gpgil79ybf7akrl1obfkpgkxq5wkn
DT::datatable(df_summary,caption = htmltools::tags$caption( style = 'caption-side: topleft; text-align = left; color:black;','All genes with pip > 0.8 from single group analysis and all genes with combined pip >0.8 from multi group analysis'),options = list(pageLength = 5) )
ggplot(df_summary, aes(x = combined_pip_multi_group, y = combined_pip_nonzero_cs_multi_group)) +
geom_point() + # Add points
geom_abline(intercept = 0, slope = 1, color = "red", linetype = "dashed") +
labs(x = "Combined PIP Multi Group (adding up all pips)",
y = "Combined PIP Nonzero CS Multi Group (only pips with non-zero CS added)",
title = "Comparison for combined pip") +
theme_minimal()
Warning: Removed 2 rows containing missing values or values outside the scale range
(`geom_point()`).
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
[1] "the top tissues from single group analyses are Artery_Tibial,Adipose_Subcutaneous,Brain_Cortex,Heart_Left_Ventricle,Spleen"
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
[1] "the top tissues from single group analyses are Heart_Left_Ventricle,Adrenal_Gland,Artery_Coronary,Brain_Cerebellum,Stomach"
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
Version | Author | Date |
---|---|---|
163c010 | XSun | 2024-05-31 |
[1] "the top tissues from single group analyses are Whole_Blood,Adipose_Subcutaneous,Artery_Aorta,Skin_Sun_Exposed_Lower_leg,Spleen"
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] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] gridExtra_2.3 RColorBrewer_1.1-3 forcats_0.5.1 stringr_1.5.1
[5] dplyr_1.1.4 purrr_1.0.2 readr_2.1.2 tidyr_1.3.0
[9] tibble_3.2.1 ggplot2_3.5.1 tidyverse_1.3.1 data.table_1.14.2
[13] ctwas_0.2.1.9000
loaded via a namespace (and not attached):
[1] readxl_1.4.0 backports_1.4.1
[3] workflowr_1.7.0 BiocFileCache_2.4.0
[5] plyr_1.8.7 lazyeval_0.2.2
[7] BiocParallel_1.30.3 crosstalk_1.2.0
[9] GenomeInfoDb_1.39.9 LDlinkR_1.2.3
[11] digest_0.6.29 ensembldb_2.20.2
[13] htmltools_0.5.2 fansi_1.0.3
[15] magrittr_2.0.3 memoise_2.0.1
[17] tzdb_0.4.0 Biostrings_2.64.0
[19] modelr_0.1.8 matrixStats_0.62.0
[21] locuszoomr_0.2.1 prettyunits_1.1.1
[23] colorspace_2.0-3 blob_1.2.3
[25] rvest_1.0.2 rappdirs_0.3.3
[27] ggrepel_0.9.1 haven_2.5.0
[29] xfun_0.41 crayon_1.5.1
[31] RCurl_1.98-1.7 jsonlite_1.8.0
[33] zoo_1.8-10 glue_1.6.2
[35] gtable_0.3.0 zlibbioc_1.42.0
[37] XVector_0.36.0 DelayedArray_0.22.0
[39] BiocGenerics_0.42.0 scales_1.3.0
[41] DBI_1.2.2 Rcpp_1.0.8.3
[43] viridisLite_0.4.0 progress_1.2.2
[45] bit_4.0.4 stats4_4.2.0
[47] DT_0.22 htmlwidgets_1.5.4
[49] httr_1.4.3 ellipsis_0.3.2
[51] pkgconfig_2.0.3 XML_3.99-0.14
[53] farver_2.1.0 sass_0.4.1
[55] dbplyr_2.1.1 utf8_1.2.2
[57] tidyselect_1.2.0 labeling_0.4.2
[59] rlang_1.1.2 later_1.3.0
[61] AnnotationDbi_1.58.0 munsell_0.5.0
[63] pgenlibr_0.3.3 cellranger_1.1.0
[65] tools_4.2.0 cachem_1.0.6
[67] cli_3.6.1 generics_0.1.2
[69] RSQLite_2.3.1 broom_0.8.0
[71] evaluate_0.15 fastmap_1.1.0
[73] yaml_2.3.5 knitr_1.39
[75] bit64_4.0.5 fs_1.5.2
[77] KEGGREST_1.36.3 AnnotationFilter_1.20.0
[79] whisker_0.4 xml2_1.3.3
[81] biomaRt_2.54.1 compiler_4.2.0
[83] rstudioapi_0.13 plotly_4.10.0
[85] filelock_1.0.2 curl_4.3.2
[87] png_0.1-7 reprex_2.0.1
[89] bslib_0.3.1 stringi_1.7.6
[91] highr_0.9 GenomicFeatures_1.48.3
[93] lattice_0.20-45 ProtGenerics_1.28.0
[95] Matrix_1.5-3 vctrs_0.6.5
[97] pillar_1.9.0 lifecycle_1.0.4
[99] jquerylib_0.1.4 cowplot_1.1.1
[101] bitops_1.0-7 irlba_2.3.5
[103] httpuv_1.6.5 rtracklayer_1.56.0
[105] GenomicRanges_1.48.0 R6_2.5.1
[107] BiocIO_1.6.0 promises_1.2.0.1
[109] IRanges_2.30.0 codetools_0.2-18
[111] assertthat_0.2.1 SummarizedExperiment_1.26.1
[113] rprojroot_2.0.3 rjson_0.2.21
[115] withr_2.5.0 GenomicAlignments_1.32.0
[117] Rsamtools_2.12.0 S4Vectors_0.34.0
[119] GenomeInfoDbData_1.2.8 parallel_4.2.0
[121] hms_1.1.1 grid_4.2.0
[123] gggrid_0.2-0 rmarkdown_2.25
[125] MatrixGenerics_1.8.0 logging_0.10-108
[127] git2r_0.30.1 mixsqp_0.3-43
[129] Biobase_2.56.0 lubridate_1.8.0
[131] restfulr_0.0.14