Last updated: 2024-08-02

Checks: 6 1

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.


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(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 a5cdd4e. 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:  0_data/.DS_Store
    Untracked:  0_data/rawData/.DS_Store
    Untracked:  0_data/rawData/Jiang_TableS2_41421_2022_513_MOESM3_ESM.csv
    Untracked:  0_data/rawData/MGI_tissues.tsv
    Untracked:  0_data/rawData/Table S1 13578_2022_749_MOESM1_ESM (1).xlsx
    Untracked:  0_data/rds_objects/cellchat.qs
    Untracked:  0_data/rds_objects/cellchat_veh.qs
    Untracked:  1_analysis/cellChat.Rmd
    Untracked:  2_plots/.DS_Store
    Untracked:  2_plots/LRheat.svg
    Untracked:  2_plots/mgi_hmap_1.svg
    Untracked:  2_plots/test.svg
    Untracked:  2_plots/trophoblast_hmap_1.png
    Untracked:  2_plots/trophoblast_hmap_1.svg
    Untracked:  2_plots/trophoblast_hmap_2.svg
    Untracked:  2_plots/trophoblast_hmap_3.svg
    Untracked:  2_plots/trophoblast_hmap_4.svg
    Untracked:  2_plots/trophoblast_hmap_5.svg
    Untracked:  3_output/sig_de_JiangSC_subset.xlsx
    Untracked:  sampleHeatmap.rds

Unstaged changes:
    Modified:   0_data/rds_objects/comp.rds
    Modified:   0_data/rds_objects/dge.rds
    Modified:   0_data/rds_objects/disease_function_sig.rds
    Modified:   0_data/rds_objects/ipa_pathways.rds
    Modified:   0_data/rds_objects/lm.rds
    Modified:   0_data/rds_objects/lm_all.rds
    Modified:   0_data/rds_objects/lm_sig.rds
    Modified:   0_data/rds_objects/upstream_sig.rds
    Modified:   0_data/rds_plots/deHmap_plots.rds
    Modified:   0_data/rds_plots/go_combined_dotPlot.rds
    Modified:   0_data/rds_plots/go_combined_parTerm_dotPlot.rds
    Modified:   0_data/rds_plots/go_dotPlot.rds
    Modified:   0_data/rds_plots/go_parTerm_dotPlot.rds
    Modified:   0_data/rds_plots/go_parTerm_scatter.rds
    Modified:   0_data/rds_plots/kegg_combined_dotPlot.rds
    Modified:   0_data/rds_plots/kegg_dotPlot.rds
    Modified:   0_data/rds_plots/kegg_path_Hmap.rds
    Modified:   0_data/rds_plots/ma_plots.rds
    Modified:   0_data/rds_plots/react_combined_dotPlot.rds
    Modified:   0_data/rds_plots/react_dotPlot.rds
    Modified:   0_data/rds_plots/vol_plots.rds
    Modified:   140_treg_uNK.Rproj
    Modified:   1_analysis/_site.yml
    Modified:   1_analysis/deAnalysis.Rmd
    Modified:   1_analysis/extraFigs.Rmd
    Modified:   1_analysis/go.Rmd
    Modified:   1_analysis/ipa.Rmd
    Modified:   1_analysis/kegg.Rmd
    Modified:   1_analysis/reactome.Rmd
    Modified:   1_analysis/setUp.Rmd
    Modified:   2_plots/1_QC/PC1_PC2.svg
    Modified:   2_plots/1_QC/PC1_PC3.svg
    Modified:   2_plots/1_QC/PC2_PC3.svg
    Modified:   2_plots/1_QC/counts_after_filtering.svg
    Modified:   2_plots/1_QC/counts_before_after_filtering.svg
    Modified:   2_plots/1_QC/counts_before_filtering.svg
    Modified:   2_plots/1_QC/library_size.svg
    Modified:   2_plots/2_DE/heat_DT vs veh.svg
    Modified:   2_plots/2_DE/heat_DT+Treg vs DT.svg
    Modified:   2_plots/2_DE/heat_DT+Treg vs veh.svg
    Modified:   2_plots/2_DE/ma_DT vs veh.png
    Modified:   2_plots/2_DE/ma_DT+Treg vs DT.png
    Modified:   2_plots/2_DE/ma_DT+Treg vs veh.png
    Modified:   2_plots/2_DE/venn.png
    Modified:   2_plots/2_DE/venn_2comp.png
    Modified:   2_plots/2_DE/vol_DT vs veh.png
    Modified:   2_plots/2_DE/vol_DT+Treg vs DT.png
    Modified:   2_plots/2_DE/vol_DT+Treg vs veh.png
    Modified:   2_plots/3_FA/go/combine_go_dot.svg
    Modified:   2_plots/3_FA/go/dot_DT vs veh.svg
    Modified:   2_plots/3_FA/go/dot_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/go/dot_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/go/parTerm_dot_DT vs veh.svg
    Modified:   2_plots/3_FA/go/parTerm_dot_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/go/parTerm_dot_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/go/parentTerm_all.png
    Modified:   2_plots/3_FA/go/semSim_dendrogram_DT vs veh.svg
    Modified:   2_plots/3_FA/go/semSim_dendrogram_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/go/semSim_dendrogram_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/go/semSim_scatter_DT vs veh.svg
    Modified:   2_plots/3_FA/go/semSim_scatter_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/go/semSim_scatter_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/go/upset_DT vs veh.svg
    Modified:   2_plots/3_FA/go/upset_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/go/upset_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/ipa/combine_ipa_dot.png
    Modified:   2_plots/3_FA/ipa/dnf_dot.png
    Modified:   2_plots/3_FA/ipa/upstream_hmap.png
    Modified:   2_plots/3_FA/ipa/venn_ipaDiseFunct.png
    Modified:   2_plots/3_FA/kegg/combine_kegg_dot.svg
    Modified:   2_plots/3_FA/kegg/heat_Antigen processing and presentation.svg
    Modified:   2_plots/3_FA/kegg/heat_Epstein-Barr virus infection.svg
    Modified:   2_plots/3_FA/kegg/heat_Natural killer cell mediated cytotoxicity.svg
    Modified:   2_plots/3_FA/kegg/heat_Phagosome.svg
    Modified:   2_plots/3_FA/kegg/kegg_dot_DT vs veh.svg
    Modified:   2_plots/3_FA/kegg/kegg_dot_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/kegg/kegg_dot_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/kegg/kegg_upset_DT vs veh.svg
    Modified:   2_plots/3_FA/kegg/kegg_upset_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/kegg/kegg_upset_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/reactome/combine_react_dot.svg
    Modified:   2_plots/3_FA/reactome/react_dot_DT vs veh.svg
    Modified:   2_plots/3_FA/reactome/react_dot_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/reactome/react_dot_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/reactome/react_upset_DT vs veh.svg
    Modified:   2_plots/3_FA/reactome/react_upset_DT+Treg vs DT.svg
    Modified:   2_plots/3_FA/reactome/react_upset_DT+Treg vs veh.svg
    Modified:   2_plots/3_FA/reactome/venn_react.png
    Modified:   2_plots/functionalHeat.png
    Modified:   2_plots/sampleHeat.svg
    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:   functions.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 (1_analysis/ipa.Rmd) and HTML (docs/ipa.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 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"))
Rmd d8d23ee tranmanhha135 2024-01-13 im on holiday
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 221e2fa tranmanhha135 2024-01-10 fixed error
Rmd 7d64f82 tranmanhha135 2024-01-09 completed ORA GO
Rmd 05fa0b3 tranmanhha135 2024-01-06 added description

Data Setup

# working with data
library(showtext)
library(dplyr)
library(magrittr)
library(readr)
library(tibble)
library(reshape2)
library(tidyverse)
library(pheatmap)
library(ComplexHeatmap)
library(DT)
library(extrafont)
library(readxl)
library(patchwork)

# Visualisation:
library(VennDiagram)
library(kableExtra)
library(ggplot2)
library(grid)
library(pander)
library(cowplot)
library(viridis)
library(igraph)
library(ggalluvial)
library(RColorBrewer)

# Custom ggplot
library(ggplotify)
library(ggbiplot)
library(ggrepel)
library(pandoc)
library(knitr)
opts_knit$set(progress = FALSE, verbose = FALSE)
opts_chunk$set(warning=FALSE, message=FALSE, echo=FALSE)

IPA analysis

Regulated Pathways

Venn diagram

Dot plot

Version Author Date
e9e7671 tranmanhha135 2024-02-08

Upstream Regulators

Version Author Date
e9e7671 tranmanhha135 2024-02-08

Disease and Function

Venn diagram

Dot plot

Version Author Date
e9e7671 tranmanhha135 2024-02-08

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] grid      stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
 [1] stringi_1.8.4         knitr_1.48            pandoc_0.2.0         
 [4] ggrepel_0.9.5.9999    ggbiplot_0.6.2        ggplotify_0.1.2      
 [7] RColorBrewer_1.1-3    ggalluvial_0.12.5     igraph_2.0.3         
[10] viridis_0.6.5         viridisLite_0.4.2     cowplot_1.1.3        
[13] pander_0.6.5          kableExtra_1.4.0      VennDiagram_1.7.3    
[16] futile.logger_1.4.3   patchwork_1.2.0       readxl_1.4.3         
[19] extrafont_0.19        DT_0.33               ComplexHeatmap_2.20.0
[22] pheatmap_1.0.12       lubridate_1.9.3       forcats_1.0.0        
[25] stringr_1.5.1         purrr_1.0.2           tidyr_1.3.1          
[28] ggplot2_3.5.1         tidyverse_2.0.0       reshape2_1.4.4       
[31] tibble_3.2.1          readr_2.1.5           magrittr_2.0.3       
[34] dplyr_1.1.4           showtext_0.9-7        showtextdb_3.0       
[37] sysfonts_0.8.9       

loaded via a namespace (and not attached):
 [1] gridExtra_2.3        formatR_1.14         rlang_1.1.4         
 [4] clue_0.3-65          GetoptLong_1.0.5     git2r_0.33.0        
 [7] matrixStats_1.3.0    compiler_4.4.1       png_0.1-8           
[10] systemfonts_1.1.0    vctrs_0.6.5          pkgconfig_2.0.3     
[13] shape_1.4.6.1        crayon_1.5.3         fastmap_1.2.0       
[16] magick_2.8.4         labeling_0.4.3       utf8_1.2.4          
[19] promises_1.3.0       rmarkdown_2.27       tzdb_0.4.0          
[22] ragg_1.3.2           xfun_0.46            cachem_1.1.0        
[25] jsonlite_1.8.8       highr_0.11           later_1.3.2         
[28] parallel_4.4.1       cluster_2.1.6        R6_2.5.1            
[31] bslib_0.8.0          extrafontdb_1.0      jquerylib_0.1.4     
[34] cellranger_1.1.0     Rcpp_1.0.13          iterators_1.0.14    
[37] IRanges_2.38.1       httpuv_1.6.15        timechange_0.3.0    
[40] tidyselect_1.2.1     rstudioapi_0.16.0    yaml_2.3.10         
[43] doParallel_1.0.17    codetools_0.2-20     plyr_1.8.9          
[46] withr_3.0.1          evaluate_0.24.0      gridGraphics_0.5-1  
[49] lambda.r_1.2.4       xml2_1.3.6           circlize_0.4.16     
[52] pillar_1.9.0         whisker_0.4.1        foreach_1.5.2       
[55] stats4_4.4.1         generics_0.1.3       rprojroot_2.0.4     
[58] S4Vectors_0.42.1     hms_1.1.3            munsell_0.5.1       
[61] scales_1.3.0         glue_1.7.0           tools_4.4.1         
[64] fs_1.6.4             Rttf2pt1_1.3.12      colorspace_2.1-1    
[67] cli_3.6.3            rappdirs_0.3.3       textshaping_0.4.0   
[70] workflowr_1.7.1      futile.options_1.0.1 fansi_1.0.6         
[73] svglite_2.1.3        gtable_0.3.5         yulab.utils_0.1.5   
[76] sass_0.4.9           digest_0.6.36        BiocGenerics_0.50.0 
[79] farver_2.1.2         rjson_0.2.21         htmlwidgets_1.6.4   
[82] memoise_2.0.1        htmltools_0.5.8.1    lifecycle_1.0.4     
[85] here_1.0.1           GlobalOptions_0.1.2