Hendrik Possemiers - r0375030
​
Idris Salmon - r0382097
​
Charlotte Lefèvre - r0386991

Hendrik Possemiers - r0375030

Idris Salmon - r0382097

Charlotte Lefèvre - r0386991

 
Prostate cancer is believed to be the most common cancer in men in western societies. (1) It is estimated that 1 out of 7 men will be diagnosed with prostate cancer during life, while only 1 in 39 will die from the disease. (2) Accurate diagnostic tests should be developed in order to classify patiens by disease aggressiveness and to give adequate treatment, corresponding to the cancer stage and with as little side effects as possible. Therefore, it would be interesting to compare gene expression profiles of cell cultures maintaining the prostate cancer phenotype with normal cells. In this study, we compared epithelial samples derived from prostate cancer tissue with normal prostate epithelial samples, using RNA seq data. (3) As mutations in a wide variety of genes, activating transcription factors, can promote the development of cancer, it is intresting to look at treatments that have an influence on these genes. With a microarray analysis, we compared the influence of the drug I-BET762 in prostate cancer cells with untreated prostate cancer cells. The drug prevents the transcriptional activation of the target genes tiggered by BET (bromodomain and extra-terminal) proteins, which promote cell growth and survival in several hematologic cancer models. (4)

Prostate cancer is believed to be the most common cancer in men in western societies. (1) It is estimated that 1 out of 7 men will be diagnosed with prostate cancer during life, while only 1 in 39 will die from the disease. (2) Accurate diagnostic tests should be developed in order to classify patiens by disease aggressiveness and to give adequate treatment, corresponding to the cancer stage and with as little side effects as possible. Therefore, it would be interesting to compare gene expression profiles of cell cultures maintaining the prostate cancer phenotype with normal cells. In this study, we compared epithelial samples derived from prostate cancer tissue with normal prostate epithelial samples, using RNA seq data. (3) As mutations in a wide variety of genes, activating transcription factors, can promote the development of cancer, it is intresting to look at treatments that have an influence on these genes. With a microarray analysis, we compared the influence of the drug I-BET762 in prostate cancer cells with untreated prostate cancer cells. The drug prevents the transcriptional activation of the target genes tiggered by BET (bromodomain and extra-terminal) proteins, which promote cell growth and survival in several hematologic cancer models. (4)

 
# Microarray

Microarray

 
In the first step the required libraries are loaded in order to do differential expression analysis (limma)
and microarray data processing (affy). 

In the first step the required libraries are loaded in order to do differential expression analysis (limma) and microarray data processing (affy).

In [76]:
 
library(limma)
library(affy)
 
The celfiles (samples) are downloaded in:

The celfiles (samples) are downloaded in:

In [77]:
 
celfiles = Sys.glob("/mnt/storage/r0386991/GSE56352/*.gz")
 
With the next command, we checked whether our cell file names were correctly downloaded.
In this step 'celfiles' only contains the names of the cell files, so now the corresponding data have to be loaded.

With the next command, we checked whether our cell file names were correctly downloaded. In this step 'celfiles' only contains the names of the cell files, so now the corresponding data have to be loaded.

In [78]:
 
celfiles
  1. '/mnt/storage/r0386991/GSE56352/GSM1359760_EA10008_246204_HG-U133_PLUS_2_1.CEL.gz'
  2. '/mnt/storage/r0386991/GSE56352/GSM1359761_EA10008_246205_HG-U133_PLUS_2_2.CEL.gz'
  3. '/mnt/storage/r0386991/GSE56352/GSM1359762_EA10008_246206_HG-U133_PLUS_2_3.CEL.gz'
  4. '/mnt/storage/r0386991/GSE56352/GSM1359763_EA10008_246207_HG-U133_PLUS_2_4.CEL.gz'
  5. '/mnt/storage/r0386991/GSE56352/GSM1359764_EA10008_246208_HG-U133_PLUS_2_5.CEL.gz'
  6. '/mnt/storage/r0386991/GSE56352/GSM1359765_EA10008_246209_HG-U133_PLUS_2_6.CEL.gz'
  7. '/mnt/storage/r0386991/GSE56352/GSM1359766_EA10008_246210_HG-U133_PLUS_2_7.CEL.gz'
  8. '/mnt/storage/r0386991/GSE56352/GSM1359767_EA10008_246211_HG-U133_PLUS_2_8.CEL.gz'
  9. '/mnt/storage/r0386991/GSE56352/GSM1359768_EA10008_246212_HG-U133_PLUS_2_9.CEL.gz'
  10. '/mnt/storage/r0386991/GSE56352/GSM1359769_EA10008_246213_HG-U133_PLUS_2_10.CEL.gz'
  11. '/mnt/storage/r0386991/GSE56352/GSM1359770_EA10008_246214_HG-U133_PLUS_2_11.CEL.gz'
  12. '/mnt/storage/r0386991/GSE56352/GSM1359771_EA10008_246215_HG-U133_PLUS_2_12.CEL.gz'
  13. '/mnt/storage/r0386991/GSE56352/GSM1359772_EA10008_246216_HG-U133_PLUS_2_13.CEL.gz'
  14. '/mnt/storage/r0386991/GSE56352/GSM1359773_EA10008_246217_HG-U133_PLUS_2_14.CEL.gz'
  15. '/mnt/storage/r0386991/GSE56352/GSM1359774_EA10008_246218_HG-U133_PLUS_2_15.CEL.gz'
  16. '/mnt/storage/r0386991/GSE56352/GSM1359775_EA10008_246219_HG-U133_PLUS_2_16.CEL.gz'
  17. '/mnt/storage/r0386991/GSE56352/GSM1359776_EA10008_246220_HG-U133_PLUS_2_17.CEL.gz'
  18. '/mnt/storage/r0386991/GSE56352/GSM1359777_EA10008_246221_HG-U133_PLUS_2_18.CEL.gz'
  19. '/mnt/storage/r0386991/GSE56352/GSM1359778_EA10008_248024_HG-U133_PLUS_2_100.CEL.gz'
  20. '/mnt/storage/r0386991/GSE56352/GSM1359779_EA10008_248025_HG-U133_PLUS_2_101.CEL.gz'
  21. '/mnt/storage/r0386991/GSE56352/GSM1359780_EA10008_248026_HG-U133_PLUS_2_102.CEL.gz'
  22. '/mnt/storage/r0386991/GSE56352/GSM1359781_EA10008_248027_HG-U133_PLUS_2_103.CEL.gz'
  23. '/mnt/storage/r0386991/GSE56352/GSM1359782_EA10008_248028_HG-U133_PLUS_2_104.CEL.gz'
  24. '/mnt/storage/r0386991/GSE56352/GSM1359783_EA10008_248029_HG-U133_PLUS_2_105_N2.CEL.gz'
 
In order to do so, a function of the Bioconductor Affy package is used.
The variable 'rawcel' contains an 'Affybatch' object.
An Affybatch class represents Affymetrix GeneChip probe level data. In these kind of data a mRNA molecule of interest (usually related to a gene) is represented by a probe set composed of 11–20 probe pairs of these oligonucleotides. Each probe pair is composed of a perfect match (PM) probe, a section of the mRNA molecule of interest, and a mismatch (MM) probe that is created by changing the middle (13th) base of the PM with the intention of measuring non-specific binding. (5) 

In order to do so, a function of the Bioconductor Affy package is used. The variable 'rawcel' contains an 'Affybatch' object. An Affybatch class represents Affymetrix GeneChip probe level data. In these kind of data a mRNA molecule of interest (usually related to a gene) is represented by a probe set composed of 11–20 probe pairs of these oligonucleotides. Each probe pair is composed of a perfect match (PM) probe, a section of the mRNA molecule of interest, and a mismatch (MM) probe that is created by changing the middle (13th) base of the PM with the intention of measuring non-specific binding. (5)

In [79]:
 
rawcel <- ReadAffy(filenames=celfiles)
 
In the next step is the samples will be annotated: the rawcel object only knows of the file names, so these file names have to 
be associated with the data. 

In the next step is the samples will be annotated: the rawcel object only knows of the file names, so these file names have to be associated with the data.

In [80]:
 
sampleNames(rawcel)
  1. 'GSM1359760_EA10008_246204_HG-U133_PLUS_2_1.CEL.gz'
  2. 'GSM1359761_EA10008_246205_HG-U133_PLUS_2_2.CEL.gz'
  3. 'GSM1359762_EA10008_246206_HG-U133_PLUS_2_3.CEL.gz'
  4. 'GSM1359763_EA10008_246207_HG-U133_PLUS_2_4.CEL.gz'
  5. 'GSM1359764_EA10008_246208_HG-U133_PLUS_2_5.CEL.gz'
  6. 'GSM1359765_EA10008_246209_HG-U133_PLUS_2_6.CEL.gz'
  7. 'GSM1359766_EA10008_246210_HG-U133_PLUS_2_7.CEL.gz'
  8. 'GSM1359767_EA10008_246211_HG-U133_PLUS_2_8.CEL.gz'
  9. 'GSM1359768_EA10008_246212_HG-U133_PLUS_2_9.CEL.gz'
  10. 'GSM1359769_EA10008_246213_HG-U133_PLUS_2_10.CEL.gz'
  11. 'GSM1359770_EA10008_246214_HG-U133_PLUS_2_11.CEL.gz'
  12. 'GSM1359771_EA10008_246215_HG-U133_PLUS_2_12.CEL.gz'
  13. 'GSM1359772_EA10008_246216_HG-U133_PLUS_2_13.CEL.gz'
  14. 'GSM1359773_EA10008_246217_HG-U133_PLUS_2_14.CEL.gz'
  15. 'GSM1359774_EA10008_246218_HG-U133_PLUS_2_15.CEL.gz'
  16. 'GSM1359775_EA10008_246219_HG-U133_PLUS_2_16.CEL.gz'
  17. 'GSM1359776_EA10008_246220_HG-U133_PLUS_2_17.CEL.gz'
  18. 'GSM1359777_EA10008_246221_HG-U133_PLUS_2_18.CEL.gz'
  19. 'GSM1359778_EA10008_248024_HG-U133_PLUS_2_100.CEL.gz'
  20. 'GSM1359779_EA10008_248025_HG-U133_PLUS_2_101.CEL.gz'
  21. 'GSM1359780_EA10008_248026_HG-U133_PLUS_2_102.CEL.gz'
  22. 'GSM1359781_EA10008_248027_HG-U133_PLUS_2_103.CEL.gz'
  23. 'GSM1359782_EA10008_248028_HG-U133_PLUS_2_104.CEL.gz'
  24. 'GSM1359783_EA10008_248029_HG-U133_PLUS_2_105_N2.CEL.gz'
 
In order to associate the treatments and cells with the samples, we went back on GEO page (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=gse56352) to look in the description which treatments and cells corresponded with which cell file. We made vectors with this treatments and cells, so that R knows which treatment and cell is which. 

In order to associate the treatments and cells with the samples, we went back on GEO page (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=gse56352) to look in the description which treatments and cells corresponded with which cell file. We made vectors with this treatments and cells, so that R knows which treatment and cell is which.

In [81]:
 
cell.dose = c("NCIH660/DMSO", 
              "NCIH660/DMSO",
              "NCIH660/5µM", 
              "NCIH660/5µM",
              "NCIH660/10µM", 
              "NCIH660/10µM",
              "VCAP/DMSO", 
              "VCAP/DMSO",
              "VCAP/5µM", 
              "VCAP/5µM",
             "VCAP/10µM",
             "VCAP/10µM",
             "LNCAP/DMSO",
             "LNCAP/DMSO",
             "LNCAP/5µM",
             "LNCAP/5µM",
             "LNCAP/10µM",
             "LNCAP/10µM",
             "PC3/DMSO",
             "PC3/DMSO",
             "PC3/5µM",
             "PC3/5µM",
             "PC3/10µM",
             "PC3/10µM")
 
Now we've merged the sample names and cells/treatment into one data frame:

Now we've merged the sample names and cells/treatment into one data frame:

In [82]:
 
pd <- data.frame(cell.dose = cell.dose)
rownames(pd) <- sampleNames(rawcel)
pd
cell.dose
GSM1359760_EA10008_246204_HG-U133_PLUS_2_1.CEL.gzNCIH660/DMSO
GSM1359761_EA10008_246205_HG-U133_PLUS_2_2.CEL.gzNCIH660/DMSO
GSM1359762_EA10008_246206_HG-U133_PLUS_2_3.CEL.gzNCIH660/5µM
GSM1359763_EA10008_246207_HG-U133_PLUS_2_4.CEL.gzNCIH660/5µM
GSM1359764_EA10008_246208_HG-U133_PLUS_2_5.CEL.gzNCIH660/10µM
GSM1359765_EA10008_246209_HG-U133_PLUS_2_6.CEL.gzNCIH660/10µM
GSM1359766_EA10008_246210_HG-U133_PLUS_2_7.CEL.gzVCAP/DMSO
GSM1359767_EA10008_246211_HG-U133_PLUS_2_8.CEL.gzVCAP/DMSO
GSM1359768_EA10008_246212_HG-U133_PLUS_2_9.CEL.gzVCAP/5µM
GSM1359769_EA10008_246213_HG-U133_PLUS_2_10.CEL.gzVCAP/5µM
GSM1359770_EA10008_246214_HG-U133_PLUS_2_11.CEL.gzVCAP/10µM
GSM1359771_EA10008_246215_HG-U133_PLUS_2_12.CEL.gzVCAP/10µM
GSM1359772_EA10008_246216_HG-U133_PLUS_2_13.CEL.gzLNCAP/DMSO
GSM1359773_EA10008_246217_HG-U133_PLUS_2_14.CEL.gzLNCAP/DMSO
GSM1359774_EA10008_246218_HG-U133_PLUS_2_15.CEL.gzLNCAP/5µM
GSM1359775_EA10008_246219_HG-U133_PLUS_2_16.CEL.gzLNCAP/5µM
GSM1359776_EA10008_246220_HG-U133_PLUS_2_17.CEL.gzLNCAP/10µM
GSM1359777_EA10008_246221_HG-U133_PLUS_2_18.CEL.gzLNCAP/10µM
GSM1359778_EA10008_248024_HG-U133_PLUS_2_100.CEL.gzPC3/DMSO
GSM1359779_EA10008_248025_HG-U133_PLUS_2_101.CEL.gzPC3/DMSO
GSM1359780_EA10008_248026_HG-U133_PLUS_2_102.CEL.gzPC3/5µM
GSM1359781_EA10008_248027_HG-U133_PLUS_2_103.CEL.gzPC3/5µM
GSM1359782_EA10008_248028_HG-U133_PLUS_2_104.CEL.gzPC3/10µM
GSM1359783_EA10008_248029_HG-U133_PLUS_2_105_N2.CEL.gzPC3/10µM
 
We have converted this dataframe to an AnnotatedDataFrame, which is a variant of a data.frame that the affy package requires for annotated data, and assigned it to our rawcel object. The Biobase library contains the AnnotatedDataFrame. 

We have converted this dataframe to an AnnotatedDataFrame, which is a variant of a data.frame that the affy package requires for annotated data, and assigned it to our rawcel object. The Biobase library contains the AnnotatedDataFrame.

In [83]:
 
library(Biobase)
​
phenoData(rawcel) <- AnnotatedDataFrame(data=pd)
 
Next, we've used the frma library to normalize the 'rawcel' in order to compare the data.

Next, we've used the frma library to normalize the 'rawcel' in order to compare the data.

In [84]:
 
library(frma)
In [85]:
 
eset <- frma(rawcel, verbose=TRUE)
save(eset, file="/mnt/storage/r0386991/GSE56352.eset")
Background Correcting ...

Normalizing ...

Summarizing ...

 
We now have an expression set loaded as an ExpressionSet. The ExpressionSet class is a container for high-throughput assays and experimental metadata. 

We now have an expression set loaded as an ExpressionSet. The ExpressionSet class is a container for high-throughput assays and experimental metadata.

In [86]:
 
eset
ExpressionSet (storageMode: lockedEnvironment)
assayData: 54675 features, 24 samples 
  element names: exprs, se.exprs 
protocolData: none
phenoData
  sampleNames: GSM1359760_EA10008_246204_HG-U133_PLUS_2_1.CEL.gz
    GSM1359761_EA10008_246205_HG-U133_PLUS_2_2.CEL.gz ...
    GSM1359783_EA10008_248029_HG-U133_PLUS_2_105_N2.CEL.gz (24 total)
  varLabels: cell.dose
  varMetadata: labelDescription
featureData: none
experimentData: use 'experimentData(object)'
Annotation: hgu133plus2 
 
The eset objects contains the normalized data per probe and some experimental annotation. The raw data can be visualized by using the exprs command, but the samplenames in this table are not very informative (see next command). These generic functions access the expression and error measurements of assay data stored in an object derived from the ExpressionSet-class.

The eset objects contains the normalized data per probe and some experimental annotation. The raw data can be visualized by using the exprs command, but the samplenames in this table are not very informative (see next command). These generic functions access the expression and error measurements of assay data stored in an object derived from the ExpressionSet-class.

In [87]:
 
sampleNames(eset)
  1. 'GSM1359760_EA10008_246204_HG-U133_PLUS_2_1.CEL.gz'
  2. 'GSM1359761_EA10008_246205_HG-U133_PLUS_2_2.CEL.gz'
  3. 'GSM1359762_EA10008_246206_HG-U133_PLUS_2_3.CEL.gz'
  4. 'GSM1359763_EA10008_246207_HG-U133_PLUS_2_4.CEL.gz'
  5. 'GSM1359764_EA10008_246208_HG-U133_PLUS_2_5.CEL.gz'
  6. 'GSM1359765_EA10008_246209_HG-U133_PLUS_2_6.CEL.gz'
  7. 'GSM1359766_EA10008_246210_HG-U133_PLUS_2_7.CEL.gz'
  8. 'GSM1359767_EA10008_246211_HG-U133_PLUS_2_8.CEL.gz'
  9. 'GSM1359768_EA10008_246212_HG-U133_PLUS_2_9.CEL.gz'
  10. 'GSM1359769_EA10008_246213_HG-U133_PLUS_2_10.CEL.gz'
  11. 'GSM1359770_EA10008_246214_HG-U133_PLUS_2_11.CEL.gz'
  12. 'GSM1359771_EA10008_246215_HG-U133_PLUS_2_12.CEL.gz'
  13. 'GSM1359772_EA10008_246216_HG-U133_PLUS_2_13.CEL.gz'
  14. 'GSM1359773_EA10008_246217_HG-U133_PLUS_2_14.CEL.gz'
  15. 'GSM1359774_EA10008_246218_HG-U133_PLUS_2_15.CEL.gz'
  16. 'GSM1359775_EA10008_246219_HG-U133_PLUS_2_16.CEL.gz'
  17. 'GSM1359776_EA10008_246220_HG-U133_PLUS_2_17.CEL.gz'
  18. 'GSM1359777_EA10008_246221_HG-U133_PLUS_2_18.CEL.gz'
  19. 'GSM1359778_EA10008_248024_HG-U133_PLUS_2_100.CEL.gz'
  20. 'GSM1359779_EA10008_248025_HG-U133_PLUS_2_101.CEL.gz'
  21. 'GSM1359780_EA10008_248026_HG-U133_PLUS_2_102.CEL.gz'
  22. 'GSM1359781_EA10008_248027_HG-U133_PLUS_2_103.CEL.gz'
  23. 'GSM1359782_EA10008_248028_HG-U133_PLUS_2_104.CEL.gz'
  24. 'GSM1359783_EA10008_248029_HG-U133_PLUS_2_105_N2.CEL.gz'
 
To associate the different conditions (cells and treatment) with more informative and useful names, we assigned the names manually.

To associate the different conditions (cells and treatment) with more informative and useful names, we assigned the names manually.

In [88]:
 
eset.labels <- c("NCIH660/DMSO.60", "NCIH660/DMSO.61", "NCIH660/5µM.62", "NCIH660/5µM.63",
                 "NCIH660/10µM.64", "NCIH660/10µM.65", "VCAP/DMSO.66", "VCAP/DMSO.67",
                 "VCAP/5µM.68", "VCAP/5µM.69", "VCAP/10µM.70", "VCAP/10µM.71",
                 "LNCAP/DMSO.72", "LNCAP/DMSO.73", "LNCAP/5µM.74", "LNCAP/5µM.75", 
                "LNCAP/10µM.76", "LNCAP/10µM.77", "PC3/DMSO.78", "PC3/DMSO.79",
                "PC3/5µM.80", "PC3/5µM.81", "PC3/10µM.82", "PC3/10µM.83")
​
sampleNames(eset) <- eset.labels
 
We checked the normalized expression level on a probe by probe basis:

We checked the normalized expression level on a probe by probe basis:

In [89]:
 
probe.counts <- exprs(eset)
probe.counts[1:5,1:4]
NCIH660/DMSO.60NCIH660/DMSO.61NCIH660/5µM.62NCIH660/5µM.63
1007_s_at9.4466049.4080909.2959929.315263
1053_at8.3159408.4920418.3881728.432733
117_at5.7685735.5080476.6310626.476402
121_at7.5269897.4769477.7035447.652274
1255_g_at3.4864963.5085233.4154753.445812
 
We've assigned gene names to each probe.
First two extra libraries had to be loaded. The hgu133plus2.db library conatins the annotation of our microarray platform (hgu133+2).

We've assigned gene names to each probe. First two extra libraries had to be loaded. The hgu133plus2.db library conatins the annotation of our microarray platform (hgu133+2).

In [90]:
 
library(annotate)
library(hgu133plus2.db)
 
Now, we will create a mapping from probe to gene using the getSYMBOL function, so the probe names will be replaced by their associated gene names.

Now, we will create a mapping from probe to gene using the getSYMBOL function, so the probe names will be replaced by their associated gene names.

In [91]:
 
probe.names <- rownames(probe.counts)
gene.symbols <- getSYMBOL(probe.names, "hgu133plus2")
head(gene.symbols)
1007_s_at
'NA'
1053_at
'RFC2'
117_at
'HSPA6'
121_at
'PAX8'
1255_g_at
'GUCA1A'
1294_at
'NA'
 
Now we will perform a few extra steps to fix the raw expression table.
The first step is to convert the raw expression to a data.frame with the gene symbols added as an extra column (see last column):

Now we will perform a few extra steps to fix the raw expression table. The first step is to convert the raw expression to a data.frame with the gene symbols added as an extra column (see last column):

In [92]:
 
probe.counts.genesymbol <- as.data.frame(cbind(as.data.frame(probe.counts), gene.symbols))
head(probe.counts.genesymbol)
NCIH660/DMSO.60NCIH660/DMSO.61NCIH660/5µM.62NCIH660/5µM.63NCIH660/10µM.64NCIH660/10µM.65VCAP/DMSO.66VCAP/DMSO.67VCAP/5µM.68VCAP/5µM.69⋯LNCAP/5µM.75LNCAP/10µM.76LNCAP/10µM.77PC3/DMSO.78PC3/DMSO.79PC3/5µM.80PC3/5µM.81PC3/10µM.82PC3/10µM.83gene.symbols
1007_s_at9.4466049.4080909.2959929.3152639.0091199.0608989.0424419.0286998.9993829.035646⋯ 8.5653778.0595298.0648979.4246159.4128919.2316469.1570538.9670838.905610NA
1053_at8.3159408.4920418.3881728.4327338.4038788.4018768.4334728.3409537.2756907.252516⋯ 7.6077907.2239057.2808008.2581398.3573198.2834858.3890158.0316288.153120RFC2
117_at5.7685735.5080476.6310626.4764028.0166847.1042325.3236485.1014395.1995475.249560⋯ 4.8872264.8285604.9443605.3997225.5669415.4788305.3527365.5153895.567581HSPA6
121_at7.5269897.4769477.7035447.6522747.6823027.6551067.9121657.8642527.8738107.921306⋯ 7.9734047.7826687.9760137.8899657.9026667.9864577.7728097.8370197.830785PAX8
1255_g_at3.4864963.5085233.4154753.4458123.5176213.4323063.4955953.5686293.4791483.627472⋯ 3.5172533.5541873.4922063.6458523.4793483.5721643.6727653.6488233.460859GUCA1A
1294_at7.0072536.9858316.6799216.5945026.3520436.2364505.5686105.5186535.4509595.608619⋯ 5.3696985.2878675.5148435.2214545.2994785.1138535.3360095.2009495.266193NA
 
Then we've removed all probes for which we do not have a gene symbol (NA), and ensure that the gene symbol column contains only strings:

Then we've removed all probes for which we do not have a gene symbol (NA), and ensure that the gene symbol column contains only strings:

In [93]:
 
probe.counts.genesymbol = probe.counts.genesymbol[complete.cases(probe.counts.genesymbol),]
probe.counts.genesymbol$gene.symbols <- as.character(probe.counts.genesymbol$gene.symbols)
 
Now, we have multiple probes per gene. Differing values may have biological meaning (splice variants) or may be noise. To keep things simple we took the median expression here.
To group the probes per gene, we used a function from the excellent reshape2 package.

Now, we have multiple probes per gene. Differing values may have biological meaning (splice variants) or may be noise. To keep things simple we took the median expression here. To group the probes per gene, we used a function from the excellent reshape2 package.

In [94]:
 
library(reshape2)
 
We will now melt and dcast the probe expression table into a gene count table as a data frame output (dcast).

We will now melt and dcast the probe expression table into a gene count table as a data frame output (dcast).

In [95]:
 
m <- melt(probe.counts.genesymbol, id.vars = c("gene.symbols"))
In [96]:
 
head(m)
gene.symbolsvariablevalue
RFC2 NCIH660/DMSO.608.315940
HSPA6 NCIH660/DMSO.605.768573
PAX8 NCIH660/DMSO.607.526989
GUCA1A NCIH660/DMSO.603.486496
THRA NCIH660/DMSO.605.286403
PTPN21 NCIH660/DMSO.603.942081
 
And now we aggregated the counted genes into a count table:

And now we aggregated the counted genes into a count table:

In [97]:
 
counts <- dcast(m, gene.symbols ~ variable, fun.aggregate=median)
 
There is a column called gene.symbols. We've turned these into the row names now:

There is a column called gene.symbols. We've turned these into the row names now:

In [98]:
 
rownames(counts) <- counts$gene.symbols
counts$gene.symbols <- NULL
In [99]:
 
counts[1:5,1:5]
NCIH660/DMSO.60NCIH660/DMSO.61NCIH660/5µM.62NCIH660/5µM.63NCIH660/10µM.64
A1BG6.7096106.6203506.7768676.6002967.067917
A1BG-AS14.5871354.6614234.7998614.9621435.074802
A1CF4.1140864.0764084.0736194.0858664.325736
A2M4.6165194.5725374.6019924.7680204.603599
A2M-AS13.6895413.4541763.4642303.5992123.585445
 
We've saved the count table as a tsv-file. 
By using col.names=NA we got correct column headers - otherwise there would be no header for the gene symbols, which results in most other software loading this data incorrectly.

We've saved the count table as a tsv-file. By using col.names=NA we got correct column headers - otherwise there would be no header for the gene symbols, which results in most other software loading this data incorrectly.

In [100]:
 
write.table(counts, 'GSE56352.counts.tsv', sep="\t", quote=FALSE, col.names=NA)
 
Quality control:  It is very important to check the quality of the data. One of the most commonly used tools is PCA or MDS.
We used the MDS tool in order to form a two-dimensional scatterplot so that distances on the plot approximate the typical log2 fold changes between the samples.
If two samples are similar the should be close together and replicates too (they should be the same). 

Quality control: It is very important to check the quality of the data. One of the most commonly used tools is PCA or MDS. We used the MDS tool in order to form a two-dimensional scatterplot so that distances on the plot approximate the typical log2 fold changes between the samples. If two samples are similar the should be close together and replicates too (they should be the same).

In [30]:
 
plotMDS(eset)
In [31]:
 
plotMDS(eset, ndim=3, dim.plot=c(2,3))
 
In this experiment the replicates are very close to each other, which is good. However the treatment (0.5µM and even 10µM) don't seem to have a big effect.

In this experiment the replicates are very close to each other, which is good. However the treatment (0.5µM and even 10µM) don't seem to have a big effect.

 
For the rest of the analysis, we chose to focus on two cell types (LNCAP and VCAP) treated either with DMSO (control) or with 10µM I-BET762. We chose the hightest concentration tested to see if the drug really had some effect and to see whether the effect was really due to the drug.  
​
So we subselected the columns of intrest.

For the rest of the analysis, we chose to focus on two cell types (LNCAP and VCAP) treated either with DMSO (control) or with 10µM I-BET762. We chose the hightest concentration tested to see if the drug really had some effect and to see whether the effect was really due to the drug.

So we subselected the columns of intrest.

In [208]:
 
GSE56352.10LNCAP <- counts[c('LNCAP/DMSO.72', 'LNCAP/DMSO.73', 'LNCAP/10µM.76', 'LNCAP/10µM.77')]
In [170]:
 
GSE56352.10VCAP <- counts[c('VCAP/DMSO.66', 'VCAP/DMSO.67', 'VCAP/10µM.70', 'VCAP/10µM.71')]
 
In original table we had 24 samples and we've now twice subselected 4 samples of intrest:

In original table we had 24 samples and we've now twice subselected 4 samples of intrest:

In [171]:
 
print(dim(counts))            
[1] 20389    24
In [223]:
 
print(dim(GSE56352.10LNCAP))
[1] 20389     4
In [209]:
 
head(GSE56352.10LNCAP)
LNCAP/DMSO.72LNCAP/DMSO.73LNCAP/10µM.76LNCAP/10µM.77
A1BG5.3324965.4522045.2481955.212867
A1BG-AS14.8993984.8428045.3501775.333743
A1CF4.3582654.3502214.3130214.426692
A2M4.9328884.9787834.7884664.925542
A2M-AS13.8224853.9664494.2606404.410644
A2ML13.7831483.8720323.8895383.840343
In [173]:
 
head(GSE56352.10VCAP)
VCAP/DMSO.66VCAP/DMSO.67VCAP/10µM.70VCAP/10µM.71
A1BG7.2272746.9883296.7212796.704306
A1BG-AS15.2026155.0244145.8839565.988958
A1CF4.3291564.2775634.4036734.353440
A2M4.9845164.6517675.0147594.920298
A2M-AS14.8376844.8624675.2340535.087255
A2ML13.9365723.9691013.9803133.948804
 
In our paper (4) several oncogenes were described that drive prostate cancer. It is interesting to look if the adminstered drug has an effect, more particularly a downregulation effect, on these genes:

In our paper (4) several oncogenes were described that drive prostate cancer. It is interesting to look if the adminstered drug has an effect, more particularly a downregulation effect, on these genes:

In [210]:
 
goi1 <- c("MYC", "ERG", "AR")
GSE56352.10LNCAP[goi1,]
LNCAP/DMSO.72LNCAP/DMSO.73LNCAP/10µM.76LNCAP/10µM.77
MYC10.28720610.422859 8.131520 8.107841
ERG 7.761845 7.621221 6.299204 6.261191
AR11.06675411.34861911.33670411.089532
In [206]:
 
goi <- c("MYC", "ERG", "AR")
GSE56352.10VCAP[goi,]
VCAP/DMSO.66VCAP/DMSO.67VCAP/10µM.70VCAP/10µM.71
MYC10.74546110.7302457.964969 7.945106
ERG 3.788290 3.7433813.773830 3.742799
AR 8.924745 9.0449289.391656 9.429651
 
In both cell types it is clear that MYC is downregulated as stated in the paper. 

In both cell types it is clear that MYC is downregulated as stated in the paper.

 
By creating a scatterplot we can compare all the samples against each other. 

By creating a scatterplot we can compare all the samples against each other.

In [211]:
 
plot(data.frame(GSE56352.10LNCAP), cex=0.1, col=50)
In [174]:
 
plot(data.frame(GSE56352.10VCAP), cex=0.1, col=50)
 
This clearly shows more similar expression between replicates than between the drug samples and the untreated samples.

This clearly shows more similar expression between replicates than between the drug samples and the untreated samples.

 
Here we start with the differential expression analysis.
​
After loading the limma library, the first step is to define the experimental conditions (in this case: untreated samples (DMSO) and treated samples (10µM I-BET762)).
​
​

Here we start with the differential expression analysis.

After loading the limma library, the first step is to define the experimental conditions (in this case: untreated samples (DMSO) and treated samples (10µM I-BET762)).

In [175]:
 
library(limma)
In [212]:
 
treatLNCAP10µM <- factor(c('untreated', 'untreated', '10µM', '10µM'),
                  levels=c('untreated', '10µM'))
treatLNCAP10µM
  1. untreated
  2. untreated
  3. 10µM
  4. 10µM
In [176]:
 
treatVCAP10µM <- factor(c('untreated', 'untreated', '10µM', '10µM'),
                levels=c('untreated', '10µM'))
treatVCAP10µM
  1. untreated
  2. untreated
  3. 10µM
  4. 10µM
 
Limma uses a linear model in the background, to this end we'll build a model matrix:

Limma uses a linear model in the background, to this end we'll build a model matrix:

In [213]:
 
design1 <- model.matrix(~treatLNCAP10µM)
design1
(Intercept)treatLNCAP10µM10µM
110
210
311
411
In [177]:
 
design <- model.matrix(~treatVCAP10µM)
design
(Intercept)treatVCAP10µM10µM
110
210
311
411
 
​
The lmFit function fits multiple linear models by weighted or generalized least squares. It accepts data from a experiment involving a series of microarrays with the same set of probes. A linear model is fitted to the expression data for each probe. 
The eBayes function is used to rank genes in order of evidence for differential expression. Given a microarray linear model fit, it computes moderated t-statistics, moderated F-statistic, and log-odds of differential expression by empirical Bayes moderation of the standard errors towards a common value.
​
Now we will run Limma. We'll use the subselected count tables (GSE56352.10LNCAP and GSE56352.10VCAP) for this (because we're only looking at the DMSO and 10µM I-BET762 samples):

The lmFit function fits multiple linear models by weighted or generalized least squares. It accepts data from a experiment involving a series of microarrays with the same set of probes. A linear model is fitted to the expression data for each probe. The eBayes function is used to rank genes in order of evidence for differential expression. Given a microarray linear model fit, it computes moderated t-statistics, moderated F-statistic, and log-odds of differential expression by empirical Bayes moderation of the standard errors towards a common value.

Now we will run Limma. We'll use the subselected count tables (GSE56352.10LNCAP and GSE56352.10VCAP) for this (because we're only looking at the DMSO and 10µM I-BET762 samples):

In [214]:
 
fit1 <- eBayes(lmFit(GSE56352.10LNCAP, design1))
In [178]:
 
fit <- eBayes(lmFit(GSE56352.10VCAP, design))
 
We made an MA plot for DE analysis. It show the log ratio change of expression (M) vs the average expression (A).It shows the spread of the differential expression. 

We made an MA plot for DE analysis. It show the log ratio change of expression (M) vs the average expression (A).It shows the spread of the differential expression.

In [215]:
 
limma::plotMA(fit1, 2)
abline(0,0,col='blue')
In [179]:
 
limma::plotMA(fit, 2)
abline(0,0,col='blue')
 
We extracted the top DE genes using the topTable function:

We extracted the top DE genes using the topTable function:

In [216]:
 
topTable(fit1, coef=2)
logFCAveExprtP.Valueadj.P.ValB
CDKN1C 5.951392 8.534394 74.88372 3.045659e-126.209794e-0817.99739
MIR7-3HG 4.252236 5.827559 58.51335 2.004716e-111.903414e-0716.68782
HS6ST2-4.105171 6.024520 -53.58129 3.926446e-111.903414e-0716.16298
ATP8B4-4.049863 5.612683 -50.71813 5.970562e-111.903414e-0715.82173
PEG10 3.549760 11.135491 49.84070 6.820967e-111.903414e-0715.71115
CXCL11-3.865550 5.257238 -48.20768 8.794762e-111.903414e-0715.49730
ACSL5-3.841903 6.689750 -46.13768 1.229154e-101.903414e-0715.21020
HGD-3.443180 6.071125 -45.93885 1.270312e-101.903414e-0715.18163
GFPT2 4.619843 7.696366 45.89256 1.280117e-101.903414e-0715.17496
CXCL10-3.151338 6.209461 -45.24548 1.426521e-101.903414e-0715.08058
In [180]:
 
topTable(fit, coef=2)
logFCAveExprtP.Valueadj.P.ValB
ST6GALNAC1-3.403696 6.217558 -68.14853 2.282161e-101.340869e-0614.26600
UHRF1-4.577204 7.010122 -65.18793 3.027892e-101.340869e-0614.07147
CDC6-3.449035 7.107988 -65.07570 3.061288e-101.340869e-0614.06378
DTL-3.942545 6.448032 -64.59455 3.209372e-101.340869e-0614.03056
RRM2-3.596010 9.035376 -64.34873 3.288217e-101.340869e-0614.01341
E2F8-3.506469 5.463663 -61.16143 4.543438e-101.447166e-0613.78020
ZNF367-3.923761 6.447595 -60.30808 4.968444e-101.447166e-0613.71414
ADAMTS1-3.001227 6.340579 -58.23891 6.204542e-101.581305e-0613.54714
MCM5-2.959756 7.201524 -56.46487 7.554362e-101.711399e-0613.39581
MYC-2.782816 9.346445 -55.35856 8.567905e-101.717149e-0613.29739
 
It is important to correct for multiple testing.
- fit is the result from limma
- fit[,2] selects the second column, i.e. the effect of doxorubicin vs untreated (remember, column 1 is the intercept)
- fit[,2]$p.value is the associated p-value
- p.adjust is a standard R function, BH stands for Benjamini Hochberg
- < 0.05 selects all genes for which there is less than 5% chance that it is a false discovery.
- select contains a list of TRUE/FALSE values (as long as the list of genes)

It is important to correct for multiple testing.

  • fit is the result from limma
  • fit[,2] selects the second column, i.e. the effect of doxorubicin vs untreated (remember, column 1 is the intercept)
  • fit[,2]$p.value is the associated p-value
  • p.adjust is a standard R function, BH stands for Benjamini Hochberg
  • < 0.05 selects all genes for which there is less than 5% chance that it is a false discovery.
  • select contains a list of TRUE/FALSE values (as long as the list of genes)
In [217]:
 
select1 = p.adjust(fit1[,2]$p.value, method="BH") < 0.05
In [181]:
 
select = p.adjust(fit[,2]$p.value, method="BH") < 0.05
In [218]:
 
select1[20:30]
  1. FALSE
  2. TRUE
  3. FALSE
  4. FALSE
  5. FALSE
  6. FALSE
  7. TRUE
  8. TRUE
  9. FALSE
  10. TRUE
  11. TRUE
In [182]:
 
select[20:30]
  1. TRUE
  2. TRUE
  3. FALSE
  4. FALSE
  5. FALSE
  6. FALSE
  7. FALSE
  8. TRUE
  9. FALSE
  10. TRUE
  11. FALSE
 
In the summaries the number of significant genes is showed.
​
In LNCAP cells there are 8140 significant genes.
​
In VCAP cells there are 7973 significant genes.
​

In the summaries the number of significant genes is showed.

In LNCAP cells there are 8140 significant genes.

In VCAP cells there are 7973 significant genes.

In [219]:
 
summary(select1)
   Mode   FALSE    TRUE    NA's 
logical   12249    8140       0 
In [183]:
 
summary(select)
​
   Mode   FALSE    TRUE    NA's 
logical   12416    7973       0 
 
Now we have generated a clear table as output data. 
We chose a high number (100000), which is much higher than the number of genes, to make sure to include al the genes.

Now we have generated a clear table as output data. We chose a high number (100000), which is much higher than the number of genes, to make sure to include al the genes.

In [220]:
 
top1 = topTable(fit1, coef=2, number=100000)
In [184]:
 
top = topTable(fit, coef=2, number=100000)
In [221]:
 
write.table(top1, "GSE56352.10LNCAP.tophits.tsv", sep="\t", quote=FALSE, col.names=NA)
In [185]:
 
write.table(top, "GSE56352.10VCAP.tophits.tsv", sep="\t", quote=FALSE, col.names=NA)
In [222]:
 
head(top1)
logFCAveExprtP.Valueadj.P.ValB
CDKN1C 5.951392 8.534394 74.88372 3.045659e-126.209794e-0817.99739
MIR7-3HG 4.252236 5.827559 58.51335 2.004716e-111.903414e-0716.68782
HS6ST2-4.105171 6.024520 -53.58129 3.926446e-111.903414e-0716.16298
ATP8B4-4.049863 5.612683 -50.71813 5.970562e-111.903414e-0715.82173
PEG10 3.549760 11.135491 49.84070 6.820967e-111.903414e-0715.71115
CXCL11-3.865550 5.257238 -48.20768 8.794762e-111.903414e-0715.49730
In [186]:
 
head(top)
logFCAveExprtP.Valueadj.P.ValB
ST6GALNAC1-3.403696 6.217558 -68.14853 2.282161e-101.340869e-0614.26600
UHRF1-4.577204 7.010122 -65.18793 3.027892e-101.340869e-0614.07147
CDC6-3.449035 7.107988 -65.07570 3.061288e-101.340869e-0614.06378
DTL-3.942545 6.448032 -64.59455 3.209372e-101.340869e-0614.03056
RRM2-3.596010 9.035376 -64.34873 3.288217e-101.340869e-0614.01341
E2F8-3.506469 5.463663 -61.16143 4.543438e-101.447166e-0613.78020
 
The genes in the GSE56352.10LNCAP.tophits.tsv and GSE56352.10VCAP.tophits.tsv file were placed in descending order to the log2FoldChange value in a rnk-file. These genes were analysed in GSEA with the tool GseaPreRanked. One of the most enriched gene sets significant for our analysis was the DNA replication gene set for the LNCAP cells and the cell cycle gene set for VCAP cells. We chose to analyse which genes are downregulated due to the adminstration of I-BET762. 20 positive enriched genes of the LNCAP cells and 44 positive enriched genes of the VCAP cells were used for further motif discovery in iRegulon, the negative enriched genes were excluded. The POLD3 transcription factor had the lowest enrichment score (-0.7411) for LNCAPs and the SFN transcription factor had the lowest enrichment factor (-0.7126) for VCAPs.
In both cases the E2F1 transcription factor had the highest number of targets and tracks: respectively 19 and 15 for the LNCAPs and 35 and 39 for the VCAPs. The interaction with the target genes is visualized the fifth figure. E2F1 plays a critical role in cell-cycle progression and the induction of apoptosis in response to DNA damage. It has an important role in a wide variety of cancers: it induces invasion and metastasis by activating growth receptor signaling pathways, which in turn promote an antiapoptotic tumor environment (6,7). It affects expression of genes like MYC and EZH2 that drive cellular proliferation and inhibits genes that suppress tumor development, respectively. (8,9)
We also performed a functional analysis in GOrilla. For LNCAP DNA binding and protein binding are very significant functions and for the VCAP cells the helicase binding activity and the protein binding are significant. These functions are also described in our article and are related to the development of prostate cancer.
​
​
​
Enrichment plot LNCAP:
<img width="35%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/enrichment%20lncap.png">
​
Enrichment plot VCAP:
<img width="35%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/enrichment%20vcap.png">
​
Transcription factors, their targets and tracks for LNCAP:
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/LNCAP%20genes.png">
​
Transcription factors, their targets and tracks for VCAP:
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/VCAP%20genes.png">
​
Network of E2F1 transcription factor and target genes for LCAP and VCAP:
<img width="35%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/LNCAP.png">
​
Functional analysis for LNCAP with GOrilla: 
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/LNCAP%20gorilla.png">
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/LNCAP%20gorilla%20genes.png">
​
Functional analysis for VCAP with GOrilla:
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/VCAP%20gorilla.png">
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/VCAP%20gorilla%20genes.png"> 
​
​
​
​

The genes in the GSE56352.10LNCAP.tophits.tsv and GSE56352.10VCAP.tophits.tsv file were placed in descending order to the log2FoldChange value in a rnk-file. These genes were analysed in GSEA with the tool GseaPreRanked. One of the most enriched gene sets significant for our analysis was the DNA replication gene set for the LNCAP cells and the cell cycle gene set for VCAP cells. We chose to analyse which genes are downregulated due to the adminstration of I-BET762. 20 positive enriched genes of the LNCAP cells and 44 positive enriched genes of the VCAP cells were used for further motif discovery in iRegulon, the negative enriched genes were excluded. The POLD3 transcription factor had the lowest enrichment score (-0.7411) for LNCAPs and the SFN transcription factor had the lowest enrichment factor (-0.7126) for VCAPs. In both cases the E2F1 transcription factor had the highest number of targets and tracks: respectively 19 and 15 for the LNCAPs and 35 and 39 for the VCAPs. The interaction with the target genes is visualized the fifth figure. E2F1 plays a critical role in cell-cycle progression and the induction of apoptosis in response to DNA damage. It has an important role in a wide variety of cancers: it induces invasion and metastasis by activating growth receptor signaling pathways, which in turn promote an antiapoptotic tumor environment (6,7). It affects expression of genes like MYC and EZH2 that drive cellular proliferation and inhibits genes that suppress tumor development, respectively. (8,9) We also performed a functional analysis in GOrilla. For LNCAP DNA binding and protein binding are very significant functions and for the VCAP cells the helicase binding activity and the protein binding are significant. These functions are also described in our article and are related to the development of prostate cancer.

Enrichment plot LNCAP:

Enrichment plot VCAP:

Transcription factors, their targets and tracks for LNCAP:

Transcription factors, their targets and tracks for VCAP:

Network of E2F1 transcription factor and target genes for LCAP and VCAP:

Functional analysis for LNCAP with GOrilla:

Functional analysis for VCAP with GOrilla:

 
___________________________________________________________________________________________________________________

 
# RNASeq

RNASeq

 
In this part we examined the difference in gene expression between normal cell lines and prostate cancer lines. A RNA Seq dataset from Gene Expression Omnibus was used (GSE29155). 4 sra files were downloaded, 2 (SRR202054.sra and SRR202055.sra) from a prostate cancer cell line (LNCaP) and 2 (SRR202061.sra and SRR202062.sra) from a normal cell line (PrEC). These sra files were converted to fastq files. Then the quality of the fastq files were checked with FASTQC. After this the fastq files were mapped to a reference genome and converted to sam files. With samtools the sam files were converted to bam files. The reads per gene were counted with FeatureCounts. 

In this part we examined the difference in gene expression between normal cell lines and prostate cancer lines. A RNA Seq dataset from Gene Expression Omnibus was used (GSE29155). 4 sra files were downloaded, 2 (SRR202054.sra and SRR202055.sra) from a prostate cancer cell line (LNCaP) and 2 (SRR202061.sra and SRR202062.sra) from a normal cell line (PrEC). These sra files were converted to fastq files. Then the quality of the fastq files were checked with FASTQC. After this the fastq files were mapped to a reference genome and converted to sam files. With samtools the sam files were converted to bam files. The reads per gene were counted with FeatureCounts.

 
First, the downloaded sra files were converted with an sratool-kit to fastq files in the commandprompt.
​
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/prompt.png">

First, the downloaded sra files were converted with an sratool-kit to fastq files in the commandprompt.

In [ ]:
 
head /mnt/storage/r0375030/SRR202062.fastq
 
Then, we've aligned the fastq files to the genome with STAR.

Then, we've aligned the fastq files to the genome with STAR.

In [ ]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
--runThreadN 2 \
--readFilesIn /home/luna.kuleuven.be/r0375030/data/SRR202062.fastq \
--outFileNamePrefix SRR202062.
 
We genertated a sam-file: the output file is now in SRR202062.Aligned.out.sam. 
​
The SAM file is unsorted and uncompressed. To be able to quickly access the data we sorted the SAM file and converted it to a BAM file, which is a compressed (much smaller) and binary version of a SAM file. 
We used samtools to do this. The first step sorts and outputs bam:

We genertated a sam-file: the output file is now in SRR202062.Aligned.out.sam.

The SAM file is unsorted and uncompressed. To be able to quickly access the data we sorted the SAM file and converted it to a BAM file, which is a compressed (much smaller) and binary version of a SAM file. We used samtools to do this. The first step sorts and outputs bam:

In [ ]:
 
samtools sort -o SRR202062.bam SRR202062.Aligned.out.sam
 
Visualisation of bam file alignment in IGV
​
<img width="75%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/IGV%20pollie.png">

Visualisation of bam file alignment in IGV

 
Now we've converted the reads to gene counts. This was done with a file containing all chromosomes.

Now we've converted the reads to gene counts. This was done with a file containing all chromosomes.

In [ ]:
 
featureCounts \
    -Q 10 \
    -g gene_name \
    -a /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf \
    -o allgenesgroepswerk.counts \
    SRR202054.bam SRR202055.bam SRR202061.bam SRR202062.bam
 
Because some columns only gave information on the gene structure and not on the actual counts we cut them out. 

Because some columns only gave information on the gene structure and not on the actual counts we cut them out.

In [ ]:
 
cut -f-6 allgenesgroepswerk.counts > all.genesgroepswerk.counts.tsv
 
Differential expression analysis of all.genesgroepswerk.counts.tsv file with DESeq2 in R
​
Rscript for the differential expression:

Differential expression analysis of all.genesgroepswerk.counts.tsv file with DESeq2 in R

Rscript for the differential expression:

In [ ]:
 
> library("DESeq2")
> library(scales)
> options(repr.plot.width=4, repr.plot.height=3)
> matrixFile = path.expand("C:\\Users\\hendr_000\\Documents\\data\\RNAseq\\all.genegroepswerk.counts.tsv ")
> countData <- as.matrix(read.csv(matrixFile, sep="\t", row.names="Geneid"))
> head(countData)
> colnames(countData) <- c("Cancer 1", "Cancer 2", "Normal 1", "Normal 2")
> head(countData)
> condition <- factor(c("Cancer", "Cancer", "Normal", "Normal"))
> print(condition)
> colData <- data.frame(sampleName = colnames(countData), condition = condition)
> colData
> dds <- DESeqDataSetFromMatrix(countData = countData, colData = colData, design = ~ condition)
> colnames(dds) <- colnames(countData)
> dds
> dds$condition
> dds <- DESeq(dds)
> barplot (sizeFactors(dds), col=4)
> options(repr.plot.width=5, repr.plot.height=5)
> rld <- rlogTransformation(dds, blind=TRUE)
> options(repr.plot.width=5, repr.plot.height=5)
> plot(data.frame(assay(rld)), cex=0.1, col=alpha("blue", 0.4))
> plotPCA(rld, intgroup=c("condition"))
> options(repr.plot.width=5, repr.plot.height=4)
> plotMA(dds,ylim=c(-3,3))
> res <- results(dds)
> res <- res[order(res$padj),]
> head(res)
> res.sign <- res[(!is.na(res$padj)) & (res$padj < 0.05),]
> dim(res.sign)
> write.table(res, "deseqgroepswerk.results.tsv", sep="\t", col.names=NA, quote=FALSE)
 
The RNA Seq data analysis was evaluated with DESeq2 in R (see R script). The conditions Cancer vs. Normal were defined. The factor levels of the different count files were calculated and visualized in a barplot. The log-transformed and normalized counts were plotted in a scatterplot and in a PCA plot. In the PCA plot there is a difference of 100 percent between Cancer and Normal on the x-axis. In both plots the variance between the 2 conditions is greater than the within variance between the two datasets of the same condition. 
​
Barplot:
<img width="35%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/staafgrafiek.png">
​
Scatterplot:
<img width="35%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/scatterplot.png">
​
PCA plot:
<img width="70%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/IGV.png">

The RNA Seq data analysis was evaluated with DESeq2 in R (see R script). The conditions Cancer vs. Normal were defined. The factor levels of the different count files were calculated and visualized in a barplot. The log-transformed and normalized counts were plotted in a scatterplot and in a PCA plot. In the PCA plot there is a difference of 100 percent between Cancer and Normal on the x-axis. In both plots the variance between the 2 conditions is greater than the within variance between the two datasets of the same condition.

Barplot:

Scatterplot:

PCA plot:

 
After this a MA plot was plotted, the logarithm of the foldchange in expression in Cancer versus Normal (y-axis) was plotted against the average of the counts normalized by size factor (x-axis). Each dot represents a transcript, the transcripts that are differential expressed (p < 0.05) are shown in red.   
​
MA plot
<img width="35%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/MA%20plot.png">

After this a MA plot was plotted, the logarithm of the foldchange in expression in Cancer versus Normal (y-axis) was plotted against the average of the counts normalized by size factor (x-axis). Each dot represents a transcript, the transcripts that are differential expressed (p < 0.05) are shown in red.

MA plot

 
Then the genes were placed in descending order to the log2FoldChange value in a rnk file (14024 genes). These genes were analysed in GSEA with the tool GseaPreRanked. The most enriched gene set was the cytokine receptor interaction gene set. 50 positive enriched genes were used for further motif discovery in iRegulon, the negative enriched genes were excluded. The E2F1 transcription factor had the highest enrichment score (6.057). The NF-kB1 transcription factor had the highest number of targets (40) and the highest number of tracks (22). The interaction with the target genes is visualized in the network of NF-kB1 transcription factore and target genes. NF-kB1 transcription factor is constitutively activated in a wide variety of human tumours (10,11). Which affects expression of genes like cyclin D1, c-myc and Bcl-2 that drive cellular proliferation or confer resistance to apoptotic signals. NF-κB-mediated expression of genes like IL-8, VEGF, MMP9, vimentin, uPA and uPA receptor, further contribute to the development of aggressive prostate carcinoma (12,13).
​
Enrichment plot:
<img width="35%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/enrichment%20plot.png">
​
Enriched upregulated pathways:
<img width="75%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/enrichment%20pollie.png">
​
Trancription factors, their targets and tracks:
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/Pollie%20genes.png">
​
Network of NFKB1 transcription factor and target genes:
<img width="35%" src="https://jupyter.gbiomed.kuleuven.be/user/r0386991/files/Afbeeldingen%20groepswerk/TF%20and%20target%20genes.png">

Then the genes were placed in descending order to the log2FoldChange value in a rnk file (14024 genes). These genes were analysed in GSEA with the tool GseaPreRanked. The most enriched gene set was the cytokine receptor interaction gene set. 50 positive enriched genes were used for further motif discovery in iRegulon, the negative enriched genes were excluded. The E2F1 transcription factor had the highest enrichment score (6.057). The NF-kB1 transcription factor had the highest number of targets (40) and the highest number of tracks (22). The interaction with the target genes is visualized in the network of NF-kB1 transcription factore and target genes. NF-kB1 transcription factor is constitutively activated in a wide variety of human tumours (10,11). Which affects expression of genes like cyclin D1, c-myc and Bcl-2 that drive cellular proliferation or confer resistance to apoptotic signals. NF-κB-mediated expression of genes like IL-8, VEGF, MMP9, vimentin, uPA and uPA receptor, further contribute to the development of aggressive prostate carcinoma (12,13).

Enrichment plot:

Enriched upregulated pathways:

Trancription factors, their targets and tracks:

Network of NFKB1 transcription factor and target genes:

 
We concluded that our analysis corresponds with previous cancer research. Both methods were efficient in the detection of upregulated or downregulated oncogenes and pathways related to cancer. We found in both analyses that the E2F1 transcription factor is involved in the development of cancer and is downregulated by the anti-cancer drug I-BET762, but this transcription factor is not specific for prostate cancer. As we see that E2F1 is involved in the development of prostate cancer and as the drug I-BET762 has downregulated the E2F1 transcription factor, we suggest that this transcription factor is a potential target for the future treatment of prostate cancer.  

We concluded that our analysis corresponds with previous cancer research. Both methods were efficient in the detection of upregulated or downregulated oncogenes and pathways related to cancer. We found in both analyses that the E2F1 transcription factor is involved in the development of cancer and is downregulated by the anti-cancer drug I-BET762, but this transcription factor is not specific for prostate cancer. As we see that E2F1 is involved in the development of prostate cancer and as the drug I-BET762 has downregulated the E2F1 transcription factor, we suggest that this transcription factor is a potential target for the future treatment of prostate cancer.

 
References:
​
1: Grönberg H. Prostate cancer epidemiology. Lancet. 2003;361(9360):859-64.
​
2: https://www.cancer.org/cancer/prostate-cancer/about/key-statistics.html 
​
3: Kim JH, Dhanasekaran SM, Prensner JR, Cao X, Robinson D, Kalyana-Sundaram S, et al. Deep sequencing reveals distinct patterns of DNA methylation in prostate cancer. Genome Res. 2011;21(7):1028-41. 
​
4:  Wyce A, Degenhardt Y, Bai Y, Le B, Korenchuk S, Crouthame MC, et al. Inhibition of BET bromodomain proteins as a therapeutic approach in prostate cancer. Oncotarget. 2013;4(12):2419-29.
​
5: Irizarry RA, Bolstad BM, Collin F, Cope LM, Hobbs B, Speed TP. Summaries of Affymetrix GeneChip probe level data. Nucleic Acids Res. 2003;31(4):e15.
​
6: Engelmann D, Pützer BM. The dark side of E2F1: in transit beyond apoptosis. Cancer Res. 2012;72(3):571-5.
​
7: Davis JN, Wojno KJ, Daignault S, Hofer MD, Kuefer R, Rubin MA, et al. Elevated E2F1 inhibits transcription of the androgen receptor in metastatic hormone-resistant prostate cancer. Cancer Res. 2006;66(24):11897-906.
​
8: https://en.wikipedia.org/wiki/E2F1 
​
9: https://en.wikipedia.org/wiki/EZH2
​
10: Dolcet X, Llobet D, Pallares J, Matias-Guiu X. NF-kB in development and progression of human cancer. Virchows Arch. 2005 May;446(5):475-82. Epub 2005 Apr 27.
​
11: Nair A, Venkatraman M, Maliekal TT, Nair B, Karunagaran D. NF- kappaB is constitutively activated in highgrade squamous intraepithelial lesions and squamous cell carcinomas of the human uterine cervix. Oncogene. 2003 Jan 9;22(1):50-8.
​
12: Tripathi V, Popescu NC, Zimonjic DB. DLC1 suppresses NF-κB activity in prostate cancer cells due to its stabilizing effect on adherens junctions. Springerplus. 2014 Jan 14;3:27. doi: 10.1186/2193-1801-3-27. eCollection 2014.
​
13: Karin M, Cao Y, Greten FR, Li ZW. NF-kappaB in cancer: from innocent bystander to major culprit. Nat Rev Cancer. 2002;2:301–310.
​
​
​

References:

1: Grönberg H. Prostate cancer epidemiology. Lancet. 2003;361(9360):859-64.

2: https://www.cancer.org/cancer/prostate-cancer/about/key-statistics.html

3: Kim JH, Dhanasekaran SM, Prensner JR, Cao X, Robinson D, Kalyana-Sundaram S, et al. Deep sequencing reveals distinct patterns of DNA methylation in prostate cancer. Genome Res. 2011;21(7):1028-41.

4: Wyce A, Degenhardt Y, Bai Y, Le B, Korenchuk S, Crouthame MC, et al. Inhibition of BET bromodomain proteins as a therapeutic approach in prostate cancer. Oncotarget. 2013;4(12):2419-29.

5: Irizarry RA, Bolstad BM, Collin F, Cope LM, Hobbs B, Speed TP. Summaries of Affymetrix GeneChip probe level data. Nucleic Acids Res. 2003;31(4):e15.

6: Engelmann D, Pützer BM. The dark side of E2F1: in transit beyond apoptosis. Cancer Res. 2012;72(3):571-5.

7: Davis JN, Wojno KJ, Daignault S, Hofer MD, Kuefer R, Rubin MA, et al. Elevated E2F1 inhibits transcription of the androgen receptor in metastatic hormone-resistant prostate cancer. Cancer Res. 2006;66(24):11897-906.

8: https://en.wikipedia.org/wiki/E2F1

9: https://en.wikipedia.org/wiki/EZH2

10: Dolcet X, Llobet D, Pallares J, Matias-Guiu X. NF-kB in development and progression of human cancer. Virchows Arch. 2005 May;446(5):475-82. Epub 2005 Apr 27.

11: Nair A, Venkatraman M, Maliekal TT, Nair B, Karunagaran D. NF- kappaB is constitutively activated in highgrade squamous intraepithelial lesions and squamous cell carcinomas of the human uterine cervix. Oncogene. 2003 Jan 9;22(1):50-8.

12: Tripathi V, Popescu NC, Zimonjic DB. DLC1 suppresses NF-κB activity in prostate cancer cells due to its stabilizing effect on adherens junctions. Springerplus. 2014 Jan 14;3:27. doi: 10.1186/2193-1801-3-27. eCollection 2014.

13: Karin M, Cao Y, Greten FR, Li ZW. NF-kappaB in cancer: from innocent bystander to major culprit. Nat Rev Cancer. 2002;2:301–310.