• Introduction
  • Libraries and sources
  • Cross species analysis analysis
    • Translation of human genes to mouse genes
    • Correlation of mouse-human-genes
    • Top differentially expressed metabolic and carrier genes

Last updated: 2023-09-28

Checks: 7 0

Knit directory: cirrhosis-metabolism/

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.


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(20221024) 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 1eb8773. 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:    analysis/other/
    Ignored:    data/.DS_Store
    Ignored:    data/README.html
    Ignored:    data/annotation/
    Ignored:    data/data.zip
    Ignored:    data/meta-mouse-vs-human/
    Ignored:    data/mouse-chronic-ccl4/
    Ignored:    data/output.zip
    Ignored:    figures/.DS_Store
    Ignored:    figures/ADH_ALDH.pdf
    Ignored:    figures/ADH_ALDH_hs.pdf
    Ignored:    figures/Blood.pdf
    Ignored:    figures/Blood_hs.pdf
    Ignored:    figures/CYP.pdf
    Ignored:    figures/CYP_hs.pdf
    Ignored:    figures/Canalicular.pdf
    Ignored:    figures/Canalicular_hs.pdf
    Ignored:    figures/DH.pdf
    Ignored:    figures/DH_hs.pdf
    Ignored:    figures/EPH.pdf
    Ignored:    figures/EPH_hs.pdf
    Ignored:    figures/FMO.pdf
    Ignored:    figures/FMO_hs.pdf
    Ignored:    figures/Figure 3.pptx
    Ignored:    figures/GST.pdf
    Ignored:    figures/GST_hs.pdf
    Ignored:    figures/MAO.pdf
    Ignored:    figures/MAO_hs.pdf
    Ignored:    figures/MT.pdf
    Ignored:    figures/MT_hs.pdf
    Ignored:    figures/NAT.pdf
    Ignored:    figures/NAT_hs.pdf
    Ignored:    figures/SULT.pdf
    Ignored:    figures/SULT_hs.pdf
    Ignored:    figures/UGT.pdf
    Ignored:    figures/UGT_hs.pdf
    Ignored:    figures/collages.pptx
    Ignored:    figures/correlation_1.pdf
    Ignored:    figures/correlation_2.pdf
    Ignored:    figures/correlation_3.pdf
    Ignored:    figures/heatmap.pdf
    Ignored:    figures/pca_plot.pdf
    Ignored:    output/.DS_Store
    Ignored:    output/mouse-chronic-ccl4/.DS_Store
    Ignored:    output/mouse-chronic-ccl4/carrier_genes.rds
    Ignored:    output/mouse-chronic-ccl4/correlations.rds
    Ignored:    output/mouse-chronic-ccl4/enrichment_result.rds
    Ignored:    output/mouse-chronic-ccl4/genesets_degs.rds
    Ignored:    output/mouse-chronic-ccl4/genesets_degs_hs.rds
    Ignored:    output/mouse-chronic-ccl4/metabolic_genes.rds
    Ignored:    output/mouse-chronic-ccl4/pca_result.rds
    Ignored:    output/mouse-chronic-ccl4/translated_hs_limma_result.rds
    Ignored:    output/seddik/
    Ignored:    renv/library/
    Ignored:    renv/sandbox/
    Ignored:    renv/staging/
    Ignored:    tables/metabolic_carrier_genes.xlsx

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/02_cross_species_analysis.Rmd) and HTML (docs/02_cross_species_analysis.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
html d429adc christianholland 2023-01-08 Build site.
html 4323bde christianholland 2023-01-08 Build site.
Rmd 08bc4b3 christianholland 2023-01-08 wflow_publish("analysis/*.Rmd")
html d8910e2 christianholland 2023-01-07 Build site.
html b620f23 christianholland 2023-01-07 Build site.
Rmd a086fbd christianholland 2023-01-07 wflow_publish("analysis/*.Rmd")

Introduction

This script compares the expression of metabolic and carrier genes in mouse and human.

Libraries and sources

These libraries and sources are used for this analysis.

# data wrangling
library(tidyverse)
library(biobroom)

# statistics
library(survcomp)

# plotting
library(lemon)
library(gtools)
library(plotly)

# colors
library(AachenColorPalette)

# development helpers
library(here)
library(devtools)

# source scripts from external projects
base_url <- "https://raw.githubusercontent.com/saezlab/liver-disease-atlas"
source_url(file.path(base_url, "master", "code", "utils-plots.R"))
source_url(file.path(base_url, "master", "code", "utils-utils.R"))

Cross species analysis analysis

Translation of human genes to mouse genes

Correlation of mouse-human-genes

Version Author Date
b620f23 christianholland 2023-01-07
-0.6-0.4-0.20.00.2-2-101-0.50-0.250.000.25-2-101-0.40.00.4-2-101-0.6-0.30.00.3-2-101-0.40.00.40.8-2-101-0.50.00.5-2-101-0.50.00.51.0-2-101-1.0-0.50.00.51.0-2-1010.00.5-0.50.00.51.00.00.51.0-0.50.00.51.0-0.50.00.51.01.5-0.50.00.51.0-0.50.00.51.01.5-0.50.00.51.0-1.0-0.50.00.5-10123401-101234-0.2-0.10.00.10.2-101234-0.50-0.250.000.25-101234-0.4-0.20.00.20.4-101234-0.50-0.250.000.25-101234-0.50.00.5-101234-0.6-0.30.00.3-101234-1.0-0.50.00.5-101234-1.0-0.50.00.51.0-101234-1.0-0.50.00.51.0-101234-0.50-0.250.00-2-101-0.3-0.2-0.10.0-2-101-0.50.00.5-2024-0.3-0.2-0.10.00.10.2-2024-0.4-0.20.00.20.4-2024
sigBoth speciesMouse onlyHuman onlyNeither human nor mouseMissing human dataHuman logFCMouse logFCADH/ALDHnafld_vs_ctrl | omni | hampe14ADH/ALDHnash_vs_ctrl | omni | hampe14ADH/ALDHstage_1_vs_0 | nafld | hoangADH/ALDHstage_2_vs_0 | nafld | hoangADH/ALDHstage_3_vs_0 | nafld | hoangADH/ALDHstage_4_vs_0 | nafld | hoangADH/ALDHstage_5_vs_0 | nafld | hoangADH/ALDHstage_6_vs_0 | nafld | hoangDHstage_3_vs_0 | nafld | hoangDHstage_4_vs_0 | nafld | hoangDHstage_5_vs_0 | nafld | hoangDHstage_6_vs_0 | nafld | hoangMThcv_adv_vs_early | fibrosis | ramnathMTnafld_adv_vs_early | fibrosis | ramnathMTnafld_vs_ctrl | omni | hampe14MTnash_vs_ctrl | nash | hampe13MTnash_vs_ctrl | omni | hampe14MTpbc_vs_ctrl | omni | hampe14MTstage_2_vs_0 | nafld | hoangMTstage_3_vs_0 | nafld | hoangMTstage_4_vs_0 | nafld | hoangMTstage_5_vs_0 | nafld | hoangMTstage_6_vs_0 | nafld | hoangNAThcv_adv_vs_early | fibrosis | ramnathNATnash_vs_ctrl | omni | hampe14Bloodhcv_adv_vs_early | fibrosis | ramnathBloodstage_1_vs_0 | nafld | hoangBloodstage_4_vs_0 | nafld | hoang

Top differentially expressed metabolic and carrier genes

Version Author Date
4323bde christianholland 2023-01-08

R version 4.2.1 (2022-06-23)
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] de_DE.UTF-8/de_DE.UTF-8/de_DE.UTF-8/C/de_DE.UTF-8/de_DE.UTF-8

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

other attached packages:
 [1] devtools_2.4.5.9000      usethis_2.1.6            here_1.0.1              
 [4] AachenColorPalette_1.1.3 plotly_4.10.0            gtools_3.9.4            
 [7] lemon_0.4.5              survcomp_1.46.0          prodlim_2019.11.13      
[10] survival_3.3-1           biobroom_1.28.0          broom_1.0.1             
[13] forcats_0.5.2            stringr_1.4.1            dplyr_1.0.10            
[16] purrr_0.3.5              readr_2.1.3              tidyr_1.2.1             
[19] tibble_3.1.8             ggplot2_3.3.6            tidyverse_1.3.2         
[22] workflowr_1.7.0         

loaded via a namespace (and not attached):
  [1] googledrive_2.0.0   colorspace_2.0-3    ellipsis_0.3.2     
  [4] rprojroot_2.0.3     fs_1.5.2            rstudioapi_0.14    
  [7] farver_2.1.1        listenv_0.8.0       remotes_2.4.2      
 [10] fansi_1.0.3         lubridate_1.8.0     xml2_1.3.3         
 [13] codetools_0.2-18    splines_4.2.1       cachem_1.0.6       
 [16] knitr_1.40          SuppDists_1.1-9.7   pkgload_1.3.0      
 [19] jsonlite_1.8.3      dbplyr_2.2.1        shiny_1.7.2        
 [22] compiler_4.2.1      httr_1.4.4          backports_1.4.1    
 [25] assertthat_0.2.1    Matrix_1.4-1        fastmap_1.1.0      
 [28] lazyeval_0.2.2      gargle_1.2.1        cli_3.4.1          
 [31] later_1.3.0         prettyunits_1.1.1   htmltools_0.5.3    
 [34] tools_4.2.1         gtable_0.3.1        glue_1.6.2         
 [37] Rcpp_1.0.9          Biobase_2.56.0      cellranger_1.1.0   
 [40] jquerylib_0.1.4     vctrs_0.5.0         nlme_3.1-157       
 [43] crosstalk_1.2.0     xfun_0.34           globals_0.16.2     
 [46] ps_1.7.1            rvest_1.0.3         mime_0.12          
 [49] miniUI_0.1.1.1      lifecycle_1.0.3     renv_0.16.0        
 [52] googlesheets4_1.0.1 future_1.29.0       getPass_0.2-2      
 [55] scales_1.2.1        hms_1.1.2           promises_1.2.0.1   
 [58] parallel_4.2.1      curl_4.3.3          yaml_2.3.6         
 [61] memoise_2.0.1       gridExtra_2.3       sass_0.4.2         
 [64] stringi_1.7.8       rmeta_3.0           highr_0.9          
 [67] BiocGenerics_0.42.0 pkgbuild_1.3.1      lava_1.7.0         
 [70] rlang_1.0.6         pkgconfig_2.0.3     evaluate_0.17      
 [73] lattice_0.20-45     labeling_0.4.2      htmlwidgets_1.5.4  
 [76] survivalROC_1.0.3.1 cowplot_1.1.1       processx_3.7.0     
 [79] tidyselect_1.2.0    parallelly_1.32.1   plyr_1.8.7         
 [82] magrittr_2.0.3      R6_2.5.1            profvis_0.3.7      
 [85] generics_0.1.3      bootstrap_2019.6    DBI_1.1.3          
 [88] mgcv_1.8-40         pillar_1.8.1        haven_2.5.1        
 [91] whisker_0.4         withr_2.5.0         future.apply_1.10.0
 [94] modelr_0.1.9        crayon_1.5.2        KernSmooth_2.23-20 
 [97] utf8_1.2.2          urlchecker_1.0.1    tzdb_0.3.0         
[100] rmarkdown_2.17      grid_4.2.1          readxl_1.4.1       
[103] data.table_1.14.4   callr_3.7.2         git2r_0.30.1       
[106] reprex_2.0.2        digest_0.6.30       xtable_1.8-4       
[109] httpuv_1.6.6        munsell_0.5.0       viridisLite_0.4.1  
[112] bslib_0.4.0         sessioninfo_1.2.2