Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Remove R script/notebook package installs from remaining modules (Par…
Browse files Browse the repository at this point in the history
…t 4 of 4) (#704)

* Get rid of package installs from mutational-signatures and rerun

* Get rid of installs and rerun oncoprint

* Undo selection strategy changes

* Re-run survival analysis template

* Get rid of installs in transcriptomic reduction

* Get transcriptomic dimension results

* re-run dim red

* resolve conflict
  • Loading branch information
cansavvy authored Jun 14, 2020
1 parent ac5a3c0 commit 6c87783
Show file tree
Hide file tree
Showing 39 changed files with 8,314 additions and 8,368 deletions.
4 changes: 0 additions & 4 deletions analyses/mutational-signatures/mutational_signatures.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ _This assumes you are in the top directory of the repository._
Import necessary functions.

```{r}
if (!("deconstructSigs" %in% installed.packages())) {
BiocManager::install("BSgenome.Hsapiens.UCSC.hg38")
install.packages("deconstructSigs")
}
# Magrittr pipe
`%>%` <- dplyr::`%>%`
Expand Down
100 changes: 45 additions & 55 deletions analyses/mutational-signatures/mutational_signatures.nb.html

Large diffs are not rendered by default.

Binary file modified analyses/survival-analysis/plots/survival_curve_gender.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion analyses/survival-analysis/results/cox_regression_tmb.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
term estimate std.error statistic p.value conf.low conf.high
tmb 0.0521197728016334 0.013418018627272368 3.884312151400581 1.0261999733068191e-4 0.025820939548291923 0.07841860605497479
tmb 0.05268823685709489 0.01328130103328082 3.9670990609328545 7.275275878352726e-5 0.02665736516402978 0.07871910855015984
99 changes: 40 additions & 59 deletions analyses/survival-analysis/survival-analysis_template.nb.html

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions analyses/survival-analysis/util/survival_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
#
# 2019
#
# Install the packages we need
if (!("survminer" %in% installed.packages())) {
install.packages("survminer")
}

# Attach this package
library(survminer)
Expand Down Expand Up @@ -73,7 +69,7 @@ survival_analysis <- function(metadata,

# Don't continue if there's no variable specified
if (is.null(ind_var)) {
stop("No variable has been supplied to test with using the `ind_var` argument.
stop("No variable has been supplied to test with using the `ind_var` argument.
Stopping.")
}

Expand Down Expand Up @@ -111,7 +107,7 @@ survival_analysis <- function(metadata,

# Check that a sample column was specified
if (is.null(ind_data_sample_col)) {
stop("A `ind_data` data.frame was specified but the column with the sample information
stop("A `ind_data` data.frame was specified but the column with the sample information
was not specified using `ind_data_sample_col`.")
}

Expand All @@ -135,7 +131,7 @@ survival_analysis <- function(metadata,
# Set up the enquosures
ind_data_sample_col <- enquo(ind_data_sample_col)
metadata_sample_col <- enquo(metadata_sample_col)

# Set up the sample by thing
sample_by <- set_names(quo_name(ind_data_sample_col), quo_name(metadata_sample_col))

Expand All @@ -146,7 +142,7 @@ survival_analysis <- function(metadata,
} else {
# Set up
metadata_sample_col <- enquo(metadata_sample_col)

# Look for the independent variable columns in the metadata
found_cols <- (ind_var %in% colnames(metadata))

Expand Down
Loading

0 comments on commit 6c87783

Please sign in to comment.