### RNA seq studyIn order to further investigate gene expression changes in diabetes, we conducted an RNA Seq study.RNA sequencing data (fastq files) was obtained from a study published by Gutiérrez et al. (2017), made available on NCBI GEO under GSE79725.In this study, human pancreatic islets were extracted and transfected with either a scambled shRNA (control) or Ad.sh-NKX2.2 which degrades RNA for NKX2.2. NKX2.2 is a transcription factor important for pancreatic beta cell activity. Loss of NKX2.2 leads to a loss of insulin and proper hormonal function in the beta cell. This results in a phenotype similar to diabetes. We aim to investigate the effects of NKX2.2 deficiency on gene expression by analysing the RNA seq data from 3 control samples and 3 samples with NKX2.2 shRNA knock down.The 6 fastq samples are:GSM2101626 Ad.Scramble-1 LG3 = controlGSM2101627 Ad.Scramble-2 LG6 = controlGSM2101628 Ad.Scramble-3 LG9 = controlGSM2101629 Ad.sh-NKX2.2-1 LG2 = knock downGSM2101630 Ad.sh-NKX2.2-2 LG5 = knock downGSM2101631 Ad.sh-NKX2.2-3 LG8 = knock downIn order to further investigate gene expression changes in diabetes, we conducted an RNA Seq study.
RNA sequencing data (fastq files) was obtained from a study published by Gutiérrez et al. (2017), made available on NCBI GEO under GSE79725.
In this study, human pancreatic islets were extracted and transfected with either a scambled shRNA (control) or Ad.sh-NKX2.2 which degrades RNA for NKX2.2. NKX2.2 is a transcription factor important for pancreatic beta cell activity. Loss of NKX2.2 leads to a loss of insulin and proper hormonal function in the beta cell. This results in a phenotype similar to diabetes.
We aim to investigate the effects of NKX2.2 deficiency on gene expression by analysing the RNA seq data from 3 control samples and 3 samples with NKX2.2 shRNA knock down.
The 6 fastq samples are: GSM2101626 Ad.Scramble-1 LG3 = control GSM2101627 Ad.Scramble-2 LG6 = control GSM2101628 Ad.Scramble-3 LG9 = control GSM2101629 Ad.sh-NKX2.2-1 LG2 = knock down GSM2101630 Ad.sh-NKX2.2-2 LG5 = knock down GSM2101631 Ad.sh-NKX2.2-3 LG8 = knock down
#### Create a new folder to conduct the RNA seq analysisWe called it RNAseqPAN because the data is from sequencing pancreatic isletsWe called it RNAseqPAN because the data is from sequencing pancreatic islets
mkdir -p ~/data/RNAseqPANcd ~/data/RNAseqPANpwdWe used the FastQC tool to check the quality of the original fastq filesWe used the FastQC tool to check the quality of the original fastq files
/usr/local/bin/FastQC/fastqc -o . SRR3313328.fastq.gzls -lls *htmlWe loaded the hg19 STAR database which is used to map the fastq reads to the reference human genomeWe loaded the hg19 STAR database which is used to map the fastq reads to the reference human genome
STAR --genomeLoad LoadAndExit --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db pwdwe load the fastq file and use "readFilesCommand zcat" to map it to hg19we load the fastq file and use "readFilesCommand zcat" to map it to hg19
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \ --genomeLoad LoadAndKeep \ --runThreadN 2 \ --readFilesCommand zcat SRR3313328.fastq.gz \ --outFileNamePrefix SRR3313328.The reads from the fastq file are mapped and generated in the Aligned.out.sam file The reads from the fastq file are mapped and generated in the Aligned.out.sam file
ls -l SRR3313328.*Use head to check the alignments for each of the chromosomes in the sam fileUse head to check the alignments for each of the chromosomes in the sam file
head -40 SRR3313328.Aligned.out.sam | grep '^@'Use samtools to create a bam file from the sam file, which can then be indexed and further analyzed.Use samtools to create a bam file from the sam file, which can then be indexed and further analyzed.
samtools sort -o SRR3313328.bam SRR3313328.Aligned.out.samsamtools index SRR3313328.bamsamtools view SRR3313328.bam | head -3### The next few cells repeat the same process to generate indexed bam files for all the 6 fastq files./usr/local/bin/FastQC/fastqc -o . SRR3313327.fastq.gzSTAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \ --genomeLoad LoadAndKeep \ --runThreadN 2 \ --readFilesCommand zcat SRR3313327.fastq.gz \ --outFileNamePrefix SRR3313328.ls -l SRR3313327.*head -40 SRR3313327.Aligned.out.sam | grep '^@'samtools sort -o SRR3313327.bam SRR3313327.Aligned.out.samsamtools view SRR3313327.bam | head -3samtools index SRR3313327.bam/usr/local/bin/FastQC/fastqc -o . SRR3313326.fastq.gzSTAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \ --genomeLoad LoadAndKeep \ --runThreadN 2 \ --readFilesCommand zcat SRR3313326.fastq.gz \ --outFileNamePrefix SRR3313326.ls -l SRR3313326.*head -40 SRR3313326.Aligned.out.sam | grep '^@'samtools sort -o SRR3313326.bam SRR3313326.Aligned.out.samsamtools view SRR3313326.bam | head -3samtools index SRR3313326.bamls -l SRR3313326*[bs]a[mi]############################/usr/local/bin/FastQC/fastqc -o . SRR3313330.fastq.gzSTAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \ --genomeLoad LoadAndKeep \ --runThreadN 2 \ --readFilesCommand zcat SRR3313330.fastq.gz \ --outFileNamePrefix SRR3313330. ls -l SRR3313330.*head -40 SRR3313330.Aligned.out.sam | grep '^@'samtools sort -o SRR3313330.bam SRR3313330.Aligned.out.samsamtools view SRR3313330.bam | head -3samtools index SRR3313330.bamls -l SRR3313326*[bs]a[mi]samtools idxstats SRR3313326.bam/usr/local/bin/FastQC/fastqc -o . SRR3313329.fastq.gzSTAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \ --genomeLoad LoadAndKeep \ --runThreadN 2 \ --readFilesCommand zcat SRR3313329.fastq.gz \ --outFileNamePrefix SRR3313329. ls -l SRR3313329.*head -40 SRR3313329.Aligned.out.sam | grep '^@'samtools sort -o SRR3313329.bam SRR3313330.Aligned.out.samsamtools index SRR3313329.bamls -l SRR3313329*[bs]a[mi]samtools view SRR3313329.bam | head -3samtools idxstats SRR3313329.bamcd ~/data/RNAseqPAN/testpwd/usr/local/bin/FastQC/fastqc -o . SRR3313331.fastq.gzSTAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \ --genomeLoad LoadAndKeep \ --runThreadN 2 \ --readFilesCommand zcat SRR3313331.fastq.gz \ --outFileNamePrefix SRR3313331. ls -l SRR3313331.*head -40 SRR3313331.Aligned.out.sam | grep '^@'samtools sort -o SRR3313331.bam SRR3313331.Aligned.out.samsamtools index SRR3313331.bamsamtools view SRR3313331.bam | head -3cd ~/data/RNAseqPAN/testpwdls -l *gtfpwdhead -9 gencode.v19.nopseudo.plus.sort.gtfsamtools flagstat SRR3313328.bammkdir -p ~/data/RNAseqPAN/FCcd ~/data/RNAseqPAN/FCpwdFeaturecounts is used to count the mapped reads and give an indication of gene expression levels for each of the different samples.Featurecounts is used to count the mapped reads and give an indication of gene expression levels for each of the different samples.
#### Make a soft link to the genecode annotation file to the FC folderln -sf /mnt/nfs/data/RNA-seq/*.gtf ~/data/RNAseqPAN/FCls -l *gtfls -l *gtfls -l *bampwd### Execute feature countsWe used gencode.v19.nopseudo.plus.sort.gtf as the reference annotation file to which our reads from the bam files are assigned.The final output file is called ALL6.countsWe used gencode.v19.nopseudo.plus.sort.gtf as the reference annotation file to which our reads from the bam files are assigned.
The final output file is called ALL6.counts
featureCounts \ -Q 10 \ -g gene_name \ -a gencode.v19.nopseudo.plus.sort.gtf \ -o ALL6.counts \ SRR3313326.bam SRR3313327.bam SRR3313328.bam SRR3313329.bam SRR3313330.bam SRR3313331.bam### After executing the featurecounts command, we notice only 0.1% of reads were assigned to the annotation fileThis maybe because we used the STAR program to map the reads rather than Tophat which was used by the original authors of the study.This maybe because we used the STAR program to map the reads rather than Tophat which was used by the original authors of the study.
Looking at the summary file, we can see there are not many assigned reads for each of the 6 samples.Looking at the summary file, we can see there are not many assigned reads for each of the 6 samples.
head -20 ALL6.counts.summary | column -tCreate a tsv file for the read countsCreate a tsv file for the read counts
cut -f-6 ALL6.counts > ALL6.genedata.tsvhead ALL6.genedata.tsvcut -f1,7- ALL6.counts | grep -v '^#' > ALL6.gene.countshead ALL6.gene.countsgrep -v '^#' ALL6.gene.counts > ALL6.gene.counts.tsvThe gene.counts.tsv file is copied to the computer and opened in excel. An example can be seen in supplementary figure 5 and 6.The analysis does not appear to show many genes that are significantly expressed. We thought this may be due to the fact that we need to use a different method to map the reads, but looking at the bam files, they appear to have a normal number of reads mapped. Some examples are shown below.The gene.counts.tsv file is copied to the computer and opened in excel. An example can be seen in supplementary figure 5 and 6.
The analysis does not appear to show many genes that are significantly expressed. We thought this may be due to the fact that we need to use a different method to map the reads, but looking at the bam files, they appear to have a normal number of reads mapped. Some examples are shown below.
samtools idxstats SRR3313326.bamsamtools idxstats SRR3313331.bamIn the cells above, we can see there are a good number of reads mapped successfully in the bam files we generated using STAR.In the cells above, we can see there are a good number of reads mapped successfully in the bam files we generated using STAR.
After generating the gene counts file, we used DeSeq to analyse differential expression. This programming is done using R, therefore it cannot be shown in this notebook. This work can be seen in the first notebook titled "notebook_1_R". After generating the gene counts file, we used DeSeq to analyse differential expression. This programming is done using R, therefore it cannot be shown in this notebook. This work can be seen in the first notebook titled "notebook_1_R".
Our featurecounts analysis did not seem to work as intended, as we had very few reads aligned. The top genes we found using the tsv file were : POTEF MT1G MT1H MT1X POTEI POTEEThese genes are all from 2 families: POTE Ankyrin Domain Family and the Metallothioneins. Metallothioneins are a family of proteins containing metal binding regions which allows them regulate levels of metals such as zinc and copper. Metallothioneins have been shown to have an effect on the induction of diabetes. Increased levels of Metallothioneins are associated with a lower chance of acquiring diabetes (Cai et al.2004).Our featurecounts analysis did not seem to work as intended, as we had very few reads aligned. The top genes we found using the tsv file were :
POTEF
MT1G
MT1H
MT1X
POTEI
POTEE
These genes are all from 2 families: POTE Ankyrin Domain Family and the Metallothioneins. Metallothioneins are a family of proteins containing metal binding regions which allows them regulate levels of metals such as zinc and copper. Metallothioneins have been shown to have an effect on the induction of diabetes. Increased levels of Metallothioneins are associated with a lower chance of acquiring diabetes (Cai et al.2004).