Last updated: 2025-12-18
Checks: 4 2
Knit directory:
~/Documents/TCGADataBP1Revisions/
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 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.
To ensure reproducibility of the results, delete the cache directory
BP1_TCGA_cache and re-run the analysis. To have workflowr
automatically delete the cache directory prior to building the file, set
delete_cache = TRUE when running wflow_build()
or wflow_publish().
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Tracking code development and connecting the code version to the
results is critical for reproducibility. To start using Git, open the
Terminal and type git init in your project directory.
This project is not being versioned with Git. To obtain the full
reproducibility benefits of using workflowr, please see
?wflow_start.
For “Regulation of Antiviral and Antitumor Immunity by the BRCA1 Pseudogene in Human Cancers” we have received reviewer comment 1 as stated “1. In Figure 1, it would strengthen the study to examine BRCA1P1 expression levels specifically within BRCA1/2-mutant breast cancers-including triple-negative breast cancer-as well as ovarian and prostate tumor datasets. Additionally, incorporating solid-tumor datasets (supported by experimental evidence) that show BRCA1P1 expression patterns in cisplatin- or PARP-inhibitor-resistant models would add novelty and broaden the relevance of the findings.”
To address the reviewer’s request, we analyzed BRCA1P1 copy-number variation across multiple solid tumor types, stratified by BRCA1/2 mutation status, using publicly available TCGA Pan-Cancer Atlas datasets. This R Markdown workflow uses cBioPortal donwloads to looks at mutation annotation and copy-number segmentation data from breast (Breast Invasive Carcinoma (TCGA, PanCancer Atlas)), ovarian (Ovarian Serous Cystadenocarcinoma (TCGA, PanCancer Atlas) ), and prostate cancers (Prostate Adenocarcinoma (TCGA, PanCancer Atlas)).
For each tumor type, BRCA1 and BRCA2 mutation status was extracted and standardized at the per-sample level, allowing classification of tumors as BRCA1/2-mutant or BRCA1/2-wild-type. Copy-number segmentation data were then queried to identify the segment overlapping the BRCA1P1 genomic locus from HG19 UCSC Genome Browser (chr17:41,320,187-41,320,266).
The following Rmd will address BRCA1P1 expression patterns in cisplatin- or PARP-inhibitor-resistant models, and further stratify Breast Cancer by available TNBC status.
BRCA1/2_Mut BRCA1/2_WT
53 943
# A tibble: 2 × 4
BRCA_group n mean_segmean median_segmean
<fct> <int> <dbl> <dbl>
1 BRCA1/2_Mut 53 -0.0844 -0.119
2 BRCA1/2_WT 941 -0.0574 -0.0156
Wilcoxon rank sum test with continuity correction
data: seg.mean by BRCA_group
W = 22785, p-value = 0.2902
alternative hypothesis: true location shift is not equal to 0
Warning: The above code chunk cached its results, but
it won’t be re-run if previous chunks it depends on are updated. If you
need to use caching, it is highly recommended to also set
knitr::opts_chunk$set(autodep = TRUE) at the top of the
file (in a chunk that is not cached). Alternatively, you can customize
the option dependson for each individual chunk that is
cached. Using either autodep or dependson will
remove this warning. See the
knitr cache options for more details.
BRCA1/2_Mut BRCA1/2_WT
9 480
# A tibble: 2 × 4
BRCA_group n mean_segmean median_segmean
<fct> <int> <dbl> <dbl>
1 BRCA1/2_Mut 9 0.0879 0.0167
2 BRCA1/2_WT 480 -0.0223 0.0088
Wilcoxon rank sum test with continuity correction
data: seg.mean by BRCA_group
W = 2741.5, p-value = 0.1666
alternative hypothesis: true location shift is not equal to 0
Warning: The above code chunk cached its results, but
it won’t be re-run if previous chunks it depends on are updated. If you
need to use caching, it is highly recommended to also set
knitr::opts_chunk$set(autodep = TRUE) at the top of the
file (in a chunk that is not cached). Alternatively, you can customize
the option dependson for each individual chunk that is
cached. Using either autodep or dependson will
remove this warning. See the
knitr cache options for more details.
BRCA1/2_Mut BRCA1/2_WT
33 365
# A tibble: 2 × 4
BRCA_group n mean_segmean median_segmean
<fct> <int> <dbl> <dbl>
1 BRCA1/2_Mut 33 -0.312 -0.475
2 BRCA1/2_WT 365 -0.346 -0.398
Wilcoxon rank sum test with continuity correction
data: seg.mean by BRCA_group
W = 6065.5, p-value = 0.9465
alternative hypothesis: true location shift is not equal to 0
Warning: The above code chunk cached its results, but
it won’t be re-run if previous chunks it depends on are updated. If you
need to use caching, it is highly recommended to also set
knitr::opts_chunk$set(autodep = TRUE) at the top of the
file (in a chunk that is not cached). Alternatively, you can customize
the option dependson for each individual chunk that is
cached. Using either autodep or dependson will
remove this warning. See the
knitr cache options for more details.
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] stats graphics grDevices utils datasets methods base
other attached packages:
[1] knitr_1.50 openxlsx_4.2.8 ggplot2_4.0.0 stringr_1.5.2 dplyr_1.1.4
[6] readxl_1.4.5
loaded via a namespace (and not attached):
[1] gtable_0.3.6 jsonlite_2.0.0 compiler_4.5.1 promises_1.5.0
[5] zip_2.3.3 tidyselect_1.2.1 Rcpp_1.1.0 git2r_0.36.2
[9] later_1.4.4 jquerylib_0.1.4 scales_1.4.0 yaml_2.3.10
[13] fastmap_1.2.0 R6_2.6.1 generics_0.1.4 workflowr_1.7.2
[17] tibble_3.3.0 rprojroot_2.1.1 RColorBrewer_1.1-3 bslib_0.9.0
[21] pillar_1.11.1 rlang_1.1.6 cachem_1.1.0 stringi_1.8.7
[25] httpuv_1.6.16 xfun_0.53 S7_0.2.0 fs_1.6.6
[29] sass_0.4.10 otel_0.2.0 cli_3.6.5 withr_3.0.2
[33] magrittr_2.0.3 grid_4.5.1 digest_0.6.37 rstudioapi_0.17.1
[37] lifecycle_1.0.4 vctrs_0.6.5 evaluate_1.0.5 glue_1.8.0
[41] farver_2.1.2 cellranger_1.1.0 rmarkdown_2.30 tools_4.5.1
[45] pkgconfig_2.0.3 htmltools_0.5.8.1