Last updated: 2024-08-02
Checks: 7 0
Knit directory: 5_Treg_uNK/1_analysis/
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(12345)
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 73ae14f. 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: .Rproj.user/
Untracked files:
Untracked: .DS_Store
Untracked: .gitignore
Untracked: cellChat.Rmd
Unstaged changes:
Modified: 0_data/rds_plots/deHmap_plots.rds
Modified: 0_data/rds_plots/go_combined_parTerm_dotPlot.rds
Modified: 0_data/rds_plots/go_parTerm_dotPlot.rds
Modified: 0_data/rds_plots/kegg_path_Hmap.rds
Deleted: 1_analysis/cellChat.Rmd
Modified: 3_output/GO_sig.xlsx
Modified: 3_output/KEGG_all.xlsx
Modified: 3_output/KEGG_sig.xlsx
Modified: 3_output/de_genes_all.xlsx
Modified: 3_output/de_genes_sig.xlsx
Modified: 3_output/reactome_all.xlsx
Modified: 3_output/reactome_sig.xlsx
Modified: sampleHeatmap.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.
These are the previous versions of the repository in which changes were
made to the R Markdown (1_analysis/reactome.Rmd
) and HTML
(docs/reactome.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 | 73ae14f | Ha Tran | 2024-08-02 | Large update with final visualisations |
html | 73ae14f | Ha Tran | 2024-08-02 | Large update with final visualisations |
Rmd | a5cdd4e | git | 2024-03-25 | switching os |
Rmd | d0ea132 | Ha Manh Tran | 2024-02-15 | windows crashed |
html | e9e7671 | tranmanhha135 | 2024-02-08 | Build site. |
Rmd | 8da2e31 | tranmanhha135 | 2024-02-08 | workflowr::wflow_publish(here::here("1_analysis/*.Rmd")) |
html | d8d23ee | tranmanhha135 | 2024-01-13 | im on holiday |
html | 36aeb85 | Ha Manh Tran | 2024-01-13 | Build site. |
Rmd | a957cff | Ha Manh Tran | 2024-01-13 | workflowr::wflow_publish(here::here("1_analysis/*Rmd")) |
Rmd | c78dfac | tranmanhha135 | 2024-01-12 | remote from ipad |
Rmd | 221e2fa | tranmanhha135 | 2024-01-10 | fixed error |
Rmd | 7d64f82 | tranmanhha135 | 2024-01-09 | completed ORA GO |
Rmd | 05fa0b3 | tranmanhha135 | 2024-01-06 | added description |
# working with data
library(dplyr)
library(magrittr)
library(readr)
library(tibble)
library(reshape2)
library(tidyverse)
library(VennDiagram)
# Visualisation:
library(kableExtra)
library(ggplot2)
library(grid)
library(pander)
library(cowplot)
library(pheatmap)
library(DT)
library(extrafont)
# Custom ggplot
library(ggbiplot)
library(ggrepel)
# Bioconductor packages:
library(edgeR)
library(limma)
library(Glimma)
library(clusterProfiler)
library(org.Mm.eg.db)
library(enrichplot)
library(ReactomePA)
library(pandoc)
library(knitr)
opts_knit$set(progress = FALSE, verbose = FALSE)
opts_chunk$set(warning=FALSE, message=FALSE, echo=FALSE)
Reactome database provides curated information about biological pathways, including molecular events and reactions within cells. It focuses on human biology and is widely used for pathway analysis and functional interpretation of high-throughput data.
KEGG and Reactome both include approximately the same number of genes. The difference lies in KEGG’s use of broader terms, while Reactome employs similar terms but with multiple detailed entries.
In the Reactome database, terms are organized hierarchically based on the classification of biological pathways. The organization follows a tree-like structure, where terms represent different levels of granularity in understanding molecular events and reactions within cells
The following visualisations are Reactome enrichment analysis performed with set of DE genes significantly below FDR < 0.1 without FC threshold (TREAT). IMPORTANTLY, these Reactome terms are significantly enriched with FDR < 0.1.
Dot plot: illustrates the top enriched Reactome pathways
Table: list of all the significant Reactome pathways
Upset: illustrate the overlap of gene between different pathways
I recommend reading through the full list of significant Reactome pathways and selecting the most biologically relevant for better visualisation
The following visualisations are Reactome enrichment analysis performed with set of DE genes significantly below FDR < 0.1 without FC threshold (TREAT). IMPORTANTLY, significant Reactome pathways are significantly if FDR < 0.1
Dot plot: illustrates the enriched Reactome pathways
Table: list of all the significant Reactome pathways
Upset: illustrate the overlap of gene between different pathways
I recommend reading through the full list of significant Reactome pathways and selecting the most biologically relevant for more in-depth visualisation
The following are exported:
reactome_all.xlsx - This spreadsheet contains all Reactome pathways
reactome_sig.xlsx - This spreadsheet contains all significant (FDR < 0.1) Reactome pathways
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.5
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Australia/Adelaide
tzcode source: internal
attached base packages:
[1] stats4 grid stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] knitr_1.48 pandoc_0.2.0 ReactomePA_1.48.0
[4] enrichplot_1.24.2 org.Mm.eg.db_3.19.1 AnnotationDbi_1.66.0
[7] IRanges_2.38.1 S4Vectors_0.42.1 Biobase_2.64.0
[10] BiocGenerics_0.50.0 clusterProfiler_4.12.2 Glimma_2.14.0
[13] edgeR_4.2.1 limma_3.60.4 ggrepel_0.9.5.9999
[16] ggbiplot_0.6.2 extrafont_0.19 DT_0.33
[19] pheatmap_1.0.12 cowplot_1.1.3 pander_0.6.5
[22] kableExtra_1.4.0 VennDiagram_1.7.3 futile.logger_1.4.3
[25] lubridate_1.9.3 forcats_1.0.0 stringr_1.5.1
[28] purrr_1.0.2 tidyr_1.3.1 ggplot2_3.5.1
[31] tidyverse_2.0.0 reshape2_1.4.4 tibble_3.2.1
[34] readr_2.1.5 magrittr_2.0.3 dplyr_1.1.4
loaded via a namespace (and not attached):
[1] splines_4.4.1 later_1.3.2
[3] ggplotify_0.1.2 polyclip_1.10-7
[5] graph_1.82.0 lifecycle_1.0.4
[7] rprojroot_2.0.4 lattice_0.22-6
[9] MASS_7.3-61 crosstalk_1.2.1
[11] sass_0.4.9 rmarkdown_2.27
[13] jquerylib_0.1.4 yaml_2.3.10
[15] httpuv_1.6.15 DBI_1.2.3
[17] RColorBrewer_1.1-3 abind_1.4-5
[19] zlibbioc_1.50.0 GenomicRanges_1.56.1
[21] ggraph_2.2.1 yulab.utils_0.1.5
[23] rappdirs_0.3.3 tweenr_2.0.3
[25] git2r_0.33.0 GenomeInfoDbData_1.2.12
[27] tidytree_0.4.6 reactome.db_1.88.0
[29] svglite_2.1.3 codetools_0.2-20
[31] DelayedArray_0.30.1 DOSE_3.30.2
[33] xml2_1.3.6 ggforce_0.4.2
[35] tidyselect_1.2.1 aplot_0.2.3
[37] UCSC.utils_1.0.0 farver_2.1.2
[39] viridis_0.6.5 matrixStats_1.3.0
[41] jsonlite_1.8.8 tidygraph_1.3.1
[43] systemfonts_1.1.0 tools_4.4.1
[45] ragg_1.3.2 treeio_1.28.0
[47] Rcpp_1.0.13 glue_1.7.0
[49] gridExtra_2.3 Rttf2pt1_1.3.12
[51] SparseArray_1.4.8 here_1.0.1
[53] xfun_0.46 DESeq2_1.44.0
[55] qvalue_2.36.0 MatrixGenerics_1.16.0
[57] GenomeInfoDb_1.40.1 withr_3.0.1
[59] formatR_1.14 fastmap_1.2.0
[61] fansi_1.0.6 digest_0.6.36
[63] timechange_0.3.0 R6_2.5.1
[65] gridGraphics_0.5-1 textshaping_0.4.0
[67] colorspace_2.1-1 GO.db_3.19.1
[69] RSQLite_2.3.7 utf8_1.2.4
[71] generics_0.1.3 data.table_1.15.4
[73] graphlayouts_1.1.1 httr_1.4.7
[75] htmlwidgets_1.6.4 S4Arrays_1.4.1
[77] scatterpie_0.2.3 graphite_1.50.0
[79] whisker_0.4.1 pkgconfig_2.0.3
[81] gtable_0.3.5 blob_1.2.4
[83] workflowr_1.7.1 XVector_0.44.0
[85] shadowtext_0.1.4 htmltools_0.5.8.1
[87] fgsea_1.30.0 ggupset_0.4.0
[89] scales_1.3.0 png_0.1-8
[91] ggfun_0.1.5 lambda.r_1.2.4
[93] rstudioapi_0.16.0 tzdb_0.4.0
[95] nlme_3.1-165 cachem_1.1.0
[97] parallel_4.4.1 HDO.db_0.99.1
[99] pillar_1.9.0 vctrs_0.6.5
[101] promises_1.3.0 extrafontdb_1.0
[103] evaluate_0.24.0 cli_3.6.3
[105] locfit_1.5-9.10 compiler_4.4.1
[107] futile.options_1.0.1 rlang_1.1.4
[109] crayon_1.5.3 labeling_0.4.3
[111] plyr_1.8.9 fs_1.6.4
[113] writexl_1.5.0 stringi_1.8.4
[115] viridisLite_0.4.2 BiocParallel_1.38.0
[117] munsell_0.5.1 Biostrings_2.72.1
[119] lazyeval_0.2.2 GOSemSim_2.30.0
[121] Matrix_1.7-0 hms_1.1.3
[123] patchwork_1.2.0 bit64_4.0.5
[125] KEGGREST_1.44.1 statmod_1.5.0
[127] highr_0.11 SummarizedExperiment_1.34.0
[129] igraph_2.0.3 memoise_2.0.1
[131] bslib_0.8.0 ggtree_3.12.0
[133] fastmatch_1.1-4 bit_4.0.5
[135] ape_5.8 gson_0.1.0