-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3_human_stress_genes_features.Rmd
70 lines (46 loc) · 1.38 KB
/
3_human_stress_genes_features.Rmd
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
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, cache = TRUE)
```
# Human stress genes features
*Objective*: Investigate yeast stress features in humans.
```{r}
# Make folder for results
dir.create("results/human", showWarnings = F)
```
## Gene gathering
Experimentally defined osmostress-responsive genes with RNA-seq data in HeLa cells (100 mM NaCl, 3 hours)
```{r}
source("scr/human/genesGather.R")
```
## Properties gathering
First gather human IDs (one ENSG one ENST relationship). Using APPRIS
```{r}
source("scr/human/humanIdsGather.R")
```
Second, gather human properties and create a table with the correct format
```{r}
source("scr/human/propertiesGather.R")
```
## Feature modelling
```{r}
source("scr/human/modellingProperties.R")
```
## TCGA analysis of stress genes
```{r}
dir.create("data/original_data/tcga.rna", showWarnings = FALSE)
```
```{bash}
for i in ~/projects/public_data/2016_01_28_TCGA_RNAseq/*/*data.txt; do
cancerType=`basename "$i" | awk '{split($0,a,"."); print a[1]}'`;
mkdir -p data/original_data/tcga.rna/"$cancerType"
ln -sf "$i" data/original_data/tcga.rna/"$cancerType"/
ln -sf ~/projects/public_data/TCGA_2016_01_28/"$cancerType"/tumour/patient_annotation.txt \
data/original_data/tcga.rna/"$cancerType"/
done
```
```{r}
source("scr/human/tcgaRNAseq.R")
```
```{r}
source("scr/human/tcgaCN.R")
```