Skip to content

Commit 382c4c2

Browse files
authored
Merge pull request #35 from uclahs-cds/jarbet-rerun-full-ML-pipeline
Rerun entire ML pipeline and update models
2 parents 9b1e8f2 + 34c75cb commit 382c4c2

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Package: PrCaMethy
22
Title: Prostate Cancer Methylation
33
Version: 1.1.0
4-
Date: 2025-10-07
5-
Maintainer: Jaron Arbet <[email protected]>
4+
Date: 2025-10-09
5+
Maintainer: Jaron Arbet <[email protected]>
66
Description: Resources for predicting clinical and molecular features using prostate cancer DNA methylation data.
77
Authors@R: c(
8-
person("Jaron Arbet", role = c("aut", "cre"), email = "[email protected]"),
8+
person("Jaron Arbet", role = c("aut", "cre"), email = "[email protected]"),
99
person("Paul C. Boutros", role = "aut"))
1010
Depends:
1111
R (>= 3.5)

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
## PrCaMethy 1.1.0 (2025-10-07)
1+
## PrCaMethy 1.1.0 (2025-10-09)
22

33
### New Features
44

55
- Added a new model to `all.models` for predicting `T2E.fusion`. Thus `estimate.features()` will now predict `T2E.fusion`.
6+
+ For devs: previously the new T2E model and old model results were created/saved in 2 different files, making maintenance more difficult. Thus scripts were consolidated so that all models are now created/saved in a single file. This will improve maintenance of the package.
67

78
## PrCaMethy 1.0.0 (2025-05-22)
89

data/all.models.rda

403 KB
Binary file not shown.

inst/save.models.R

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ test.mode <- FALSE;
44

55
load(arg$path.ml.res);
66
final.models <- readRDS(arg$path.final.models);
7+
res.date <- regmatches(arg$path.ml.res, regexpr('\\d{4}-\\d{2}-\\d{2}', arg$path.ml.res));
78

89
outcomes <- unique(ml.res.params$outcome);
910
# remove continuous psa because of cohort bias and remove categorical age since unnecessary (can just use continuous age)
1011
outcomes <- outcomes[!outcomes %in% c('log2.psa.continuous', 'age.categorical')];
1112
stopifnot(length(outcomes) == 15);
1213

1314
if (test.mode) {
14-
outcomes <- c('age.continuous', 't.stage');
15+
outcomes <- c('age.continuous', 't.category');
1516
}
1617

1718
####
@@ -59,11 +60,6 @@ models <- lapply(
5960
ml.res.params$outcome == outcome &
6061
ml.res.params$top.features == final.model$top.features
6162
);
62-
if (outcome == 'T2E.fusion') {
63-
res.date <- arg$date.t2e.model;
64-
} else {
65-
res.date <- arg$date.old.models;
66-
}
6763

6864
file <- file.path(dirname(arg$path.ml.res), paste0(res.date, '_F72-predict-clinical-and-drivers_discrete-methyFALSE_models-', mod.id, '-', outcome, '-', final.model$top.features, '.RData'));
6965

0 commit comments

Comments
 (0)