**Bioinformatics project academic year 2016-17 2nd Master Biomedical Sciences**
​
Helena Crijns (r0309026)
​
Marianna Decet (r0611267)
​
Carmen Escalona (r0610932)
​
Paper: Beane et al., 2011. https://www.ncbi.nlm.nih.gov/pubmed/?term=beane+characterizing+the+impact+of+smoking+and+lung+cancer
​
Data set: 
​
-RNAseq https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE29006
​
-microarray https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE28835
​
The epithelial cells of the respiratory tract are damaged by cigarette smoking. By using microarray technology, alterations in smoking-related gene and miRNA expression have been found in the cytologically normal airway epithelium. In the epithelia of the nose and mouth of smokers, similar gene expression alterations have also been detected. Moreover, it has been shown that the airway transcriptome is significantly altered by lung cancer. 
Beane et al. used RNA-seq, microarrays and qRT-PCR to investigate the changes related to smoking and lung cancer in both the airway transcriptome and gene expression. The aim of their project was to compare the results obtained by DNA microarray and by RNA-Seq in order to detect the alterations in the gene transcription and expression that can be linked to lung cancer and cigarette smoke-induced damage. Furthermore, the authors compared two different approaches for RNA sequencing: a prototype NuGEN Ovation protocol and a standard Illumina mRNA-Seq protocol. 
In our case we chose to work with the samples generated from the Illumina protocol because, despite the NuGEN protocol is able to capture both polyadenylated and non-adenylated RNA, the Illumina protocol has a higher accuracy in quantifying gene expression levels. With the generated data on differential expression we performed functional analysis.
Furthermore, we analyzed the microarray data obtained by hybridization of RNA, isolated from bronchial airway epithelium from smokers with and without cancer, to Affymetrix HGU133A 2.0 microarrays. We compared these results to those obtained by RNA-sequencing. 
​
Legenda:
​
NS= never smoker
S= healthy smoker
NC= smoker with benign disease
C= smoker with cancer
​
Location of ipynb files: /mnt/storage/r0611267/jupyternotebooks/PROJECT 

Bioinformatics project academic year 2016-17 2nd Master Biomedical Sciences

Helena Crijns (r0309026)

Marianna Decet (r0611267)

Carmen Escalona (r0610932)

Paper: Beane et al., 2011. https://www.ncbi.nlm.nih.gov/pubmed/?term=beane+characterizing+the+impact+of+smoking+and+lung+cancer

Data set:

-RNAseq https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE29006

-microarray https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE28835

The epithelial cells of the respiratory tract are damaged by cigarette smoking. By using microarray technology, alterations in smoking-related gene and miRNA expression have been found in the cytologically normal airway epithelium. In the epithelia of the nose and mouth of smokers, similar gene expression alterations have also been detected. Moreover, it has been shown that the airway transcriptome is significantly altered by lung cancer. Beane et al. used RNA-seq, microarrays and qRT-PCR to investigate the changes related to smoking and lung cancer in both the airway transcriptome and gene expression. The aim of their project was to compare the results obtained by DNA microarray and by RNA-Seq in order to detect the alterations in the gene transcription and expression that can be linked to lung cancer and cigarette smoke-induced damage. Furthermore, the authors compared two different approaches for RNA sequencing: a prototype NuGEN Ovation protocol and a standard Illumina mRNA-Seq protocol. In our case we chose to work with the samples generated from the Illumina protocol because, despite the NuGEN protocol is able to capture both polyadenylated and non-adenylated RNA, the Illumina protocol has a higher accuracy in quantifying gene expression levels. With the generated data on differential expression we performed functional analysis. Furthermore, we analyzed the microarray data obtained by hybridization of RNA, isolated from bronchial airway epithelium from smokers with and without cancer, to Affymetrix HGU133A 2.0 microarrays. We compared these results to those obtained by RNA-sequencing.

Legenda:

NS= never smoker S= healthy smoker NC= smoker with benign disease C= smoker with cancer

Location of ipynb files: /mnt/storage/r0611267/jupyternotebooks/PROJECT

In [8]:
 
#Create working directory and move into it
mkdir -p /mnt/storage/r0611267/work
cd /mnt/storage/r0611267/work
pwd
/mnt/storage/r0611267/work
In [9]:
 
#Download files for RNAseq analysis
fastq-dump --split-files SRR192333
Read 28216213 spots for SRR192333
Written 28216213 spots for SRR192333
In [10]:
 
fastq-dump --split-files SRR192334
Read 17242781 spots for SRR192334
Written 17242781 spots for SRR192334
In [11]:
 
fastq-dump --split-files SRR192335
Read 22255836 spots for SRR192335
Written 22255836 spots for SRR192335
In [12]:
 
fastq-dump --split-files SRR192336
Read 20930670 spots for SRR192336
Written 20930670 spots for SRR192336
In [16]:
 
#Perform quality control of the fastq files using the FASTQC tool. 
#We first renamed the files for convenience
/usr/local/bin/FastQC/fastqc -o . /mnt/storage/r0611267/work/NS1.fastq
Started analysis of NS1.fastq
Approx 5% complete for NS1.fastq
Approx 10% complete for NS1.fastq
Approx 15% complete for NS1.fastq
Approx 20% complete for NS1.fastq
Approx 25% complete for NS1.fastq
Approx 30% complete for NS1.fastq
Approx 35% complete for NS1.fastq
Approx 40% complete for NS1.fastq
Approx 45% complete for NS1.fastq
Approx 50% complete for NS1.fastq
Approx 55% complete for NS1.fastq
Approx 60% complete for NS1.fastq
Approx 65% complete for NS1.fastq
Approx 70% complete for NS1.fastq
Approx 75% complete for NS1.fastq
Approx 80% complete for NS1.fastq
Approx 85% complete for NS1.fastq
Approx 90% complete for NS1.fastq
Approx 95% complete for NS1.fastq
Analysis complete for NS1.fastq
 
The general quality of the sample is good. However the tool detected some abnormalities in the GC content of each sample (here we show as an example the report for the NS1 sample, Fig. 1). Indeed the distribution of the GC counts per read is not perfectly following a Gaussian distribution but it shows overrepresented sequences probably belonging to the adapters. Ideally the files require a trimming step that however we do not perform because it is beyond the scope of this project. 
​
<img width="50%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/GC_content_NS1.JPG"> 
​

The general quality of the sample is good. However the tool detected some abnormalities in the GC content of each sample (here we show as an example the report for the NS1 sample, Fig. 1). Indeed the distribution of the GC counts per read is not perfectly following a Gaussian distribution but it shows overrepresented sequences probably belonging to the adapters. Ideally the files require a trimming step that however we do not perform because it is beyond the scope of this project.

In [12]:
 
/usr/local/bin/FastQC/fastqc -o /mnt/storage/r0611267/work /mnt/storage/r0611267/work/S1.fastq
Started analysis of S1.fastq
Approx 5% complete for S1.fastq
Approx 10% complete for S1.fastq
Approx 15% complete for S1.fastq
Approx 20% complete for S1.fastq
Approx 25% complete for S1.fastq
Approx 30% complete for S1.fastq
Approx 35% complete for S1.fastq
Approx 40% complete for S1.fastq
Approx 45% complete for S1.fastq
Approx 50% complete for S1.fastq
Approx 55% complete for S1.fastq
Approx 60% complete for S1.fastq
Approx 65% complete for S1.fastq
Approx 70% complete for S1.fastq
Approx 75% complete for S1.fastq
Approx 80% complete for S1.fastq
Approx 85% complete for S1.fastq
Approx 90% complete for S1.fastq
Approx 95% complete for S1.fastq
Analysis complete for S1.fastq
In [13]:
 
/usr/local/bin/FastQC/fastqc -o /mnt/storage/r0611267/work /mnt/storage/r0611267/work/NC1.fastq
Started analysis of NC1.fastq
Approx 5% complete for NC1.fastq
Approx 10% complete for NC1.fastq
Approx 15% complete for NC1.fastq
Approx 20% complete for NC1.fastq
Approx 25% complete for NC1.fastq
Approx 30% complete for NC1.fastq
Approx 35% complete for NC1.fastq
Approx 40% complete for NC1.fastq
Approx 45% complete for NC1.fastq
Approx 50% complete for NC1.fastq
Approx 55% complete for NC1.fastq
Approx 60% complete for NC1.fastq
Approx 65% complete for NC1.fastq
Approx 70% complete for NC1.fastq
Approx 75% complete for NC1.fastq
Approx 80% complete for NC1.fastq
Approx 85% complete for NC1.fastq
Approx 90% complete for NC1.fastq
Approx 95% complete for NC1.fastq
Analysis complete for NC1.fastq
In [14]:
 
/usr/local/bin/FastQC/fastqc -o /mnt/storage/r0611267/work /mnt/storage/r0611267/work/C1.fastq
Started analysis of C1.fastq
Approx 5% complete for C1.fastq
Approx 10% complete for C1.fastq
Approx 15% complete for C1.fastq
Approx 20% complete for C1.fastq
Approx 25% complete for C1.fastq
Approx 30% complete for C1.fastq
Approx 35% complete for C1.fastq
Approx 40% complete for C1.fastq
Approx 45% complete for C1.fastq
Approx 50% complete for C1.fastq
Approx 55% complete for C1.fastq
Approx 60% complete for C1.fastq
Approx 65% complete for C1.fastq
Approx 70% complete for C1.fastq
Approx 75% complete for C1.fastq
Approx 80% complete for C1.fastq
Approx 85% complete for C1.fastq
Approx 90% complete for C1.fastq
Approx 95% complete for C1.fastq
Analysis complete for C1.fastq
In [15]:
 
/usr/local/bin/FastQC/fastqc -o /mnt/storage/r0611267/work /mnt/storage/r0611267/work/C2.fastq
Started analysis of C2.fastq
Approx 5% complete for C2.fastq
Approx 10% complete for C2.fastq
Approx 15% complete for C2.fastq
Approx 20% complete for C2.fastq
Approx 25% complete for C2.fastq
Approx 30% complete for C2.fastq
Approx 35% complete for C2.fastq
Approx 40% complete for C2.fastq
Approx 45% complete for C2.fastq
Approx 50% complete for C2.fastq
Approx 55% complete for C2.fastq
Approx 60% complete for C2.fastq
Approx 65% complete for C2.fastq
Approx 70% complete for C2.fastq
Approx 75% complete for C2.fastq
Approx 80% complete for C2.fastq
Approx 85% complete for C2.fastq
Approx 90% complete for C2.fastq
Approx 95% complete for C2.fastq
Analysis complete for C2.fastq
In [17]:
 
/usr/local/bin/FastQC/fastqc -o /mnt/storage/r0611267/work /mnt/storage/r0611267/work/NC2.fastq
Started analysis of NC2.fastq
Approx 5% complete for NC2.fastq
Approx 10% complete for NC2.fastq
Approx 15% complete for NC2.fastq
Approx 20% complete for NC2.fastq
Approx 25% complete for NC2.fastq
Approx 30% complete for NC2.fastq
Approx 35% complete for NC2.fastq
Approx 40% complete for NC2.fastq
Approx 45% complete for NC2.fastq
Approx 50% complete for NC2.fastq
Approx 55% complete for NC2.fastq
Approx 60% complete for NC2.fastq
Approx 65% complete for NC2.fastq
Approx 70% complete for NC2.fastq
Approx 75% complete for NC2.fastq
Approx 80% complete for NC2.fastq
Approx 85% complete for NC2.fastq
Approx 90% complete for NC2.fastq
Approx 95% complete for NC2.fastq
Analysis complete for NC2.fastq
In [18]:
 
/usr/local/bin/FastQC/fastqc -o /mnt/storage/r0611267/work /mnt/storage/r0611267/work/S2.fastq
Started analysis of S2.fastq
Approx 5% complete for S2.fastq
Approx 10% complete for S2.fastq
Approx 15% complete for S2.fastq
Approx 20% complete for S2.fastq
Approx 25% complete for S2.fastq
Approx 30% complete for S2.fastq
Approx 35% complete for S2.fastq
Approx 40% complete for S2.fastq
Approx 45% complete for S2.fastq
Approx 50% complete for S2.fastq
Approx 55% complete for S2.fastq
Approx 60% complete for S2.fastq
Approx 65% complete for S2.fastq
Approx 70% complete for S2.fastq
Approx 75% complete for S2.fastq
Approx 80% complete for S2.fastq
Approx 85% complete for S2.fastq
Approx 90% complete for S2.fastq
Approx 95% complete for S2.fastq
Analysis complete for S2.fastq
In [19]:
 
/usr/local/bin/FastQC/fastqc -o /mnt/storage/r0611267/work /mnt/storage/r0611267/work/NS2.fastq
Started analysis of NS2.fastq
Approx 5% complete for NS2.fastq
Approx 10% complete for NS2.fastq
Approx 15% complete for NS2.fastq
Approx 20% complete for NS2.fastq
Approx 25% complete for NS2.fastq
Approx 30% complete for NS2.fastq
Approx 35% complete for NS2.fastq
Approx 40% complete for NS2.fastq
Approx 45% complete for NS2.fastq
Approx 50% complete for NS2.fastq
Approx 55% complete for NS2.fastq
Approx 60% complete for NS2.fastq
Approx 65% complete for NS2.fastq
Approx 70% complete for NS2.fastq
Approx 75% complete for NS2.fastq
Approx 80% complete for NS2.fastq
Approx 85% complete for NS2.fastq
Approx 90% complete for NS2.fastq
Approx 95% complete for NS2.fastq
Analysis complete for NS2.fastq
In [20]:
 
#we then map the reads to the reference genome. we use the pregenerated reference genome hg_19_star_db
#we repeat the command for all the samples
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn /mnt/storage/r0611267/work/NS1.fastq \
     --outFileNamePrefix NS1.
Nov 20 18:48:04 ..... started STAR run
Nov 20 18:48:04 ..... loading genome
Nov 20 18:48:05 ..... started mapping
Nov 20 18:57:25 ..... finished successfully
In [21]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn /mnt/storage/r0611267/work/NS2.fastq \
     --outFileNamePrefix NS2.
Nov 20 19:02:47 ..... started STAR run
Nov 20 19:02:47 ..... loading genome
Nov 20 19:02:47 ..... started mapping
Nov 20 19:12:07 ..... finished successfully
In [22]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn /mnt/storage/r0611267/work/S1.fastq \
     --outFileNamePrefix S1.
Nov 20 19:12:29 ..... started STAR run
Nov 20 19:12:29 ..... loading genome
Nov 20 19:12:29 ..... started mapping
Nov 20 19:18:53 ..... finished successfully
In [23]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn /mnt/storage/r0611267/work/S2.fastq \
     --outFileNamePrefix S2.
Nov 20 19:18:58 ..... started STAR run
Nov 20 19:18:58 ..... loading genome
Nov 20 19:18:58 ..... started mapping
Nov 20 19:24:49 ..... finished successfully
In [24]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn /mnt/storage/r0611267/work/NC1.fastq \
     --outFileNamePrefix NC1.
Nov 20 19:24:54 ..... started STAR run
Nov 20 19:24:54 ..... loading genome
Nov 20 19:24:55 ..... started mapping
Nov 20 19:32:31 ..... finished successfully
In [25]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn /mnt/storage/r0611267/work/NC2.fastq \
     --outFileNamePrefix NC2.
Nov 20 19:33:24 ..... started STAR run
Nov 20 19:33:24 ..... loading genome
Nov 20 19:33:24 ..... started mapping
Nov 20 19:41:18 ..... finished successfully
In [26]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn /mnt/storage/r0611267/work/C1.fastq \
     --outFileNamePrefix C1.
Nov 20 19:41:24 ..... started STAR run
Nov 20 19:41:24 ..... loading genome
Nov 20 19:41:24 ..... started mapping
Nov 20 19:48:20 ..... finished successfully
In [27]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesIn /mnt/storage/r0611267/work/C2.fastq \
     --outFileNamePrefix C2.
Nov 20 20:58:14 ..... started STAR run
Nov 20 20:58:14 ..... loading genome
Nov 20 20:58:14 ..... started mapping
Nov 20 21:05:20 ..... finished successfully
In [9]:
 
#we print the head of the sam file to check if the format is correct
head -10 NS1.Aligned.out.sam | grep '^@'
@HD	VN:1.4
@SQ	SN:chrM	LN:16571
@SQ	SN:chr1	LN:249250621
@SQ	SN:chr2	LN:243199373
@SQ	SN:chr3	LN:198022430
@SQ	SN:chr4	LN:191154276
@SQ	SN:chr5	LN:180915260
@SQ	SN:chr6	LN:171115067
@SQ	SN:chr7	LN:159138663
@SQ	SN:chr8	LN:146364022
In [31]:
 
#sort and compress the sam file into bam file
#we repeat this for all the samples
samtools sort -o NS1_sorted.bam NS1.Aligned.out.sam 
[bam_sort_core] merging from 13 files...
In [32]:
 
samtools sort -o NS2_sorted.bam NS2.Aligned.out.sam 
[bam_sort_core] merging from 12 files...
In [33]:
 
samtools sort -o S2_sorted.bam S2.Aligned.out.sam 
[bam_sort_core] merging from 7 files...
In [34]:
 
samtools sort -o S1_sorted.bam S1.Aligned.out.sam 
[bam_sort_core] merging from 8 files...
In [35]:
 
samtools sort -o C1_sorted.bam C1.Aligned.out.sam 
[bam_sort_core] merging from 10 files...
In [6]:
 
samtools sort -o C2_sorted.bam C2.Aligned.out.sam 
[bam_sort_core] merging from 10 files...
In [37]:
 
samtools sort -o NC2_sorted.bam NC2.Aligned.out.sam 
[bam_sort_core] merging from 10 files...
In [38]:
 
samtools sort -o NC1_sorted.bam NC1.Aligned.out.sam 
[bam_sort_core] merging from 10 files...
In [41]:
 
#index the sorted file
samtools index NC1_sorted.bam 
In [42]:
 
samtools index NC2_sorted.bam 
In [43]:
 
samtools index C1_sorted.bam 
In [7]:
 
samtools index C2_sorted.bam  
In [45]:
 
samtools index NS2_sorted.bam 
In [46]:
 
samtools index NS1_sorted.bam 
In [47]:
 
samtools index S2_sorted.bam 
In [48]:
 
samtools index S1_sorted.bam 
In [12]:
 
#we check how many reads map on each chromosome
samtools idxstats NS2_sorted.bam
chrM	16571	2627430	0
chr1	249250621	3258190	0
chr2	243199373	1541418	0
chr3	198022430	1458430	0
chr4	191154276	797546	0
chr5	180915260	1276297	0
chr6	171115067	1598236	0
chr7	159138663	1244022	0
chr8	146364022	811130	0
chr9	141213431	1253880	0
chr10	135534747	883925	0
chr11	135006516	1888495	0
chr12	133851895	1406733	0
chr13	115169878	448703	0
chr14	107349540	782243	0
chr15	102531392	891266	0
chr16	90354753	1226652	0
chr17	81195210	1533589	0
chr18	78077248	330891	0
chr19	59128983	1577206	0
chr20	63025520	960867	0
chr21	48129895	259468	0
chr22	51304566	565671	0
chrX	155270560	689087	0
chrY	59373566	69035	0
*	0	0	0
 
We visualize in IGV the reads coverage of the gene S100A8 (involved in the inflammatory response in the lung) and we compare the sample from smoker and non-smoker. As the screenshot shows, the coverage in the sample from the smoker is higher than the one from the non-smoker. This is reasonable since more inflammation is expected in the lung of a smoker person. Moreover, this is in line to what is shown in the paper (Fig. 2).
​
<img width="200%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/IGV_S100A8.jpg">

We visualize in IGV the reads coverage of the gene S100A8 (involved in the inflammatory response in the lung) and we compare the sample from smoker and non-smoker. As the screenshot shows, the coverage in the sample from the smoker is higher than the one from the non-smoker. This is reasonable since more inflammation is expected in the lung of a smoker person. Moreover, this is in line to what is shown in the paper (Fig. 2).

In [31]:
 
#we create a symbolic link to the full human annotation 
ln -sf /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf ~ /mnt/storage/r0611267/work
ls -l *gtf
lrwxrwxrwx 1 r0611267 domain users 71 nov 14 20:13 gencode.v19.nopseudo.plus.sort.chr21.gtf -> /mnt/nfs/data/RNA-seq/GSE47042/gencode.v19.nopseudo.plus.sort.chr21.gtf
lrwxrwxrwx 1 r0611267 domain users 56 nov 14 20:14 gencode.v19.nopseudo.plus.sort.gtf -> /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf
In [4]:
 
#we run featureCounts which allows to assign sequence reads to genomic features
#the order of the input files is important for the gene expression comparison that is done with DESeq
#we run the command twice to compare separately non-smoker/smoker and non-cancer/cancer
featureCounts -Q 10 -g gene_name -a gencode.v19.nopseudo.plus.sort.gtf -o smoker.counts NS1_sorted.bam NS2_sorted.bam S1_sorted.bam S2_sorted.bam 
        ==========     _____ _    _ ____  _____  ______          _____  
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \ 
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
	v1.5.0-p1

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 4 BAM files                                      ||
||                           S NS1_sorted.bam                                 ||
||                           S NS2_sorted.bam                                 ||
||                           S S1_sorted.bam                                  ||
||                           S S2_sorted.bam                                  ||
||                                                                            ||
||             Output file : smoker.counts                                    ||
||             Annotations : gencode.v19.nopseudo.plus.sort.gtf (GTF)         ||
||                                                                            ||
||                 Threads : 1                                                ||
||                   Level : meta-feature level                               ||
||              Paired-end : no                                               ||
||         Strand specific : no                                               ||
||      Multimapping reads : not counted                                      ||
|| Multi-overlapping reads : not counted                                      ||
||       Read orientations : fr                                               ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

//================================= Running ==================================\\
||                                                                            ||
|| Load annotation file gencode.v19.nopseudo.plus.sort.gtf ...                ||
||    Features : 1156385                                                      ||
||    Meta-features : 41863                                                   ||
||    Chromosomes/contigs : 25                                                ||
||                                                                            ||
|| Process BAM file NS1_sorted.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 29684646                                                  ||
||    Successfully assigned reads : 19862463 (66.9%)                          ||
||    Running time : 0.65 minutes                                             ||
||                                                                            ||
|| Process BAM file NS2_sorted.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 29380410                                                  ||
||    Successfully assigned reads : 19607417 (66.7%)                          ||
||    Running time : 0.67 minutes                                             ||
||                                                                            ||
|| Process BAM file S1_sorted.bam...                                          ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 17271381                                                  ||
||    Successfully assigned reads : 11727382 (67.9%)                          ||
||    Running time : 0.35 minutes                                             ||
||                                                                            ||
|| Process BAM file S2_sorted.bam...                                          ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 17164649                                                  ||
||    Successfully assigned reads : 11616135 (67.7%)                          ||
||    Running time : 0.38 minutes                                             ||
||                                                                            ||
||                         Read assignment finished.                          ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

In [5]:
 
featureCounts -Q 10 -g gene_name -a gencode.v19.nopseudo.plus.sort.gtf -o cancer.counts NC1_sorted.bam NC2_sorted.bam C1_sorted.bam C2_sorted.bam 
        ==========     _____ _    _ ____  _____  ______          _____  
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \ 
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
	v1.5.0-p1

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 4 BAM files                                      ||
||                           S NC1_sorted.bam                                 ||
||                           S NC2_sorted.bam                                 ||
||                           S C1_sorted.bam                                  ||
||                           S C2_sorted.bam                                  ||
||                                                                            ||
||             Output file : cancer.counts                                    ||
||             Annotations : gencode.v19.nopseudo.plus.sort.gtf (GTF)         ||
||                                                                            ||
||                 Threads : 1                                                ||
||                   Level : meta-feature level                               ||
||              Paired-end : no                                               ||
||         Strand specific : no                                               ||
||      Multimapping reads : not counted                                      ||
|| Multi-overlapping reads : not counted                                      ||
||       Read orientations : fr                                               ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

//================================= Running ==================================\\
||                                                                            ||
|| Load annotation file gencode.v19.nopseudo.plus.sort.gtf ...                ||
||    Features : 1156385                                                      ||
||    Meta-features : 41863                                                   ||
||    Chromosomes/contigs : 25                                                ||
||                                                                            ||
|| Process BAM file NC1_sorted.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 23655207                                                  ||
||    Successfully assigned reads : 15682116 (66.3%)                          ||
||    Running time : 0.49 minutes                                             ||
||                                                                            ||
|| Process BAM file NC2_sorted.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 23467510                                                  ||
||    Successfully assigned reads : 15505019 (66.1%)                          ||
||    Running time : 0.52 minutes                                             ||
||                                                                            ||
|| Process BAM file C1_sorted.bam...                                          ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 22371454                                                  ||
||    Successfully assigned reads : 14969356 (66.9%)                          ||
||    Running time : 0.48 minutes                                             ||
||                                                                            ||
|| Process BAM file C2_sorted.bam...                                          ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 22200468                                                  ||
||    Successfully assigned reads : 14811491 (66.7%)                          ||
||    Running time : 0.52 minutes                                             ||
||                                                                            ||
||                         Read assignment finished.                          ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

In [6]:
 
#we prepare the files for the subsequent analysis and we visualize the format with 'head'
cut -f-6 smoker.counts > smoker.genedata.tsv
In [7]:
 
cut -f-6 cancer.counts > cancer.genedata.tsv
In [11]:
 
cut -f1,7- smoker.counts | grep -v '^#' > all.smoker.counts
head all.smoker.counts
Geneid	NS1_sorted.bam	NS2_sorted.bam	S1_sorted.bam	S2_sorted.bam
MIR1302-11	0	0	0	0
FAM138A	0	0	0	0
OR4F5	0	0	0	0
RP11-34P13.7	0	0	0	0
RP11-34P13.8	0	0	0	0
AL627309.1	91	73	62	70
RP11-34P13.14	0	0	0	0
RP11-34P13.13	5	8	0	0
RNU6-1100P	0	0	0	0
In [10]:
 
cut -f1,7- cancer.counts | grep -v '^#' > all.cancer.counts
head all.cancer.counts
Geneid	NC1_sorted.bam	NC2_sorted.bam	C1_sorted.bam	C2_sorted.bam
MIR1302-11	0	0	0	0
FAM138A	0	0	0	0
OR4F5	0	0	0	0
RP11-34P13.7	0	0	3	3
RP11-34P13.8	0	0	0	0
AL627309.1	109	101	85	74
RP11-34P13.14	0	0	0	0
RP11-34P13.13	2	6	0	0
RNU6-1100P	0	0	0	0
 
We proceed with the analysis in R (see code in notebook 2)
​
**DESeq ANALYSIS**
​
Since we wanted to compare non-smokers (NS) to healthy smokers (S) and smokers with benign diseases (NC) to smokers suffering from cancer (C), we ran in parallel the same commands for both sets of data. 
We first organized the data and defined the experimental conditions to make it suitable for the subsequent DESeq analysis. This allowed us to graphically (see Notebook 2) check several features of our dataset:
- The library size barplot provides with information about the total number of reads corresponding to each sample.
- The scatter plot of sample vs. sample allows us to compare the variation between each pair of samples. 
- The Principal Component Analysis (PCA) plot serves to evaluate the intersample variation. 
- In the mean plot the differentially expressed genes are visualized.
​
Finally, we calculated the number of differentially expressed genes for each pair of samples and we plotted few of them as an example.
​
**Plot interpretation**
​
The variation shown in the DESeq2 barplots is larger between NS and S than between NC and C. Counts are also more scattered between NS and S in the sample vs. sample scatter plots. In the PCA plot we can observe, as expected, that the variance between NS and S is much larger that the intrasample variation, which is less than 0.4% in every case. This difference exists as well in the case of NC and C. Furthermore, in line with the previous observations in the DESeq2 barplots and the sample vs. sample plots, there is more variation between healthy smokers (S) and non-smokers (NS) than when we compare smokers with benign diseases (NC) and smokers suffering from cancer (C). In the mean expression plot the scattering is again increased when NS and S are compared, meaning that the number of significantly differentially expressed genes is larger in this pair of samples.
We then calculated the number of differentially expressed genes for NS vs. S and NC vs. C and we found  6400 and 3072 genes, respectively. Those values are higher than those reported in the paper. However, the ratio is approximately the same. This difference is likely to be due to the fact that we did not perform any trimming or additional correction on the dataset, which they did in the paper.
Finally, we manually checked some differentially expressed genes, which were mentioned in the paper. As an example of the NS/S couple we show the differences in the expression of S100A8, a gene involved in the inflammatory response in the lung. This gene is upregulated in smokers (S) as it is also reported in the paper and as we previously showed in IGV. As an example of the NC/C couple, we checked the expression levels of NFkBIA, which participates in NFkB signaling network and is mentioned to be upregulated in the paper. Additionally we looked at the expression of CYP1A1, a protein involved in the xenobiotic metabolism, which we expect to be upregulated in smokers. A relevant fraction of the upregulated genes cluster in the family of genes encoding proteins involved in the metabolism of xenobiotics, as shown in the functional analysis (see further). Likewise, in the case of the NC/C couple, the chemokine CCL20 is upregulated in cancer patients. Interesting the case of MUC5AC, which is upregulated in smokers compared to non-smokers, but donwregulated in cancer  vs. non-cancer samples. 
​

We proceed with the analysis in R (see code in notebook 2)

DESeq ANALYSIS

Since we wanted to compare non-smokers (NS) to healthy smokers (S) and smokers with benign diseases (NC) to smokers suffering from cancer (C), we ran in parallel the same commands for both sets of data. We first organized the data and defined the experimental conditions to make it suitable for the subsequent DESeq analysis. This allowed us to graphically (see Notebook 2) check several features of our dataset:

  • The library size barplot provides with information about the total number of reads corresponding to each sample.
  • The scatter plot of sample vs. sample allows us to compare the variation between each pair of samples.
  • The Principal Component Analysis (PCA) plot serves to evaluate the intersample variation.
  • In the mean plot the differentially expressed genes are visualized.

Finally, we calculated the number of differentially expressed genes for each pair of samples and we plotted few of them as an example.

Plot interpretation

The variation shown in the DESeq2 barplots is larger between NS and S than between NC and C. Counts are also more scattered between NS and S in the sample vs. sample scatter plots. In the PCA plot we can observe, as expected, that the variance between NS and S is much larger that the intrasample variation, which is less than 0.4% in every case. This difference exists as well in the case of NC and C. Furthermore, in line with the previous observations in the DESeq2 barplots and the sample vs. sample plots, there is more variation between healthy smokers (S) and non-smokers (NS) than when we compare smokers with benign diseases (NC) and smokers suffering from cancer (C). In the mean expression plot the scattering is again increased when NS and S are compared, meaning that the number of significantly differentially expressed genes is larger in this pair of samples. We then calculated the number of differentially expressed genes for NS vs. S and NC vs. C and we found 6400 and 3072 genes, respectively. Those values are higher than those reported in the paper. However, the ratio is approximately the same. This difference is likely to be due to the fact that we did not perform any trimming or additional correction on the dataset, which they did in the paper. Finally, we manually checked some differentially expressed genes, which were mentioned in the paper. As an example of the NS/S couple we show the differences in the expression of S100A8, a gene involved in the inflammatory response in the lung. This gene is upregulated in smokers (S) as it is also reported in the paper and as we previously showed in IGV. As an example of the NC/C couple, we checked the expression levels of NFkBIA, which participates in NFkB signaling network and is mentioned to be upregulated in the paper. Additionally we looked at the expression of CYP1A1, a protein involved in the xenobiotic metabolism, which we expect to be upregulated in smokers. A relevant fraction of the upregulated genes cluster in the family of genes encoding proteins involved in the metabolism of xenobiotics, as shown in the functional analysis (see further). Likewise, in the case of the NC/C couple, the chemokine CCL20 is upregulated in cancer patients. Interesting the case of MUC5AC, which is upregulated in smokers compared to non-smokers, but donwregulated in cancer vs. non-cancer samples.

 
**FUNCTIONAL ANALYSIS AND MOTIF ENRICHMENT**
​
After having performed the analysis of the RNAseq data, functional analysis was carried out by using the following online tools: HumanMine (http://www.humanmine.org/) and GOrilla (http://cbl-gorilla.cs.technion.ac.il/). These tools allow to associate genes to the biological scenarios in which they are likely to play a role. This association can be done at different levels: biological processes, cellular components and molecular functions.
​
The analysis in **HumanMine** revealed that in the case of the healthy smoker (S) vs non-smoker (NS) comparison, among the enriched gene ontology (GO) terms the guanylate cyclase is found, which is known to be increased in smokers (Arnold WP, 1977 *Science*). Also, as previously mentioned, we found enrichment in the oxidation-reduction related genes (Fig.3). 
​
<img width="50%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/smoker_GO1.JPG"/> <img width="50%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/smoker_GO2.JPG">
​
Among the enriched GO terms in cancer, as expected we found the involvement of signalling pathways that play a role in cancer, such as MAPK and NFkB, and immune-related processes (Fig.4). 
​
<img width="50%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/cancer_GO1.JPG"> 
<img width="50%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/cancer_GO2.JPG">
​
For a more detailed overview we used **GOrilla**.
​
The analysis in GOrilla (visualized with REVIGO).
​
The following two images refer to NS-S comparison (Fig.5 and 6)
​
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/revigo_smokers.JPG">
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/revigo_smokers2.JPG">
​
As reported in the paper, we found relevant enrichment on the oxidation-reduction processes, as we also found using HumanMine.
​
We also checked which are the most down-regulated genes in the S samples compared to the NS (Fig.7)
​
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/DOWN_NS-S.jpg">
​
In the case of NS vs S, the downregulated genes are those involved in the monovalent inorganic cation transport that play a role in a wide range of cellular processes and to which belong also those associated with the cilium-based cell motility. The reduced ciliar function is indeed known to be a side effect of the sigarette smoke.
​
The following two images refer to NC-C comparison (Fig.8 and 9)
​
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/revigo_cancer.JPG">
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/revigo_cancer2.JPG">
In the case of smokers with cancer we see larger differences in genes related to inflammation and immune response, cell proliferation and cell adhesion. Indeed, cancer cells undergo changes in their surface adhesion molecules to invade other niches. 
​
In the same way we evaluate the cluster of genes which are mostly down-regulate in the C samples compared with the NS one (Fig. 10).
​
<img width="100%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/DOWN_NC-C.jpg">
​
For this couple, genes involved in the regulaiton of immune system process and defense response are the most downregulated. Which is also expected from patients with cancer. 
​
Finally, since the transcription factor NFkB1A is one of the upregulated genes in smokers suffering from lung cancer (C) compared to those suffering from benign diseases (NC) and it is involved in a signaling pathway associated with cancer development, we decided to perform the *motif enrichment analysis* on this gene. In order to do so, we used the online tool **GeneMania** to obtain a list of genes related to our gene of interest (in terms of protein and genetic interactions, pathways, co-expression, co-localization and protein domain similarity). Based on this list of genes, the subsequent analysis was carried out in Cytoscape using the **iRegulon** tool.
As a result, we obtained the following map with the main targets of NFkB (Fig. 11):
<img width="50%" src="https://jupyter.gbiomed.kuleuven.be/user/r0611267/files/PROJECT/Connectome.png">
​
Among the targets of NFK1B we found genes involved in the immune response such as IL1B or CXCL10, but also proto-oncogenes (BCL3) and genes related to cell cycle control (CDKN1A). Additionally, also CCL20 and NFKBIA are among the targets gene, which we found to be up-regulated in the sample of smokers with cancer (C). Since NFkB has been proposed to constitute a critical link between inflammation and cancer (Karin M. 2009, *Cold Spring Harbor Perspectives in Biology*), it seems logical that its regulatory activity affects genes implicated both in cell proliferation and the immune system.

FUNCTIONAL ANALYSIS AND MOTIF ENRICHMENT

After having performed the analysis of the RNAseq data, functional analysis was carried out by using the following online tools: HumanMine (http://www.humanmine.org/) and GOrilla (http://cbl-gorilla.cs.technion.ac.il/). These tools allow to associate genes to the biological scenarios in which they are likely to play a role. This association can be done at different levels: biological processes, cellular components and molecular functions.

The analysis in HumanMine revealed that in the case of the healthy smoker (S) vs non-smoker (NS) comparison, among the enriched gene ontology (GO) terms the guanylate cyclase is found, which is known to be increased in smokers (Arnold WP, 1977 Science). Also, as previously mentioned, we found enrichment in the oxidation-reduction related genes (Fig.3).

Among the enriched GO terms in cancer, as expected we found the involvement of signalling pathways that play a role in cancer, such as MAPK and NFkB, and immune-related processes (Fig.4).

For a more detailed overview we used GOrilla.

The analysis in GOrilla (visualized with REVIGO).

The following two images refer to NS-S comparison (Fig.5 and 6)

As reported in the paper, we found relevant enrichment on the oxidation-reduction processes, as we also found using HumanMine.

We also checked which are the most down-regulated genes in the S samples compared to the NS (Fig.7)

In the case of NS vs S, the downregulated genes are those involved in the monovalent inorganic cation transport that play a role in a wide range of cellular processes and to which belong also those associated with the cilium-based cell motility. The reduced ciliar function is indeed known to be a side effect of the sigarette smoke.

The following two images refer to NC-C comparison (Fig.8 and 9)

In the case of smokers with cancer we see larger differences in genes related to inflammation and immune response, cell proliferation and cell adhesion. Indeed, cancer cells undergo changes in their surface adhesion molecules to invade other niches.

In the same way we evaluate the cluster of genes which are mostly down-regulate in the C samples compared with the NS one (Fig. 10).

For this couple, genes involved in the regulaiton of immune system process and defense response are the most downregulated. Which is also expected from patients with cancer.

Finally, since the transcription factor NFkB1A is one of the upregulated genes in smokers suffering from lung cancer (C) compared to those suffering from benign diseases (NC) and it is involved in a signaling pathway associated with cancer development, we decided to perform the motif enrichment analysis on this gene. In order to do so, we used the online tool GeneMania to obtain a list of genes related to our gene of interest (in terms of protein and genetic interactions, pathways, co-expression, co-localization and protein domain similarity). Based on this list of genes, the subsequent analysis was carried out in Cytoscape using the iRegulon tool. As a result, we obtained the following map with the main targets of NFkB (Fig. 11):

Among the targets of NFK1B we found genes involved in the immune response such as IL1B or CXCL10, but also proto-oncogenes (BCL3) and genes related to cell cycle control (CDKN1A). Additionally, also CCL20 and NFKBIA are among the targets gene, which we found to be up-regulated in the sample of smokers with cancer (C). Since NFkB has been proposed to constitute a critical link between inflammation and cancer (Karin M. 2009, Cold Spring Harbor Perspectives in Biology), it seems logical that its regulatory activity affects genes implicated both in cell proliferation and the immune system.

 
**Microarray**
​
For the microarray analysis we focused on the cancer/non-cancer comparison because the smoker/non-smoker data had been obtained by using a different type of platform (Affymetrix Exon 1.0 ST), which cannot be analyzed using the affy package. In the case of the cancer/non-cancer analysis the data originated from Affymetrix HGU133A 2.0. The samples correspond to bronchial airway epithelial cells from eight smokers with cancer and five smokers without cancer. Aiming to reproduce the analysis carried out in the paper, we selected a subset of samples (three non-cancer and two cancer), that were used for the RNAseq library preparation. However, we could not find any significantly differentially expressed genes among these samples. This could be due to the reduced sample size or the fact that the cancers here analysed are very different in terms of histology (exp. Adenocarcinoma or Squamous cell carcinoma). Moreover, as they mention in the paper, numerous genes that are differentially expressed according to RNAseq are not interrogated in the microarray (e.g: MUC5AC). Therefore, it is not possible to establish an appropriate comparison. Additionally, the microarray used in this case is an older platform and only a subset of the cancer samples used in the pool had microarray data. Indeed, in the paper they show a weak correlation between the RNAseq-derived fold changes between NC/C and those measured by microarray. Due to these negative results, we checked the original publication of the group that first deposited those microarray data (Spira, A. 2007, *Nature Med*.), nevertheless the .RAW files were not available.

Microarray

For the microarray analysis we focused on the cancer/non-cancer comparison because the smoker/non-smoker data had been obtained by using a different type of platform (Affymetrix Exon 1.0 ST), which cannot be analyzed using the affy package. In the case of the cancer/non-cancer analysis the data originated from Affymetrix HGU133A 2.0. The samples correspond to bronchial airway epithelial cells from eight smokers with cancer and five smokers without cancer. Aiming to reproduce the analysis carried out in the paper, we selected a subset of samples (three non-cancer and two cancer), that were used for the RNAseq library preparation. However, we could not find any significantly differentially expressed genes among these samples. This could be due to the reduced sample size or the fact that the cancers here analysed are very different in terms of histology (exp. Adenocarcinoma or Squamous cell carcinoma). Moreover, as they mention in the paper, numerous genes that are differentially expressed according to RNAseq are not interrogated in the microarray (e.g: MUC5AC). Therefore, it is not possible to establish an appropriate comparison. Additionally, the microarray used in this case is an older platform and only a subset of the cancer samples used in the pool had microarray data. Indeed, in the paper they show a weak correlation between the RNAseq-derived fold changes between NC/C and those measured by microarray. Due to these negative results, we checked the original publication of the group that first deposited those microarray data (Spira, A. 2007, Nature Med.), nevertheless the .RAW files were not available.

 
**Conclusion**
​
The RNAseq analysis combined with the functional analysis revealed that the clusters of genes that are differentially expressed between the samples are in line with our expectation of genes up and down-regulated in case of healthy smokers (S) and smokers with cancer (C). 
On the other hand, the microarray analysis did not give consistent results, due to the poor quality of the data set. 
Generally, the RNAseq technology is considered to be more powerful than the microarray one. Indeed, it is a good tool for discovery-based experiments since, differently from microarray, it is able to investigate both novel and known transcripts. Additionally, the background signal generated is lower and easily eliminated during analysis. This is due to the fact that this technology allows a better hybridization, and therefore mapping, or the DNA sequences onto the reference sequence. This also allows a better quantification of the expression levels. 

Conclusion

The RNAseq analysis combined with the functional analysis revealed that the clusters of genes that are differentially expressed between the samples are in line with our expectation of genes up and down-regulated in case of healthy smokers (S) and smokers with cancer (C). On the other hand, the microarray analysis did not give consistent results, due to the poor quality of the data set. Generally, the RNAseq technology is considered to be more powerful than the microarray one. Indeed, it is a good tool for discovery-based experiments since, differently from microarray, it is able to investigate both novel and known transcripts. Additionally, the background signal generated is lower and easily eliminated during analysis. This is due to the fact that this technology allows a better hybridization, and therefore mapping, or the DNA sequences onto the reference sequence. This also allows a better quantification of the expression levels.