Last updated: 2026-01-28
Checks: 7 0
Knit directory: CrossSpecies_CM_Diff_RNA/
This reproducible R Markdown analysis was created with workflowr (version 1.7.2). 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(20251129) 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 a7fc350. 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/
Ignored: data/
Unstaged changes:
Modified: analysis/index.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/RNA_PCA_Ensemble.Rmd) and
HTML (docs/RNA_PCA_Ensemble.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 | a7fc350 | John D. Hurley | 2026-01-28 | wflowr site update |
| Rmd | 6783fc9 | John D. Hurley | 2026-01-28 | PCA polishing |
| Rmd | 085c1db | John D. Hurley | 2026-01-28 | Finalizing CorHeatMap |
####Library Loading####
library("edgeR")
Loading required package: limma
library("ggplot2")
library("tibble")
library("dplyr")
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
library("ggrepel")
library("readr")
library("org.Hs.eg.db")
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: generics
Attaching package: 'generics'
The following object is masked from 'package:dplyr':
explain
The following objects are masked from 'package:base':
as.difftime, as.factor, as.ordered, intersect, is.element, setdiff,
setequal, union
Attaching package: 'BiocGenerics'
The following object is masked from 'package:dplyr':
combine
The following object is masked from 'package:limma':
plotMA
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
anyDuplicated, aperm, append, as.data.frame, basename, cbind,
colnames, dirname, do.call, duplicated, eval, evalq, Filter, Find,
get, grep, grepl, is.unsorted, lapply, Map, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
rbind, Reduce, rownames, sapply, saveRDS, table, tapply, unique,
unsplit, which.max, which.min
Loading required package: Biobase
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Loading required package: IRanges
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following objects are masked from 'package:dplyr':
first, rename
The following object is masked from 'package:utils':
findMatches
The following objects are masked from 'package:base':
expand.grid, I, unname
Attaching package: 'IRanges'
The following objects are masked from 'package:dplyr':
collapse, desc, slice
The following object is masked from 'package:grDevices':
windows
Attaching package: 'AnnotationDbi'
The following object is masked from 'package:dplyr':
select
library("AnnotationDbi")
library("pheatmap")
library("Cormotif")
Loading required package: affy
library("tidyverse")
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ forcats 1.0.1 ✔ stringr 1.5.2
✔ lubridate 1.9.4 ✔ tidyr 1.3.1
✔ purrr 1.1.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ lubridate::%within%() masks IRanges::%within%()
✖ IRanges::collapse() masks dplyr::collapse()
✖ Biobase::combine() masks BiocGenerics::combine(), dplyr::combine()
✖ IRanges::desc() masks dplyr::desc()
✖ tidyr::expand() masks S4Vectors::expand()
✖ dplyr::filter() masks stats::filter()
✖ S4Vectors::first() masks dplyr::first()
✖ dplyr::lag() masks stats::lag()
✖ lubridate::pm() masks affy::pm()
✖ BiocGenerics::Position() masks ggplot2::Position(), base::Position()
✖ purrr::reduce() masks IRanges::reduce()
✖ S4Vectors::rename() masks dplyr::rename()
✖ lubridate::second() masks S4Vectors::second()
✖ lubridate::second<-() masks S4Vectors::second<-()
✖ AnnotationDbi::select() masks dplyr::select()
✖ IRanges::slice() masks dplyr::slice()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library("workflowr")
library("RUVSeq")
Loading required package: EDASeq
Loading required package: ShortRead
Loading required package: BiocParallel
Loading required package: Biostrings
Loading required package: XVector
Attaching package: 'XVector'
The following object is masked from 'package:purrr':
compact
Loading required package: GenomeInfoDb
Attaching package: 'Biostrings'
The following object is masked from 'package:base':
strsplit
Loading required package: Rsamtools
Loading required package: GenomicRanges
Loading required package: GenomicAlignments
Loading required package: SummarizedExperiment
Loading required package: MatrixGenerics
Loading required package: matrixStats
Warning: package 'matrixStats' was built under R version 4.5.2
Attaching package: 'matrixStats'
The following objects are masked from 'package:Biobase':
anyMissing, rowMedians
The following object is masked from 'package:dplyr':
count
Attaching package: 'MatrixGenerics'
The following objects are masked from 'package:matrixStats':
colAlls, colAnyNAs, colAnys, colAvgsPerRowSet, colCollapse,
colCounts, colCummaxs, colCummins, colCumprods, colCumsums,
colDiffs, colIQRDiffs, colIQRs, colLogSumExps, colMadDiffs,
colMads, colMaxs, colMeans2, colMedians, colMins, colOrderStats,
colProds, colQuantiles, colRanges, colRanks, colSdDiffs, colSds,
colSums2, colTabulates, colVarDiffs, colVars, colWeightedMads,
colWeightedMeans, colWeightedMedians, colWeightedSds,
colWeightedVars, rowAlls, rowAnyNAs, rowAnys, rowAvgsPerColSet,
rowCollapse, rowCounts, rowCummaxs, rowCummins, rowCumprods,
rowCumsums, rowDiffs, rowIQRDiffs, rowIQRs, rowLogSumExps,
rowMadDiffs, rowMads, rowMaxs, rowMeans2, rowMedians, rowMins,
rowOrderStats, rowProds, rowQuantiles, rowRanges, rowRanks,
rowSdDiffs, rowSds, rowSums2, rowTabulates, rowVarDiffs, rowVars,
rowWeightedMads, rowWeightedMeans, rowWeightedMedians,
rowWeightedSds, rowWeightedVars
The following object is masked from 'package:Biobase':
rowMedians
Attaching package: 'GenomicAlignments'
The following object is masked from 'package:dplyr':
last
Attaching package: 'ShortRead'
The following object is masked from 'package:purrr':
compose
The following object is masked from 'package:affy':
intensity
The following object is masked from 'package:dplyr':
id
The following object is masked from 'package:tibble':
view
library("SummarizedExperiment")
library("readxl")
library("ggfortify")
Warning: package 'ggfortify' was built under R version 4.5.2
library("ComplexHeatmap")
Loading required package: grid
Attaching package: 'grid'
The following object is masked from 'package:Biostrings':
pattern
========================================
ComplexHeatmap version 2.24.1
Bioconductor page: http://bioconductor.org/packages/ComplexHeatmap/
Github page: https://github.com/jokergoo/ComplexHeatmap
Documentation: http://jokergoo.github.io/ComplexHeatmap-reference
If you use it in published research, please cite either one:
- Gu, Z. Complex Heatmap Visualization. iMeta 2022.
- Gu, Z. Complex heatmaps reveal patterns and correlations in multidimensional
genomic data. Bioinformatics 2016.
The new InteractiveComplexHeatmap package can directly export static
complex heatmaps into an interactive Shiny app with zero effort. Have a try!
This message can be suppressed by:
suppressPackageStartupMessages(library(ComplexHeatmap))
========================================
! pheatmap() has been masked by ComplexHeatmap::pheatmap(). Most of the arguments
in the original pheatmap() are identically supported in the new function. You
can still use the original function by explicitly calling pheatmap::pheatmap().
Attaching package: 'ComplexHeatmap'
The following object is masked from 'package:pheatmap':
pheatmap
# BiocManager::install("SummarizedExperiment")
RNA_fc_df <- readRDS("data/Raw_Data/RNA_fc_df.RDS")
RNA_Metadata <- readRDS("data/Raw_Data/RNA_Metadata.RDS")
RNA_fc <- readRDS("data/QC/RNA_fc.RDS")
RNA_log2cpm <- readRDS("data/QC/RNA_log2cpm.RDS")
Filt_RMG0_RNA_fc <- readRDS("data/QC/Filt_RMG0_RNA_fc.RDS")
Filt_RMG0_RNA_log2cpm <- readRDS("data/QC/RNA_log2cpm_RMG0.RDS")
ann_colors <- readRDS("data/QC/ann_colors.RDS")
RNA_Metadata_No4 <- readRDS("data/QC/RNA_Metatdata_No4.RDS")
Filt_RMG0_RNA_fc_NoD4 <- readRDS("data/QC/Filt_RMG0_RNA_fc_NoD4.RDS")
Filt_RMG0_RNA_log2cpm_NoD4 <- readRDS("data/QC/Filt_RMG0_RNA_log2cpm_NoD4.RDS")
ann_colors_No4 <- readRDS("data/QC/ann_colors_no4.RDS")
prcomp_RNA <- readRDS("data/QC/prcomp_RNA.RDS")
prcomp_RNA_meta <- readRDS("data/QC/prcomp_RNA_meta.RDS")
prcomp_Filt_RMG0_RNA <- readRDS("data/QC/prcomp_Filt_RMG0_RNA.RDS")
prcomp_Filt_RMG0_RNA_meta <- readRDS("data/QC/prcomp_Filt_RMG0_RNA_meta.RDS")
prcomp_Filt_RMG0_RNA_log2cpm_NoD4 <- readRDS("data/QC/prcomp_Filt_RMG0_RNA_log2cpm_NoD4.RDS")
prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta <- readRDS("data/QC/prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta.RDS")
prcomp_RNA <- prcomp(t(RNA_log2cpm), scale=FALSE, center = TRUE)
prcomp_RNA_meta <- prcomp_RNA$x %>% cbind(., RNA_Metadata)
#PCA checks
#k=1
ggplot2::autoplot(prcomp_RNA,
data = prcomp_RNA_meta,
colour = "Timepoint",
shape = "Species",
size = 4,
x=1,
y=2) +
scale_color_manual(values=ann_colors$timepoint_cor)+
ggrepel::geom_text_repel(label = RNA_Metadata$Individual,
vjust = -0.5,
max.overlaps = 50)+
ggtitle("Unfiltered RNA Log2CPM PC1-PC2")
Warning: `aes_string()` was deprecated in ggplot2 3.0.0.
ℹ Please use tidy evaluation idioms with `aes()`.
ℹ See also `vignette("ggplot2-in-packages")` for more information.
ℹ The deprecated feature was likely used in the ggfortify package.
Please report the issue at <https://github.com/sinhrks/ggfortify/issues>.
This warning is displayed once per session.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
generated.

# saveRDS(prcomp_RNA,"data/QC/prcomp_RNA.RDS")
# saveRDS(prcomp_RNA_meta,"data/QC/prcomp_RNA_meta.RDS")
prcomp_Filt_RMG0_RNA <- prcomp(t(Filt_RMG0_RNA_log2cpm), scale=FALSE, center = TRUE)
prcomp_Filt_RMG0_RNA_meta <- prcomp_Filt_RMG0_RNA$x %>% cbind(., RNA_Metadata)
#PCA checks
#k=1
ggplot2::autoplot(prcomp_Filt_RMG0_RNA ,
data = prcomp_Filt_RMG0_RNA_meta,
colour = "Timepoint",
shape = "Species",
size = 4,
x=1,
y=2) +
scale_color_manual(values=ann_colors$timepoint_cor)+
ggrepel::geom_text_repel(label = RNA_Metadata$Individual,
vjust = -0.5,
max.overlaps = 50)+
ggtitle("Filtered RNA Log2CPM RMG0")

# saveRDS(prcomp_Filt_RMG0_RNA,"data/QC/prcomp_Filt_RMG0_RNA.RDS")
# saveRDS(prcomp_Filt_RMG0_RNA_meta,"data/QC/prcomp_Filt_RMG0_RNA_meta.RDS")
prcomp_Filt_RMG0_RNA_log2cpm_NoD4 <- prcomp(t(Filt_RMG0_RNA_log2cpm_NoD4), scale=FALSE, center = TRUE)
prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta <- prcomp_Filt_RMG0_RNA_log2cpm_NoD4$x %>% cbind(., RNA_Metadata_No4)
#PCA checks
#k=1
ggplot2::autoplot(prcomp_Filt_RMG0_RNA_log2cpm_NoD4 ,
data = prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta,
colour = "Timepoint",
shape = "Species",
size = 4,
x=1,
y=2) +
scale_color_manual(values=ann_colors_No4$timepoint_cor)+
ggrepel::geom_text_repel(label = RNA_Metadata_No4$Individual,
vjust = -0.5,
max.overlaps = 50)+
ggtitle("Filtered RNA Log2CPM RMG0 No Day 4")

# saveRDS(prcomp_Filt_RMG0_RNA_log2cpm_NoD4,"data/QC/prcomp_Filt_RMG0_RNA_log2cpm_NoD4.RDS")
# saveRDS(prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta,"data/QC/prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta.RDS")
ggplot2::autoplot(prcomp_Filt_RMG0_RNA_log2cpm_NoD4 ,
data = prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta,
colour = "Timepoint",
shape = "Species",
size = 4,
x=3,
y=4) +
scale_color_manual(values=ann_colors_No4$timepoint_cor)+
ggrepel::geom_text_repel(label = RNA_Metadata_No4$Individual,
vjust = -0.5,
max.overlaps = 50)+
ggtitle("Filtered RNA Log2CPM RMG0 No Day 4")

# saveRDS(prcomp_Filt_RMG0_RNA_log2cpm_NoD4,"data/QC/prcomp_Filt_RMG0_RNA_log2cpm_NoD4.RDS")
# saveRDS(prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta,"data/QC/prcomp_Filt_RMG0_RNA_log2cpm_NoD4_meta.RDS")
# git -> commit all changes
# git -> push
# wflow_publish("analysis/RNA_PCA_Ensemble.Rmd")
sessionInfo()
R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/Chicago
tzcode source: internal
attached base packages:
[1] grid stats4 stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] ComplexHeatmap_2.24.1 ggfortify_0.4.19
[3] readxl_1.4.5 RUVSeq_1.42.0
[5] EDASeq_2.42.0 ShortRead_1.66.0
[7] GenomicAlignments_1.44.0 SummarizedExperiment_1.38.1
[9] MatrixGenerics_1.20.0 matrixStats_1.5.0
[11] Rsamtools_2.24.0 GenomicRanges_1.60.0
[13] Biostrings_2.76.0 GenomeInfoDb_1.44.3
[15] XVector_0.48.0 BiocParallel_1.42.1
[17] lubridate_1.9.4 forcats_1.0.1
[19] stringr_1.5.2 purrr_1.1.0
[21] tidyr_1.3.1 tidyverse_2.0.0
[23] Cormotif_1.54.0 affy_1.86.0
[25] pheatmap_1.0.13 org.Hs.eg.db_3.21.0
[27] AnnotationDbi_1.70.0 IRanges_2.42.0
[29] S4Vectors_0.46.0 Biobase_2.68.0
[31] BiocGenerics_0.54.0 generics_0.1.4
[33] readr_2.1.5 ggrepel_0.9.6
[35] dplyr_1.1.4 tibble_3.3.0
[37] ggplot2_4.0.0 edgeR_4.6.3
[39] limma_3.64.3 workflowr_1.7.2
loaded via a namespace (and not attached):
[1] later_1.4.4 BiocIO_1.18.0 bitops_1.0-9
[4] filelock_1.0.3 R.oo_1.27.1 cellranger_1.1.0
[7] preprocessCore_1.70.0 XML_3.99-0.20 lifecycle_1.0.5
[10] httr2_1.2.2 pwalign_1.4.0 doParallel_1.0.17
[13] rprojroot_2.1.1 processx_3.8.6 lattice_0.22-7
[16] MASS_7.3-65 magrittr_2.0.3 sass_0.4.10
[19] rmarkdown_2.30 jquerylib_0.1.4 yaml_2.3.10
[22] httpuv_1.6.16 otel_0.2.0 DBI_1.2.3
[25] RColorBrewer_1.1-3 abind_1.4-8 R.utils_2.13.0
[28] RCurl_1.98-1.17 rappdirs_0.3.4 git2r_0.36.2
[31] circlize_0.4.17 GenomeInfoDbData_1.2.14 codetools_0.2-20
[34] DelayedArray_0.34.1 xml2_1.5.1 tidyselect_1.2.1
[37] shape_1.4.6.1 UCSC.utils_1.4.0 farver_2.1.2
[40] BiocFileCache_2.16.2 jsonlite_2.0.0 GetoptLong_1.1.0
[43] iterators_1.0.14 foreach_1.5.2 tools_4.5.1
[46] progress_1.2.3 Rcpp_1.1.0 glue_1.8.0
[49] gridExtra_2.3 SparseArray_1.8.1 xfun_0.53
[52] withr_3.0.2 BiocManager_1.30.27 fastmap_1.2.0
[55] latticeExtra_0.6-31 callr_3.7.6 digest_0.6.37
[58] timechange_0.3.0 R6_2.6.1 colorspace_2.1-2
[61] jpeg_0.1-11 biomaRt_2.64.0 RSQLite_2.4.3
[64] R.methodsS3_1.8.2 rtracklayer_1.68.0 prettyunits_1.2.0
[67] httr_1.4.7 S4Arrays_1.8.1 whisker_0.4.1
[70] pkgconfig_2.0.3 gtable_0.3.6 blob_1.3.0
[73] S7_0.2.0 hwriter_1.3.2.1 htmltools_0.5.8.1
[76] clue_0.3-66 scales_1.4.0 png_0.1-8
[79] knitr_1.51 rstudioapi_0.18.0 tzdb_0.5.0
[82] rjson_0.2.23 curl_7.0.0 cachem_1.1.0
[85] GlobalOptions_0.1.3 parallel_4.5.1 restfulr_0.0.16
[88] pillar_1.11.1 vctrs_0.6.5 promises_1.3.3
[91] dbplyr_2.5.1 cluster_2.1.8.1 evaluate_1.0.5
[94] GenomicFeatures_1.60.0 cli_3.6.5 locfit_1.5-9.12
[97] compiler_4.5.1 rlang_1.1.6 crayon_1.5.3
[100] labeling_0.4.3 interp_1.1-6 aroma.light_3.38.0
[103] ps_1.9.1 getPass_0.2-4 fs_1.6.6
[106] stringi_1.8.7 deldir_2.0-4 Matrix_1.7-3
[109] hms_1.1.4 bit64_4.6.0-1 KEGGREST_1.48.1
[112] statmod_1.5.0 memoise_2.0.1 affyio_1.78.0
[115] bslib_0.9.0 bit_4.6.0