xxxxxxxxxx
 
### Assignment Bioinformatics:

Assignment Bioinformatics:

xxxxxxxxxx
# The role of Sox2 in gastric epithelium and the consequences of its loss
​
    Maarten Eggerickx (r0380465), Martijn Broux (r0372900), Wietse Decraene (r0368164)
    29 January 2017

The role of Sox2 in gastric epithelium and the consequences of its loss

Maarten Eggerickx (r0380465), Martijn Broux (r0372900), Wietse Decraene (r0368164)
29 January 2017
 
## Introduction

Introduction

xxxxxxxxxx
Sox 2 is a gene that is expressed highly in developping organisms and stem cells. In the case of stem cells, it is known to be important for sustaining the stem cell populations because it activates renewal genes and supresses differentiation. It would seem therefore, that activation of Sox2 would be a leading cause of cancer. But the role of Sox2 is rather controversial, with some reports of Sox2 being tumor-inducing while others reporting it to be tumor-suppressing. A known fact, is that the Sox 2 pathway is dysregulated in many cancers.
​
Sox2 is higly expressed in gastric cancers, probably because the gastric mucosa contains one of the few stem cell populations that uses Sox2 inherently for their renewal. Gastic cancers cause the 3rd most deaths of any cancers (after lung and intestinal). This makes the gastic mucosa an interesting tissue to study the role of Sox2. Because of both its indigenous expression and its importance for cancer research.
​
We studied an RNA sequencing data-set of Sox 2 WT vs Sox 2 KO mice. The KO-group was knocked out through Tamoxifen-induced Cre-recombination. Attached to this dataset, was a ChIPseq dataset of Sox2 immunopreciptation of both the WT and the KO. The ChIPseq WT data is useful for identifying all the binding sites that Sox2 has in the genome of gastric tissue. The knock-out data is useful for assessing the quality of our KO (because Cre-induced KO is never 100%).
​
    GEO accession number: GSE83966
​
    pathway notebook: /mnt/storage/r0372900/jupyternotebooks/Assignment_Bioinformatics2/Bash-Notebook-Assignment
    
    pathway attachment: /mnt/storage/r0372900/jupyternotebooks/Assignment_Bioinformatics2/R-Notebook-Attachment

Sox 2 is a gene that is expressed highly in developping organisms and stem cells. In the case of stem cells, it is known to be important for sustaining the stem cell populations because it activates renewal genes and supresses differentiation. It would seem therefore, that activation of Sox2 would be a leading cause of cancer. But the role of Sox2 is rather controversial, with some reports of Sox2 being tumor-inducing while others reporting it to be tumor-suppressing. A known fact, is that the Sox 2 pathway is dysregulated in many cancers.

Sox2 is higly expressed in gastric cancers, probably because the gastric mucosa contains one of the few stem cell populations that uses Sox2 inherently for their renewal. Gastic cancers cause the 3rd most deaths of any cancers (after lung and intestinal). This makes the gastic mucosa an interesting tissue to study the role of Sox2. Because of both its indigenous expression and its importance for cancer research.

We studied an RNA sequencing data-set of Sox 2 WT vs Sox 2 KO mice. The KO-group was knocked out through Tamoxifen-induced Cre-recombination. Attached to this dataset, was a ChIPseq dataset of Sox2 immunopreciptation of both the WT and the KO. The ChIPseq WT data is useful for identifying all the binding sites that Sox2 has in the genome of gastric tissue. The knock-out data is useful for assessing the quality of our KO (because Cre-induced KO is never 100%).

GEO accession number: GSE83966

pathway notebook: /mnt/storage/r0372900/jupyternotebooks/Assignment_Bioinformatics2/Bash-Notebook-Assignment

pathway attachment: /mnt/storage/r0372900/jupyternotebooks/Assignment_Bioinformatics2/R-Notebook-Attachment
 
## Part 1: Differential Expression: RNA sequencing

Part 1: Differential Expression: RNA sequencing

 
For the RNAseq, we used the following subseries: GSE83964   Sox2 suppresses gastric tumorigenesis in mice [RNA-seq]
​
Organism: Mus musculus
​
Platform: Illumina GPL17021
​
    GSM2224570  Sox2 WT stomach 1 [RNA-seq]
    GSM2224571  Sox2 WT stomach 2 [RNA-seq]
    GSM2224572  Sox2 WT stomach 3 [RNA-seq]
    GSM2224573  Sox2 KO stomach 1 [RNA-seq]
    GSM2224574  Sox2 KO stomach 2 [RNA-seq]
    GSM2224575  Sox2 KO stomach 3 [RNA-seq]

For the RNAseq, we used the following subseries: GSE83964 Sox2 suppresses gastric tumorigenesis in mice [RNA-seq]

Organism: Mus musculus

Platform: Illumina GPL17021

GSM2224570    Sox2 WT stomach 1 [RNA-seq]
GSM2224571    Sox2 WT stomach 2 [RNA-seq]
GSM2224572    Sox2 WT stomach 3 [RNA-seq]
GSM2224573    Sox2 KO stomach 1 [RNA-seq]
GSM2224574    Sox2 KO stomach 2 [RNA-seq]
GSM2224575    Sox2 KO stomach 3 [RNA-seq]
In [1]:
 
pwd
/mnt/storage/r0372900/jupyternotebooks/Assignment_Bioinformatics2
 
#### Step 1.1: making the directory

Step 1.1: making the directory

In [7]:
 
# mkdir -p /mnt/storage/r0372900/Assignment_bioinformatics2/RNAseq
cd /mnt/storage/r0372900/Assignment_bioinformatics2/RNAseq
pwd
/mnt/storage/r0372900/Assignment_bioinformatics2/RNAseq
 
#### Step 1.2: downloading the fastq files

Step 1.2: downloading the fastq files

 
(Be sure to select the correct output folder. To not achieve limit.)
(It is possible an extra folder appears in your home directory called NCBI and that the sra files are in there. 
This should not happen and these files should be removed.)

(Be sure to select the correct output folder. To not achieve limit.) (It is possible an extra folder appears in your home directory called NCBI and that the sra files are in there. This should not happen and these files should be removed.)

In [16]:
 
# fastq-dump -h
Usage:
  fastq-dump [options] <path> [<path>...]
  fastq-dump [options] <accession>

INPUT
  -A|--accession <accession>       Replaces accession derived from <path> in 
                                   filename(s) and deflines (only for single 
                                   table dump) 
  --table <table-name>             Table name within cSRA object, default is 
                                   "SEQUENCE" 

PROCESSING

Read Splitting                     Sequence data may be used in raw form or
                                     split into individual reads
  --split-spot                     Split spots into individual reads 

Full Spot Filters                  Applied to the full spot independently
                                     of --split-spot
  -N|--minSpotId <rowid>           Minimum spot id 
  -X|--maxSpotId <rowid>           Maximum spot id 
  --spot-groups <[list]>           Filter by SPOT_GROUP (member): name[,...] 
  -W|--clip                        Apply left and right clips 

Common Filters                     Applied to spots when --split-spot is not
                                     set, otherwise - to individual reads
  -M|--minReadLen <len>            Filter by sequence length >= <len> 
  -R|--read-filter <[filter]>      Split into files by READ_FILTER value 
                                   optionally filter by value: 
                                   pass|reject|criteria|redacted 
  -E|--qual-filter                 Filter used in early 1000 Genomes data: no 
                                   sequences starting or ending with >= 10N 
  --qual-filter-1                  Filter used in current 1000 Genomes data 

Filters based on alignments        Filters are active when alignment
                                     data are present
  --aligned                        Dump only aligned sequences 
  --unaligned                      Dump only unaligned sequences 
  --aligned-region <name[:from-to]>  Filter by position on genome. Name can 
                                   either be accession.version (ex: 
                                   NC_000001.10) or file specific name (ex: 
                                   "chr1" or "1"). "from" and "to" are 1-based 
                                   coordinates 
  --matepair-distance <from-to|unknown>  Filter by distance beiween matepairs. 
                                   Use "unknown" to find matepairs split 
                                   between the references. Use from-to to limit 
                                   matepair distance on the same reference 

Filters for individual reads       Applied only with --split-spot set
  --skip-technical                 Dump only biological reads 

OUTPUT
  -O|--outdir <path>               Output directory, default is working 
                                   directory '.' ) 
  -Z|--stdout                      Output to stdout, all split data become 
                                   joined into single stream 
  --gzip                           Compress output using gzip 
  --bzip2                          Compress output using bzip2 

Multiple File Options              Setting these options will produce more
                                     than 1 file, each of which will be suffixed
                                     according to splitting criteria.
  --split-files                    Dump each read into separate file.Files 
                                   will receive suffix corresponding to read 
                                   number 
  --split-3                        Legacy 3-file splitting for mate-pairs: 
                                   First biological reads satisfying dumping 
                                   conditions are placed in files *_1.fastq and 
                                   *_2.fastq If only one biological read is 
                                   present it is placed in *.fastq Biological 
                                   reads and above are ignored. 
  -G|--spot-group                  Split into files by SPOT_GROUP (member name) 
  -R|--read-filter <[filter]>      Split into files by READ_FILTER value 
                                   optionally filter by value: 
                                   pass|reject|criteria|redacted 
  -T|--group-in-dirs               Split into subdirectories instead of files 
  -K|--keep-empty-files            Do not delete empty files 

FORMATTING

Sequence
  -C|--dumpcs <[cskey]>            Formats sequence using color space (default 
                                   for SOLiD),"cskey" may be specified for 
                                   translation 
  -B|--dumpbase                    Formats sequence using base space (default 
                                   for other than SOLiD). 

Quality
  -Q|--offset <integer>            Offset to use for quality conversion, 
                                   default is 33 
  --fasta <[line width]>           FASTA only, no qualities, optional line 
                                   wrap width (set to zero for no wrapping) 
  --suppress-qual-for-cskey        supress quality-value for cskey 

Defline
  -F|--origfmt                     Defline contains only original sequence name 
  -I|--readids                     Append read id after spot id as 
                                   'accession.spot.readid' on defline 
  --helicos                        Helicos style defline 
  --defline-seq <fmt>              Defline format specification for sequence. 
  --defline-qual <fmt>             Defline format specification for quality. 
                                   <fmt> is string of characters and/or 
                                   variables. The variables can be one of: $ac 
                                   - accession, $si spot id, $sn spot 
                                   name, $sg spot group (barcode), $sl spot 
                                   length in bases, $ri read number, $rn 
                                   read name, $rl read length in bases. '[]' 
                                   could be used for an optional output: if 
                                   all vars in [] yield empty values whole 
                                   group is not printed. Empty value is empty 
                                   string or for numeric variables. Ex: 
                                   @$sn[_$rn]/$ri '_$rn' is omitted if name 
                                   is empty
 
OTHER:
  --disable-multithreading         disable multithreading 
  -h|--help                        Output brief explanation of program usage 
  -V|--version                     Display the version of the program 
  -L|--log-level <level>           Logging level as number or enum string One 
                                   of (fatal|sys|int|err|warn|info) or (0-5) 
                                   Current/default is warn 
  -v|--verbose                     Increase the verbosity level of the program 
                                   Use multiple times for more verbosity 
  --ncbi_error_report              Control program execution environment 
                                   report generation (if implemented). One of 
                                   (never|error|always). Default is error 
  --legacy-report                  use legacy style 'Written spots' for tool 

fastq-dump : 2.8.0

 
We downloaded the files manually and put them in the desired folder. Then, we executed the fastq-dump command to convert the .sra files to .fastq files.

We downloaded the files manually and put them in the desired folder. Then, we executed the fastq-dump command to convert the .sra files to .fastq files.

In [ ]:
 
#first, download sra-files and then upload it via bitvise.
fastq-dump ./SRR3737439.sra .
fastq-dump ./SRR3737440.sra .
fastq-dump ./SRR3737441.sra .
fastq-dump ./SRR3737442.sra .
fastq-dump ./SRR3737443.sra .
fastq-dump ./SRR3737444.sra .
In [4]:
 
cd /mnt/storage/r0372900/Assignment_bioinformatics2/RNAseq
pwd
ls
/mnt/storage/r0372900/Assignment_bioinformatics2/RNAseq
SRR3737439.fastq  SRR3737441.fastq  SRR3737443.fastq	SRR3737444.sra
SRR3737439.sra	  SRR3737441.sra    SRR3737443.sra
SRR3737440.fastq  SRR3737442.fastq  SRR3737444_2.fastq
SRR3737440.sra	  SRR3737442.sra    SRR3737444.fastq
In [5]:
 
head SRR3737439.fastq
@SRR3737439.1 HWI-D00449:143:HWLFCADXX:1:1101:1313:1987 length=51
NCCTCCCACTTATTCTACACCTCTCATGTCTCTTCACAGTGCCAGACTAGA
+SRR3737439.1 HWI-D00449:143:HWLFCADXX:1:1101:1313:1987 length=51
#1:DDDDFFFFFFGHGIIIIIHGEBHIIGHEIIIIIIIGDGCHIADCEHII
@SRR3737439.2 HWI-D00449:143:HWLFCADXX:1:1101:1635:1951 length=51
NACTGATGCCGAAAGCTTCCGCGATGGTGAGCTGGACCTTCTGCCGAATGT
+SRR3737439.2 HWI-D00449:143:HWLFCADXX:1:1101:1635:1951 length=51
#1=DFFFFHHHHHJJJJJJJJJJJJJJGHIJJJJJJJJJJJJJJJJJJHHH
@SRR3737439.3 HWI-D00449:143:HWLFCADXX:1:1101:1514:1952 length=51
NACCAGAAGCAGTTCAACCCTTGTAGTAACAAGAGCAGCAGGTTAAAAACC
 
Now that the sequences are downloaded, we can test their quality using fastqc with the following command:

Now that the sequences are downloaded, we can test their quality using fastqc with the following command:

In [ ]:
 
fastqc SRR*.fastq -o . 
 
We show the results of the fastqc of the first WT dataset (SRR3737439) as an example for the whole set: (see figure below)
​
The per base sequence content, sequence quality score, QC content and sequence length are excellent.
​
The per base sequence content, per base GC content and Kmer content have a slight deviation at the start of all the reads. This can be attributed in part to the genetic adapter used for the RNA sequencing. It is of no real concern for the interpretation of our data.
​
there were a lot of sequence duplications above 10. This could point to PCR artifacts. It was not entirely clear though, whether this was the case, as we think sequence duplications of 10 are a rather low number. We desided to use the data as 'as provided' and not exclude sequences that were duplicated 10 times or more.  
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/fastqc-SRR3737439.jpg">

We show the results of the fastqc of the first WT dataset (SRR3737439) as an example for the whole set: (see figure below)

The per base sequence content, sequence quality score, QC content and sequence length are excellent.

The per base sequence content, per base GC content and Kmer content have a slight deviation at the start of all the reads. This can be attributed in part to the genetic adapter used for the RNA sequencing. It is of no real concern for the interpretation of our data.

there were a lot of sequence duplications above 10. This could point to PCR artifacts. It was not entirely clear though, whether this was the case, as we think sequence duplications of 10 are a rather low number. We desided to use the data as 'as provided' and not exclude sequences that were duplicated 10 times or more.

 
#### Step 1.3: mapping to the genome

Step 1.3: mapping to the genome

 
-We used STAR to map to our genome
​
-mouse reference genome (mm10/GRCm38), positioned at:
​
    /mnt/nfs/data/reference_genomes/mm10/STAR

-We used STAR to map to our genome

-mouse reference genome (mm10/GRCm38), positioned at:

/mnt/nfs/data/reference_genomes/mm10/STAR
In [ ]:
 
STAR --genomeDir /mnt/nfs/data/reference_genomes/mm10/STAR \
     --runThreadN 4 \
     --readFilesIn SRR3737439.fastq \
     --outFileNamePrefix STAR.SRR3737439.
​
STAR --genomeDir /mnt/nfs/data/reference_genomes/mm10/STAR \
     --runThreadN 4 \
     --readFilesIn SRR3737440.fastq \
     --outFileNamePrefix STAR.SRR3737440.
     
STAR --genomeDir /mnt/nfs/data/reference_genomes/mm10/STAR \
     --runThreadN 4 \
     --readFilesIn SRR3737441.fastq \
     --outFileNamePrefix STAR.SRR3737441.
     
STAR --genomeDir /mnt/nfs/data/reference_genomes/mm10/STAR \
     --runThreadN 4 \
     --readFilesIn SRR3737442.fastq \
     --outFileNamePrefix STAR.SRR3737442.
     
STAR --genomeDir /mnt/nfs/data/reference_genomes/mm10/STAR \
     --runThreadN 4 \
     --readFilesIn SRR3737443.fastq \
     --outFileNamePrefix STAR.SRR3737443.
     
STAR --genomeDir /mnt/nfs/data/reference_genomes/mm10/STAR \
     --runThreadN 4 \
     --readFilesIn SRR3737444.fastq \
     --outFileNamePrefix STAR.SRR3737444.
     
ls
In [ ]:
 
#Check if header is present and looks the way it should look
head -30 STAR.SRR3737439.Aligned.out.sam | grep '^@'
In [ ]:
 
#Check if the rest of the file looks the way it should look (never use cat for such big files)
head -80 STAR.SRR3737439.Aligned.out.sam | grep -v '^@'
 
Sam files are too big to work with. So we will compress them to bam files.
These are easier to work with

Sam files are too big to work with. So we will compress them to bam files. These are easier to work with

In [ ]:
 
# Firstly: compressing to bam
samtools sort -o SRR3737439.bam STAR.SRR3737439.Aligned.out.sam
samtools sort -o SRR3737440.bam STAR.SRR3737440.Aligned.out.sam
samtools sort -o SRR3737441.bam STAR.SRR3737441.Aligned.out.sam
samtools sort -o SRR3737442.bam STAR.SRR3737442.Aligned.out.sam
samtools sort -o SRR3737443.bam STAR.SRR3737443.Aligned.out.sam
samtools sort -o SRR3737444.bam STAR.SRR3737444.Aligned.out.sam
ls -l *[bs]am
In [ ]:
 
# Secondly: we create an index for the bam files so that we can visualise them in IGV.
samtools index SRR3737439.bam
samtools index SRR3737440.bam
samtools index SRR3737441.bam
samtools index SRR3737442.bam
samtools index SRR3737443.bam
samtools index SRR3737444.bam
ls -l *[bs]a[mi]
In [ ]:
 
# check the size of our directory. We delete the fastq and the sam files because they are too big.
ls -lh /mnt/storage/r0372900/Assignment_bioinformatics2/RNAseq
In [ ]:
 
# We can take a look at the mapping
​
samtools idxstats SRR3737439.bam
samtools flagstat SRR3737439.bam #remember total amount of reads and compare to what got mapped () with certainty and with less certainty ()
​
samtools idxstats SRR3737440.bam
samtools flagstat SRR3737440.bam
​
samtools idxstats SRR3737441.bam
samtools flagstat SRR3737441.bam
​
samtools idxstats SRR3737442.bam
samtools flagstat SRR3737442.bam
​
samtools idxstats SRR3737443.bam
samtools flagstat SRR3737443.bam
​
samtools idxstats SRR3737444.bam
samtools flagstat SRR3737444.bam
In [8]:
 
samtools idxstats SRR3737439.bam
samtools flagstat SRR3737439.bam
chr1	195471971	3031530	0
chr2	182113224	2509773	0
chr3	160039680	2257331	0
chr4	156508116	1880546	0
chr5	151834684	1912161	0
chr6	149736546	2719948	0
chr7	145441459	2535882	0
chr8	129401213	1648420	0
chr9	124595110	2302198	0
chr10	130694993	1441217	0
chr11	122082543	2719082	0
chr12	120129022	991728	0
chr13	120421639	1233925	0
chr14	124902244	1092196	0
chr15	104043685	1470097	0
chr16	98207768	987607	0
chr17	94987271	2735196	0
chr18	90702639	819678	0
chr19	61431566	1171338	0
chrX	171031299	1027703	0
chrY	91744698	34172	0
chrM	16299	1915281	0
chr1_GL456210_random	169725	328	0
chr1_GL456211_random	241735	225	0
chr1_GL456212_random	153618	363	0
chr1_GL456213_random	39340	78	0
chr1_GL456221_random	206961	352	0
chr4_GL456216_random	66673	683	0
chr4_GL456350_random	227966	177	0
chr4_JH584292_random	14945	0	0
chr4_JH584293_random	207968	587	0
chr4_JH584294_random	191905	598	0
chr4_JH584295_random	1976	272	0
chr5_GL456354_random	195993	13	0
chr5_JH584296_random	199368	131	0
chr5_JH584297_random	205776	128	0
chr5_JH584298_random	184189	11	0
chr5_JH584299_random	953012	41	0
chr7_GL456219_random	175968	8	0
chrX_GL456233_random	336933	2030	0
chrY_JH584300_random	182347	3	0
chrY_JH584301_random	259875	0	0
chrY_JH584302_random	155838	1	0
chrY_JH584303_random	158099	1	0
chrUn_GL456239	40056	1	0
chrUn_GL456359	22974	0	0
chrUn_GL456360	31704	3	0
chrUn_GL456366	47073	79	0
chrUn_GL456367	42057	6	0
chrUn_GL456368	20208	10	0
chrUn_GL456370	26764	27	0
chrUn_GL456372	28664	28	0
chrUn_GL456378	31602	578	0
chrUn_GL456379	72385	847	0
chrUn_GL456381	25871	0	0
chrUn_GL456382	23158	9585	0
chrUn_GL456383	38659	5	0
chrUn_GL456385	35240	4	0
chrUn_GL456387	24685	0	0
chrUn_GL456389	28772	3	0
chrUn_GL456390	24668	23	0
chrUn_GL456392	23629	20	0
chrUn_GL456393	55711	5	0
chrUn_GL456394	24323	0	0
chrUn_GL456396	21240	2	0
chrUn_JH584304	114452	10220	0
*	0	0	0
38464485 + 0 in total (QC-passed reads + QC-failed reads)
9361125 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
38464485 + 0 mapped (100.00% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
 
Each .bam and accompanying .bai file can be downloaded and visualised in IGV.

Each .bam and accompanying .bai file can be downloaded and visualised in IGV.

 
Let's visualise the expression of Sox2 for example: Then we see a clear absence of the expression of Sox2 in the KO (bottom).
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/RNAseq-bam-IGV-figure1.JPG">

Let's visualise the expression of Sox2 for example: Then we see a clear absence of the expression of Sox2 in the KO (bottom).

 
#### Step 1.4: calculate reads to gene counts (~annotation)

Step 1.4: calculate reads to gene counts (~annotation)

xxxxxxxxxx
 
-We can now look at the reads per gene. But first we have to annotate our file. 
​
-To annotate we need a .gtf file of the mouse genome.
  This can be found in: /mnt/storage/data/reference_genomes/mm10/Mus_musculus.GRCm38.76.chr.gtf 
  
  Let's make a symbolic link to this file.

-We can now look at the reads per gene. But first we have to annotate our file.

-To annotate we need a .gtf file of the mouse genome. This can be found in: /mnt/storage/data/reference_genomes/mm10/Mus_musculus.GRCm38.76.chr.gtf

Let's make a symbolic link to this file.

In [4]:
 
cd /mnt/storage/r0372900/Assignment_bioinformatics2/RNAseq
ln -sf /mnt/storage/data/reference_genomes/mm10/Mus_musculus.GRCm38.76.chr.gtf /mnt/storage/r0372900/Assignment_bioinformatics2/RNAseq
ls -l *gtf
lrwxrwxrwx 1 r0372900 domain users 71 jan  4 20:01 Mus_musculus.GRCm38.76.chr.gtf -> /mnt/storage/data/reference_genomes/mm10/Mus_musculus.GRCm38.76.chr.gtf
In [5]:
 
# We can take a look at how the .gtf file looks
head -3 Mus_musculus.GRCm38.76.chr.gtf
chr1	pseudogene	gene	3054233	3054733	.	+	.	gene_id "ENSMUSG00000090025"; gene_name "Gm16088"; gene_source "havana"; gene_biotype "pseudogene";
chr1	unprocessed_pseudogene	transcript	3054233	3054733	.	+	.	gene_id "ENSMUSG00000090025"; transcript_id "ENSMUST00000160944"; gene_name "Gm16088"; gene_source "havana"; gene_biotype "pseudogene"; transcript_name "Gm16088-001"; transcript_source "havana";
chr1	unprocessed_pseudogene	exon	3054233	3054733	.	+	.	gene_id "ENSMUSG00000090025"; transcript_id "ENSMUST00000160944"; exon_number "1"; gene_name "Gm16088"; gene_source "havana"; gene_biotype "pseudogene"; transcript_name "Gm16088-001"; transcript_source "havana"; exon_id "ENSMUSE00000848981";
In [37]:
 
# First try one
# -Q stands for minimum quality score of the mapping that the read should have before we count is as a read (default=0).
featureCounts -Q 10 -g gene_name -a Mus_musculus.GRCm38.76.chr.gtf -o SRR3737439.counts SRR3737439.bam
        ==========     _____ _    _ ____  _____  ______          _____  
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \ 
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
	v1.5.0-p1

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 1 BAM file                                       ||
||                           S SRR3737439.bam                                 ||
||                                                                            ||
||             Output file : SRR3737439.counts                                ||
||             Annotations : Mus_musculus.GRCm38.76.chr.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 Mus_musculus.GRCm38.76.chr.gtf ...                    ||
||    Features : 653441                                                       ||
||    Meta-features : 41255                                                   ||
||    Chromosomes/contigs : 58                                                ||
||                                                                            ||
|| Process BAM file SRR3737439.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 38464485                                                  ||
||    Successfully assigned reads : 21596493 (56.1%)                          ||
||    Running time : 0.62 minutes                                             ||
||                                                                            ||
||                         Read assignment finished.                          ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

 
<img src="/user/r0372900/files/Assignment_Bioinformatics2/Genecount_SRR3737439-with-Q10.JPG">
​
The -Q 10 gave us a number of successfully assigned reads of 56.1%. Lowering it did not give any effect on the number of assigned reads.
​
56,1% is an acceptable level however, and the other reads gave similar percentages. So this step is succesfull.
​
    SRR3737439 (56.1%)     (GSM2224570) Sox2 WT stomach 1 [RNA-seq]
​
    SRR3737440 (55.0%)     (GSM2224571) Sox2 WT stomach 2 [RNA-seq]
​
    SRR3737441 (58.2%)     (GSM2224572) Sox2 WT stomach 3 [RNA-seq]
​
    SRR3737442 (59.7%)     (GSM2224573) Sox2 KO stomach 1 [RNA-seq]
​
    SRR3737443 (56.6%)     (GSM2224574) Sox2 KO stomach 2 [RNA-seq]
​
    SRR3737444 (52.2%)     (GSM2224575) Sox2 KO stomach 3 [RNA-seq]

The -Q 10 gave us a number of successfully assigned reads of 56.1%. Lowering it did not give any effect on the number of assigned reads.

56,1% is an acceptable level however, and the other reads gave similar percentages. So this step is succesfull.

SRR3737439 (56.1%)     (GSM2224570)    Sox2 WT stomach 1 [RNA-seq]

SRR3737440 (55.0%)     (GSM2224571)    Sox2 WT stomach 2 [RNA-seq]

SRR3737441 (58.2%)     (GSM2224572)    Sox2 WT stomach 3 [RNA-seq]

SRR3737442 (59.7%)     (GSM2224573)    Sox2 KO stomach 1 [RNA-seq]

SRR3737443 (56.6%)     (GSM2224574)    Sox2 KO stomach 2 [RNA-seq]

SRR3737444 (52.2%)     (GSM2224575)    Sox2 KO stomach 3 [RNA-seq]
In [27]:
 
featureCounts -Q 10 -g gene_name -a Mus_musculus.GRCm38.76.chr.gtf -o all.counts    SRR3737439.bam \
                                                                                    SRR3737440.bam \
                                                                                    SRR3737441.bam \
                                                                                    SRR3737442.bam \
                                                                                    SRR3737443.bam \
                                                                                    SRR3737444.bam
        ==========     _____ _    _ ____  _____  ______          _____  
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \ 
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
	v1.5.0-p1

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 6 BAM files                                      ||
||                           S SRR3737439.bam                                 ||
||                           S SRR3737440.bam                                 ||
||                           S SRR3737441.bam                                 ||
||                           S SRR3737442.bam                                 ||
||                           S SRR3737443.bam                                 ||
||                           S SRR3737444.bam                                 ||
||                                                                            ||
||             Output file : all.counts                                       ||
||             Annotations : Mus_musculus.GRCm38.76.chr.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 Mus_musculus.GRCm38.76.chr.gtf ...                    ||
||    Features : 653441                                                       ||
||    Meta-features : 41255                                                   ||
||    Chromosomes/contigs : 58                                                ||
||                                                                            ||
|| Process BAM file SRR3737439.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 38464485                                                  ||
||    Successfully assigned reads : 21596493 (56.1%)                          ||
||    Running time : 0.52 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3737440.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 49256550                                                  ||
||    Successfully assigned reads : 27084059 (55.0%)                          ||
||    Running time : 0.64 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3737441.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 43882868                                                  ||
||    Successfully assigned reads : 25553601 (58.2%)                          ||
||    Running time : 0.58 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3737442.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 53280404                                                  ||
||    Successfully assigned reads : 31804920 (59.7%)                          ||
||    Running time : 0.71 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3737443.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 51625512                                                  ||
||    Successfully assigned reads : 29211671 (56.6%)                          ||
||    Running time : 0.71 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3737444.bam...                                         ||
||    Single-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 60530777                                                  ||
||    Successfully assigned reads : 31582119 (52.2%)                          ||
||    Running time : 0.78 minutes                                             ||
||                                                                            ||
||                         Read assignment finished.                          ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

In [10]:
 
ls -l *.counts*
-rw-r--r-- 1 r0372900 domain users 7847644 jan  4 20:58 all.counts
-rw-r--r-- 1 r0372900 domain users     616 jan  4 20:58 all.counts.summary
-rw-r--r-- 1 r0372900 domain users 1016903 jan  4 21:03 all.gene.counts
-rw-r--r-- 1 r0372900 domain users 1016903 jan  4 21:18 all.gene.counts.tsv
 
-All the samples have normal results in their counts.summary (see below).

-All the samples have normal results in their counts.summary (see below).

In [29]:
 
head -20 all.counts.summary | column -t
Status                     SRR3737439.bam  SRR3737440.bam  SRR3737441.bam  SRR3737442.bam  SRR3737443.bam  SRR3737444.bam
Assigned                   21596493        27084059        25553601        31804920        29211671        31582119
Unassigned_Ambiguity       860300          1026942         1176656         1360371         1192068         1351493
Unassigned_MultiMapping    0               0               0               0               0               0
Unassigned_NoFeatures      1786860         1769268         1664550         2002508         1868439         1993549
Unassigned_Unmapped        0               0               0               0               0               0
Unassigned_MappingQuality  14220832        19376281        15488061        18112605        19353334        25603616
Unassigned_FragmentLength  0               0               0               0               0               0
Unassigned_Chimera         0               0               0               0               0               0
Unassigned_Secondary       0               0               0               0               0               0
Unassigned_Nonjunction     0               0               0               0               0               0
Unassigned_Duplicate       0               0               0               0               0               0
In [30]:
 
cut -f-6 all.counts > all.genedata.tsv
head all.genedata.tsv
# Program:featureCounts v1.5.0-p1; Command:"featureCounts" "-Q" "10" "-g" "gene_name" "-a" "Mus_musculus.GRCm38.76.chr.gtf" "-o" "all.counts" "SRR3737439.bam" "SRR3737440.bam" "SRR3737441.bam" "SRR3737442.bam" "SRR3737443.bam" "SRR3737444.bam" 
Geneid	Chr	Start	End	Strand	Length
Gm16088	chr1	3054233	3054733	+	501
Gm26206	chr1	3102016	3102125	+	110
Xkr4	chr1;chr1;chr1;chr1	3205901;3213439;3421702;3670552	3207317;3216968;3421901;3671498	-;-;-;-	6094
Gm1992	chr1;chr1	3466587;3513405	3466687;3513553	+;+	250
Gm27396	chr1	3783876	3783933	-	58
Rp1	chr1;chr1;chr1;chr1	4343507;4351910;4352202;4360200	4350091;4352081;4352837;4360314	-;-;-;-	7508
Sox17	chr1;chr1;chr1;chr1;chr1	4490928;4493100;4493772;4495136;4496291	4492668;4493490;4493863;4495942;4496413	-;-;-;-;-	3154
Gm22307	chr1	4529017	4529123	+	107
In [31]:
 
cut -f1,7- all.counts | grep -v '^#' > all.gene.counts
head all.gene.counts
Geneid	SRR3737439.bam	SRR3737440.bam	SRR3737441.bam	SRR3737442.bam	SRR3737443.bam	SRR3737444.bam
Gm16088	0	0	0	0	0	0
Gm26206	0	0	0	0	0	0
Xkr4	1	2	1	3	0	2
Gm1992	0	2	0	0	0	0
Gm27396	0	0	0	0	0	0
Rp1	0	0	0	0	0	0
Sox17	72	122	40	87	105	126
Gm22307	0	0	0	0	0	0
Gm6085	10	14	13	13	20	31
In [41]:
 
#let's also make a .tsv file of the counts so that we can open it in Excel.
cut -f1,7- all.counts | grep -v '^#' > all.gene.counts.tsv
head all.gene.counts.tsv
Geneid	SRR3737439.bam	SRR3737440.bam	SRR3737441.bam	SRR3737442.bam	SRR3737443.bam	SRR3737444.bam
Gm16088	0	0	0	0	0	0
Gm26206	0	0	0	0	0	0
Xkr4	1	2	1	3	0	2
Gm1992	0	2	0	0	0	0
Gm27396	0	0	0	0	0	0
Rp1	0	0	0	0	0	0
Sox17	72	122	40	87	105	126
Gm22307	0	0	0	0	0	0
Gm6085	10	14	13	13	20	31
In [36]:
 
grep Sox2 all.gene.counts
Sox2ot	18	15	14	58	57	78
Sox2	585	573	608	24	14	34
Sox21	3489	3616	5960	4693	3391	3667
 
#### Step 1.5: Differential expression

Step 1.5: Differential expression

 
We had 2 options of doing differential expression: MS Excel in the GUI or DESeq2 in R. We did both.
​
The R-file of DESeq2 can be found in the pdf in attachment under title: "DESeq"

We had 2 options of doing differential expression: MS Excel in the GUI or DESeq2 in R. We did both.

The R-file of DESeq2 can be found in the pdf in attachment under title: "DESeq"

xxxxxxxxxx
#### See attachment: "1. Calculation of differential expressino between WT and KO samples" for DESeq2 script in R-notebook.

See attachment: "1. Calculation of differential expressino between WT and KO samples" for DESeq2 script in R-notebook.

 
## Part 2: ChIP sequencing

Part 2: ChIP sequencing

 
Before we go into detail about the further tests we did with the differential expression data, we analysed the ChIP sequencing data. This gave us more information, which allowed us to choose our tests for the differential expression more carefully.

Before we go into detail about the further tests we did with the differential expression data, we analysed the ChIP sequencing data. This gave us more information, which allowed us to choose our tests for the differential expression more carefully.

 
#### Step 2.1: Make directory + download fastq files

Step 2.1: Make directory + download fastq files

In [ ]:
 
mkdir -p /mnt/storage/r0372900/Assignment_bioinformatics2/ChIPseq/
​
In [15]:
 
cd /mnt/storage/r0372900/Assignment_bioinformatics2/ChIPseq/
pwd
/mnt/storage/r0372900/Assignment_bioinformatics2/ChIPseq
 
Because the ChIPseq files are not too large for the home directory. We could download the sra files with the normal fastq-dump command. After the download, we deleted the cache version of the .sra in the home directory and worked further on the fastq data in our working directory.

Because the ChIPseq files are not too large for the home directory. We could download the sra files with the normal fastq-dump command. After the download, we deleted the cache version of the .sra in the home directory and worked further on the fastq data in our working directory.

In [ ]:
 
fastq-dump SRR3737445 -O /mnt/storage/r0372900/Assignment_bioinformatics2/ChIPseq
rm -r /home/luna.kuleuven.be/r0372900/ncbi/
fastq-dump SRR3737446 -O /mnt/storage/r0372900/Assignment_bioinformatics2/ChIPseq
rm -r /home/luna.kuleuven.be/r0372900/ncbi/
In [ ]:
 
mv SRR3737445.fastq SRR3737445_WT.fastq
mv SRR3737446.fastq SRR3737446_KO.fastq
ls
 
#### Step 2.2: mapping to the genome

Step 2.2: mapping to the genome

 
For mapping of the ChIPseq reads, we used the bowtie2 package.

For mapping of the ChIPseq reads, we used the bowtie2 package.

In [ ]:
 
bowtie2-align -x /mnt/nfs/data/reference_genomes/mm10/mm10 ./SRR3737445_WT.fastq -S SRR3737445_WT.sam
bowtie2-align -x /mnt/nfs/data/reference_genomes/mm10/mm10 ./SRR3737446_KO.fastq -S SRR3737446_KO.sam
 
<img src="/user/r0372900/files/Assignment_Bioinformatics2/ChIPseq-Figure1-bowtie.JPG">

 
after mapping, we once more compress the big .sam file to a smaller .bam file and generate an index to visualize in IGV

after mapping, we once more compress the big .sam file to a smaller .bam file and generate an index to visualize in IGV

In [ ]:
 
samtools view -S -b SRR3737445_WT.sam > SRR3737445_WT.bam
samtools view -S -b SRR3737446_KO.sam > SRR3737446_KO.bam
In [ ]:
 
samtools sort -O bam -o SRR3737445_WT.sorted.bam SRR3737445_WT.bam
samtools sort -O bam -o SRR3737446_KO.sorted.bam SRR3737446_KO.bam 
In [ ]:
 
samtools index SRR3737445_WT.sorted.bam
samtools index SRR3737446_KO.sorted.bam
 
The Bam files can now be visualized in IGV. (See step 2.3 for visualization)

The Bam files can now be visualized in IGV. (See step 2.3 for visualization)

 
#### Step 2.3: calling ChIPseq peaks

Step 2.3: calling ChIPseq peaks

In [ ]:
 
macs2 callpeak -t  SRR3737445_WT.sorted.bam --outdir macs2_SRR3737445_WT -n SRR3737445_WT -g mm -q 0.005
macs2 callpeak -t  SRR3737446_KO.sorted.bam --outdir macs2_SRR3737446_KO -n SRR3737446_KO -g mm -q 0.005
 
This command gives us peaks, narrow peaks, and summits. We will work with the narrow peaks in our further tests.
​
Let's head the narrowpeak file to see how it looks.

This command gives us peaks, narrow peaks, and summits. We will work with the narrow peaks in our further tests.

Let's head the narrowpeak file to see how it looks.

In [16]:
 
head macs2_SRR3737445_WT/SRR3737445_WT_peaks.narrowPeak
chr1	4722724	4722904	SRR3737445_WT_peak_1	100	.	7.73861	14.14513	10.04187	110
chr1	6973751	6973934	SRR3737445_WT_peak_2	69	.	6.70971	10.87522	6.99946	87
chr1	10699869	10700186	SRR3737445_WT_peak_3	84	.	6.98095	12.47094	8.47891	103
chr1	13266870	13267031	SRR3737445_WT_peak_4	66	.	6.49833	10.53417	6.69065	85
chr1	16228429	16228746	SRR3737445_WT_peak_5	207	.	10.67768	25.45601	20.78275	128
chr1	20820242	20820430	SRR3737445_WT_peak_6	98	.	7.89083	13.96368	9.87352	113
chr1	20857021	20857287	SRR3737445_WT_peak_7	71	.	6.32711	10.99427	7.10964	146
chr1	20863850	20864016	SRR3737445_WT_peak_8	137	.	8.97666	18.09726	13.76226	62
chr1	21231745	21231929	SRR3737445_WT_peak_9	71	.	6.58126	11.03197	7.14467	70
chr1	21324355	21324514	SRR3737445_WT_peak_10	96	.	7.72306	13.68940	9.61458	91
 
We can see that the files look good. Now, we can count the rows to see the amount of peaks that were found. We expect the WT to have a lot of peaks (because Sox2 binds a lot of TFBS), while we expect our Cre-induced Sox2 KO to have only very few peaks.

We can see that the files look good. Now, we can count the rows to see the amount of peaks that were found. We expect the WT to have a lot of peaks (because Sox2 binds a lot of TFBS), while we expect our Cre-induced Sox2 KO to have only very few peaks.

In [17]:
 
wc -l macs2_SRR3737445_WT/SRR3737445_WT_peaks.narrowPeak
wc -l macs2_SRR3737446_KO/SRR3737446_KO_peaks.narrowPeak
3431 macs2_SRR3737445_WT/SRR3737445_WT_peaks.narrowPeak
268 macs2_SRR3737446_KO/SRR3737446_KO_peaks.narrowPeak
 
We can see that this is indeed the case, and that the KO has only very few peaks.
​
SRR3737445 = GSM2224576 Wild type Stomach [ChIP-seq]  : 3431
​
SRR3737446 = GSM2224577 Sox2 KO Stomach [ChIP-seq]    : 268

We can see that this is indeed the case, and that the KO has only very few peaks.

SRR3737445 = GSM2224576 Wild type Stomach [ChIP-seq] : 3431

SRR3737446 = GSM2224577 Sox2 KO Stomach [ChIP-seq] : 268

 
Now, let's download the narrowPeak files, save them as .bed files, and perform some gene annotations, enrichment testing, and other tests to them.

Now, let's download the narrowPeak files, save them as .bed files, and perform some gene annotations, enrichment testing, and other tests to them.

 
## Part 3: Functional Analysis Study and Gene Enrichment testing

Part 3: Functional Analysis Study and Gene Enrichment testing

 
As a third and most important part of the project. We tested what those Sox2 binding sites in the genome and the differences in differential expression, now actually meant for the function of Sox2 in the tissue, and the information we can substract from it.

As a third and most important part of the project. We tested what those Sox2 binding sites in the genome and the differences in differential expression, now actually meant for the function of Sox2 in the tissue, and the information we can substract from it.

 
### Tests on the Differential Expression data

Tests on the Differential Expression data

xxxxxxxxxx
1) R             -> checking for compensation by other Sox-family members
​
2) Iregulon      -> identify possible TF for these genes
​
3) GSEA          -> motif enrichment 
​
4) Gene Ontology -> identify biological function of the higher and lower expressed genes respectively and make conclusions

1) R -> checking for compensation by other Sox-family members

2) Iregulon -> identify possible TF for these genes

3) GSEA -> motif enrichment

4) Gene Ontology -> identify biological function of the higher and lower expressed genes respectively and make conclusions

xxxxxxxxxx
 
#### 1) R

1) R

xxxxxxxxxx
#### See attachment: "2. Checking possible compensation for loss of Sox2 activity by Sox family members" in R-notebook

See attachment: "2. Checking possible compensation for loss of Sox2 activity by Sox family members" in R-notebook

xxxxxxxxxx
#### 2) iRegulon

2) iRegulon

xxxxxxxxxx
We inserted our list of differentially expressed genes in iRegulon and looked at the motifs and TF's that it returned.
​
We found the following TF's to be possible candidates for causing our expression levels:
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/RNAseq-figure2-iRegulon-Transcriptiefactoren.JPG">

We inserted our list of differentially expressed genes in iRegulon and looked at the motifs and TF's that it returned.

We found the following TF's to be possible candidates for causing our expression levels:

 
Of these genes, mainly Pou2f1, Pou5f1, Spib, Tcf7, and Gata1 were interesting:
​
    -Spib was differentially expressed with a factor log2(x)=1.5, and is now found to be able to influence this expression as a TF.
    
    -Pou2f1 and Pou5f1 are Oct1 and Oct3/4 respectively. Known to be important growth hormones and dysregulated in some carcinoma's.
    
    -Tcf7 is part of the Wnt-pathway, just like Sox2, that it is upregulated might point out to some kind of compensation mechanism, or otherwise to a dysequilibrium because of the loss of Sox2. 
    
    -Gata1: activates genes for erythrocid differentiation and is known to be present in erythroid leukemia.

Of these genes, mainly Pou2f1, Pou5f1, Spib, Tcf7, and Gata1 were interesting:

-Spib was differentially expressed with a factor log2(x)=1.5, and is now found to be able to influence this expression as a TF.

-Pou2f1 and Pou5f1 are Oct1 and Oct3/4 respectively. Known to be important growth hormones and dysregulated in some carcinoma's.

-Tcf7 is part of the Wnt-pathway, just like Sox2, that it is upregulated might point out to some kind of compensation mechanism, or otherwise to a dysequilibrium because of the loss of Sox2. 

-Gata1: activates genes for erythrocid differentiation and is known to be present in erythroid leukemia.
xxxxxxxxxx
 
#### 3) GSEA

3) GSEA

xxxxxxxxxx
GSEA is able to show us the enriched motifs and the pathways in which they are included.

GSEA is able to show us the enriched motifs and the pathways in which they are included.

xxxxxxxxxx
(GSEA is mainly meant for human genes. We changed the gene names to capital letters to be able to run against human genes. Altough less precise, it still gives us valuable information about the processes involved)

(GSEA is mainly meant for human genes. We changed the gene names to capital letters to be able to run against human genes. Altough less precise, it still gives us valuable information about the processes involved)

xxxxxxxxxx
    3.1) Generation of the Ranked file (.rnk) --> see R-script
3.1) Generation of the Ranked file (.rnk) --> see R-script
xxxxxxxxxx
 
#### See attachment: "3. Generation of the rank list file" in R-notbook

See attachment: "3. Generation of the rank list file" in R-notbook

xxxxxxxxxx
    3.2) Running GSEA
​
We searched for the involvement of Hallmarks in cell-differentation and found the following interesting results:
​
The graphs should be interpreted with a correlation to the presence of Sox2. When there is positive correleation, it means more Sox2 leads to more of that genetic pathway. When there is negative correlation, it means more Sox2 leads to less of that genetic pathway.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure1.png">
We can see that the presence of Sox2 is slightly correlated with an enrichment of genes in the Angiogenesis pathway.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure2-ESTROGEN_RESPONSE_LATE_19.png"> <img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure3-ESTROGEN_RESPONSE_EARLY_17.png">
We can see that the presence of Sox2 is slightly correlated with an enrichment of genes in the Estrogen pathway.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure4-APICAL_SURFACE_11.png">
Sox2 presence leads to enrichment in apical suface proteins. This can be seen as a hint to a link to cancer, as metastasis needs certain apical surface proteins while it needs to lose others.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure5-HEDGEHOG_SIGNALING_1.png">
Sox2 absence clearly leads to diminished Hedgehog signalling pathway.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure6-HALLMARK_HYPOXIA_15.png">
Sox2 absence leads to less hypoxia.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure7-IL6_JAK_STAT3_SIGNALING_47.png">
Sox2 absence is strongly correlated with an increase in IL6, JAK, STAT3 signalling pathway.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure8-INFLAMMATORY_RESPONSE_51.png">
Sox2 absence is correlated to an increase in inflammatory response.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure9-INTERFERON_ALPHA_RESPONSE_41.png">
Sox2 absence is correlated to an increase in interferon-alpha-response.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure10-INTERFERON_GAMMA_RESPONSE_43.png">
Sox2 absence is correlated to an increase in interferon-gamma-response.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure11-HALLMARK_KRAS_SIGNALING_UP.png">
Sox2 absence leads to a diminishment of the KRAS-singalling.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure12-WNT_BETA_CATENIN_SIGNALING_23.png">
Sox2 absence leads to a diminishment of WNT-B-catenin-pathway.
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GSEA-HALLMARK-figure13-XENOBIOTIC_METABOLISM.png">
Sox2 absence leads to an increase in Xenobiotic metabolism.
​
3.2) Running GSEA

We searched for the involvement of Hallmarks in cell-differentation and found the following interesting results:

The graphs should be interpreted with a correlation to the presence of Sox2. When there is positive correleation, it means more Sox2 leads to more of that genetic pathway. When there is negative correlation, it means more Sox2 leads to less of that genetic pathway.

We can see that the presence of Sox2 is slightly correlated with an enrichment of genes in the Angiogenesis pathway.

We can see that the presence of Sox2 is slightly correlated with an enrichment of genes in the Estrogen pathway.

Sox2 presence leads to enrichment in apical suface proteins. This can be seen as a hint to a link to cancer, as metastasis needs certain apical surface proteins while it needs to lose others.

Sox2 absence clearly leads to diminished Hedgehog signalling pathway.

Sox2 absence leads to less hypoxia.

Sox2 absence is strongly correlated with an increase in IL6, JAK, STAT3 signalling pathway.

Sox2 absence is correlated to an increase in inflammatory response.

Sox2 absence is correlated to an increase in interferon-alpha-response.

Sox2 absence is correlated to an increase in interferon-gamma-response.

Sox2 absence leads to a diminishment of the KRAS-singalling.

Sox2 absence leads to a diminishment of WNT-B-catenin-pathway.

Sox2 absence leads to an increase in Xenobiotic metabolism.

xxxxxxxxxx
#### 4) Gene Ontology (Gorilla)

4) Gene Ontology (Gorilla)

xxxxxxxxxx
 
For the Gene ontology we used Gorilla. The gene lists were obtained via ranking them in R the same way we did for GSEA. Gorilla gives us the cellular processes and the pathway that the differentially expressed genes are involved in. The results are described below: 
​
Note: there were many genes involved in the 10^-3 range. We filtered these out by setting the p-value threshold to 10^-4

For the Gene ontology we used Gorilla. The gene lists were obtained via ranking them in R the same way we did for GSEA. Gorilla gives us the cellular processes and the pathway that the differentially expressed genes are involved in. The results are described below:

Note: there were many genes involved in the 10^-3 range. We filtered these out by setting the p-value threshold to 10^-4

xxxxxxxxxx
#### 4.1) Gorilla of upregulated genes

4.1) Gorilla of upregulated genes

xxxxxxxxxx
The upregulated genes are important for several processes in lipid production, included those of the inflammatory response. This can point to a possible link with tumorigenesis. Furthermore, it has a role in the negative regulation of the immune respons, which also can point to a possible link with tumorigenesis.
In terms of function, the upregulated genes are important for arachidonate 5-lipoxygenase activity.
​
Processes:
<img src="/user/r0372900/files/Assignment_Bioinformatics2/RNAseq-figure3-Gorilla.JPG">
​
Function:
<img src="/user/r0372900/files/Assignment_Bioinformatics2/RNAseq-figure4-Gorilla.JPG">

The upregulated genes are important for several processes in lipid production, included those of the inflammatory response. This can point to a possible link with tumorigenesis. Furthermore, it has a role in the negative regulation of the immune respons, which also can point to a possible link with tumorigenesis. In terms of function, the upregulated genes are important for arachidonate 5-lipoxygenase activity.

Processes:

Function:

xxxxxxxxxx
#### 4.2) Gorilla of downregulated genes

4.2) Gorilla of downregulated genes

xxxxxxxxxx
The downregulated genes are important for several glucuronidation processes, including those for xenobiotics, flavonoids and cellular proteins.
In terms of function, the downregulated genes ara important for glucuronidation and interleukin receptor activity. There is no direct relevance in their downregulation in cancer.
​
Processes:
<img src="/user/r0372900/files/Assignment_Bioinformatics2/RNAseq-figure5-Gorilla.JPG">
​
Function:
<img src="/user/r0372900/files/Assignment_Bioinformatics2/RNAseq-figure6-Gorilla.JPG">
<img src="/user/r0372900/files/Assignment_Bioinformatics2/RNAseq-figure7-Gorilla.JPG">

The downregulated genes are important for several glucuronidation processes, including those for xenobiotics, flavonoids and cellular proteins. In terms of function, the downregulated genes ara important for glucuronidation and interleukin receptor activity. There is no direct relevance in their downregulation in cancer.

Processes:

Function:

xxxxxxxxxx
Note: When performing Gorilla analysis on the whole gene list and setting the p-value at 10^-3, we got more results that can link Sox2 to tumorigenesis. These were all in the fields of morphology, inflammation and immune response. (Data not shown)

Note: When performing Gorilla analysis on the whole gene list and setting the p-value at 10^-3, we got more results that can link Sox2 to tumorigenesis. These were all in the fields of morphology, inflammation and immune response. (Data not shown)

xxxxxxxxxx
 
### Tests on the ChIPseq data

Tests on the ChIPseq data

 
#### 1) RSAT

1) RSAT

xxxxxxxxxx
Using UCSC-table browser, we got the sequences of our narrowpeaks. From these sequences, we identified the most common Motifs that were present in regions that Sox2 bound. The top 3 of motifs are the following:
​
    1) AACAAAG  = Sox2 binding motif
    
    2) AACAATG  = Other Sox proteins (is logical because same family of TF.)
    
    3) TGACTCA = FOSL1, FOSL2 and JUNB binding motif (these TF's are involved in MAPK signalling and oxidative stress.)
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/RSAT-figure1.JPG">

Using UCSC-table browser, we got the sequences of our narrowpeaks. From these sequences, we identified the most common Motifs that were present in regions that Sox2 bound. The top 3 of motifs are the following:

1) AACAAAG  = Sox2 binding motif

2) AACAATG  = Other Sox proteins (is logical because same family of TF.)

3) TGACTCA = FOSL1, FOSL2 and JUNB binding motif (these TF's are involved in MAPK signalling and oxidative stress.)

xxxxxxxxxx
When all the motifs were grouped together, we found this list of TF's that are able to bind:
​
FOSL1, 
FOSL2, 
FOXP1, 
FOXP3, 
GATA1, 
GATA3, 
GATA4, 
JUNB, 
JUND, 
Klf1, 
Klf5, 
LEF1, 
Sox10, 
Sox2, 
Sox21, 
Sox3, 
Sox5, 
Sox6, 
Sox9, 
SP1, 
SP2, 
SP3, 
SRY, 
TCF7L2.
​

When all the motifs were grouped together, we found this list of TF's that are able to bind:

FOSL1, FOSL2, FOXP1, FOXP3, GATA1, GATA3, GATA4, JUNB, JUND, Klf1, Klf5, LEF1, Sox10, Sox2, Sox21, Sox3, Sox5, Sox6, Sox9, SP1, SP2, SP3, SRY, TCF7L2.

 
#### 2) GREAT

2) GREAT

xxxxxxxxxx
 
Then, we used GREAT, a tool that could show us the neighouring genes. We searched for all the genes that were within 10kb up- or downstream of our peaks. We uploaded the peaks to the website in a .bed file. 
​
The results of GREAT was a file with all the neigbouring genes for each ChIPseq-peak.

Then, we used GREAT, a tool that could show us the neighouring genes. We searched for all the genes that were within 10kb up- or downstream of our peaks. We uploaded the peaks to the website in a .bed file.

The results of GREAT was a file with all the neigbouring genes for each ChIPseq-peak.

xxxxxxxxxx
 
#### See attachment: "4. Analysis of location of Sox2 binding peaks in the WT sample" in the R-notebook.

See attachment: "4. Analysis of location of Sox2 binding peaks in the WT sample" in the R-notebook.

xxxxxxxxxx
-Using R, we tested how many of the ChIPseq binding sites were located within the 500bp upstream region of the genes. We found that is was 13.2%. The same could be done for binding sites within 500bp of promotor regions, these were 2.22%.
(See R-script subtitle 4)

-Using R, we tested how many of the ChIPseq binding sites were located within the 500bp upstream region of the genes. We found that is was 13.2%. The same could be done for binding sites within 500bp of promotor regions, these were 2.22%. (See R-script subtitle 4)

xxxxxxxxxx
-Interestingly, our data also contained the Sox2 gene 500kb upstream of one of the peaks. This has been described previously in literature and has been assigned as the cause of Sox2's self-induction. 
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GREAT-figure1.JPG">

-Interestingly, our data also contained the Sox2 gene 500kb upstream of one of the peaks. This has been described previously in literature and has been assigned as the cause of Sox2's self-induction.

xxxxxxxxxx
#### 3) Gene Ontology

3) Gene Ontology

xxxxxxxxxx
 
Cellular component:
​
-Mainly for intestinal tissue
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GO-figure1-cellular-component.png">
​
Mouse phenotype:
​
-A lot of associated cancers and abnormalities
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GO-figure2-mouse-phenotype.png">
​
Molecular function:
​
<img src="/user/r0372900/files/Assignment_Bioinformatics2/GO-figure3-molecular-function.png">

Cellular component:

-Mainly for intestinal tissue

Mouse phenotype:

-A lot of associated cancers and abnormalities

Molecular function:

xxxxxxxxxx
### Cross-referencing of RNAseq with ChIPseq data

Cross-referencing of RNAseq with ChIPseq data

xxxxxxxxxx
We can conclude that only 2 significantly differentially expressed genes have a Sox2 binding peak in their upstream region, while none of the significantly differentially expressed genes have a Sox2 binding peak in their promotor region.
​
Cxcl17 shows singificant downregulation upon knock down, albeit the padj value (0.048695841) is on the verge of non-significance and its log2FoldChange is also low. Acsm3 is significantly upregulated on knock down, though the log2FoldChange value is again on the low side. Here the results provide evidence for both activation and repression of transcription by Sox2.

We can conclude that only 2 significantly differentially expressed genes have a Sox2 binding peak in their upstream region, while none of the significantly differentially expressed genes have a Sox2 binding peak in their promotor region.

Cxcl17 shows singificant downregulation upon knock down, albeit the padj value (0.048695841) is on the verge of non-significance and its log2FoldChange is also low. Acsm3 is significantly upregulated on knock down, though the log2FoldChange value is again on the low side. Here the results provide evidence for both activation and repression of transcription by Sox2.

xxxxxxxxxx
 
#### See attachment: "5. Exploration of the effect of Sox2 binding on differential expression" 

See attachment: "5. Exploration of the effect of Sox2 binding on differential expression"

xxxxxxxxxx
 
## Conclusion

Conclusion

xxxxxxxxxx
 
Our data shows that the Sox2 KO was succesful. The affected genes give some hints towards a possible role in cancer, identified through a very general gene ontology. In our specific case however, the KO of Sox2 in gastric stem cells lead to no significant noticable effect; We identified no compensation mechanisms and the morphology of the gatric tissue of the mice was not affected. 
​
The literature that reports Sox2 being involved in cancer is ambiguous. Different phenotypes can be the cause of these reports. In that case, our data show no direct involvement in cancer of Sox2 in gastric stem cell populations.
​
In conclusion, our data analysis suggests that Sox2 has a different role in gastric tissue compared to other tissues and no significant role in tumorigenesis has been found.

Our data shows that the Sox2 KO was succesful. The affected genes give some hints towards a possible role in cancer, identified through a very general gene ontology. In our specific case however, the KO of Sox2 in gastric stem cells lead to no significant noticable effect; We identified no compensation mechanisms and the morphology of the gatric tissue of the mice was not affected.

The literature that reports Sox2 being involved in cancer is ambiguous. Different phenotypes can be the cause of these reports. In that case, our data show no direct involvement in cancer of Sox2 in gastric stem cell populations.

In conclusion, our data analysis suggests that Sox2 has a different role in gastric tissue compared to other tissues and no significant role in tumorigenesis has been found.