-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgleason.R
70 lines (55 loc) · 2.16 KB
/
gleason.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Association of the collagen-related gene expression with features of the tumor,
# such as tissue type and aggressiveness measured by Gleason scoring
# stratified by the ISUP rules (5 - 6, 7, 8+).
#
# 1) Analysis of the tumor and normal tissue stiffness by MRI. The diffusion
# capacities as hallmarks of the collagen content are compared be paired T test
# with Cohen's d in paired measurements of the adjacent prostate and the tumor.
#
# 2) Differential expression of the collagen genes in the tumor and normal lung.
# This is checked in paired specimens of the TCGA and GSE70768 data sets by
# paired T test and Chen's d statistic.
#
# 3) Univariable comparison of gene expression between the ISUP strata of
# Gleason scores with one-way ANOVA with eta-square effect size metric.
#
# 4) Ordinal Elastic Net regression of collagen gene expression in the Gleason
# score strata - just a trial, since no meaningful multi-gene signature of the
# Gleason score strata (ISUP criteria) could be established.
#
# 5) Correlation analysis (Spearman) of PSA at diagnosis and collagen gene
# expression
# tools -------
library(tidyverse)
library(trafo)
library(rlang)
library(stringi)
library(exda)
library(microViz)
library(caret)
library(caretExtra)
library(doParallel)
library(furrr)
library(soucer)
explore <- exda::explore
select <- dplyr::select
reduce <- purrr::reduce
set_rownames <- trafo::set_rownames
extract <- clustTools::extract
insert_head()
c('./tools/globals.R',
'./tools/functions.R') %>%
source_all(message = TRUE, crash = TRUE)
# Analysis scripts --------
insert_msg('Analysis scripts')
c('./gleason scripts/mri.R',
'./gleason scripts/normal_tumor.R',
'./gleason scripts/univariable.R',
'./gleason scripts/psa.R') %>%
source_all(message = TRUE, crash = TRUE)
## establishing a multi-gene signature
access_cache(cache_path = './cache/gs_sign.RData',
script_path = './gleason scripts/signature.R',
message = 'Loading Elastic Net modeling results')
# END ------
insert_tail()