-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgds_1917.R
33 lines (22 loc) · 1.23 KB
/
gds_1917.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
#################################################################################################################################
# GDS1917, GPL570, Cerebellar cortex, Cerebellar cortex in schizophrenia
# Subset to just DZ instances
df_1917_disease = df_1917[,df_1917$disease.state != "control"]
# Remove metadata
drops <- c("sample", "disease.state", "description")
df_1917_disease = df_1917_disease[ , !(names(df_1917_disease) %in% drops)]
# Transpose to use cor()
df_1917_disease_t = t(df_1917_disease)
# Compute corr
cor_1917 = cor(df_1917_disease_t)
#################################################################################################################################
# GDS4136, GPL570, hippocampal CA1 gray matter, Various stages of Alzheimer's disease: laser-captured hippocampal CA1 gray matter
# Subset to just DZ instances
df_4136_disease = df_4136[,df_4136$disease.state != "control"] # Other values are "incipient stage", "moderate stage", "severe stage"
# Remove metadata
drops <- c("sample", "age", "disease.state", "description")
df_4136_disease = df_4136_disease[ , !(names(df_4136_disease) %in% drops)]
# Transpose to use cor()
df_4136_disease_t = t(df_4136_disease)
# Compute corr
cor_4136 = cor(df_4136_disease_t)