### RNA seq study
​
In 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

RNA seq study

In 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 analysis
We called it RNAseqPAN because the data is from sequencing pancreatic islets

Create a new folder to conduct the RNA seq analysis

We called it RNAseqPAN because the data is from sequencing pancreatic islets

In [ ]:
 
mkdir -p ~/data/RNAseqPAN
cd ~/data/RNAseqPAN
In [4]:
 
pwd
/home/luna.kuleuven.be/r0624871/data/RNAseqPAN/test
In [5]:
 
​
total 1786248
-rw-r--r-- 1 r0624871 domain users 1936821933 jan 28 19:30 SRR3313328.fastq.gz
 
We used the FastQC tool to check the quality of the original fastq files

We used the FastQC tool to check the quality of the original fastq files

In [7]:
 
/usr/local/bin/FastQC/fastqc -o . SRR3313328.fastq.gz
Started analysis of SRR3313328.fastq.gz
Approx 5% complete for SRR3313328.fastq.gz
Approx 10% complete for SRR3313328.fastq.gz
Approx 15% complete for SRR3313328.fastq.gz
Approx 20% complete for SRR3313328.fastq.gz
Approx 25% complete for SRR3313328.fastq.gz
Approx 30% complete for SRR3313328.fastq.gz
Approx 35% complete for SRR3313328.fastq.gz
Approx 40% complete for SRR3313328.fastq.gz
Approx 45% complete for SRR3313328.fastq.gz
Approx 50% complete for SRR3313328.fastq.gz
Approx 55% complete for SRR3313328.fastq.gz
Approx 60% complete for SRR3313328.fastq.gz
Approx 65% complete for SRR3313328.fastq.gz
Approx 70% complete for SRR3313328.fastq.gz
Approx 75% complete for SRR3313328.fastq.gz
Approx 80% complete for SRR3313328.fastq.gz
Approx 85% complete for SRR3313328.fastq.gz
Approx 90% complete for SRR3313328.fastq.gz
Approx 95% complete for SRR3313328.fastq.gz
Analysis complete for SRR3313328.fastq.gz
In [8]:
 
ls -l
ls *html
total 1892256
-rw-r--r-- 1 r0624871 domain users     353810 jan 28 19:37 SRR3313328_fastqc.html
-rw-r--r-- 1 r0624871 domain users     484351 jan 28 19:37 SRR3313328_fastqc.zip
-rw-r--r-- 1 r0624871 domain users 1936821933 jan 28 19:41 SRR3313328.fastq.gz
SRR3313328_fastqc.html
 
We loaded the hg19 STAR database which is used to map the fastq reads to the reference human genome

We loaded the hg19 STAR database which is used to map the fastq reads to the reference human genome

In [10]:
 
STAR --genomeLoad LoadAndExit --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db 
Jan 28 19:44:23 ..... started STAR run
Jan 28 19:44:23 ..... loading genome
In [11]:
 
pwd
/home/luna.kuleuven.be/r0624871/data/RNAseqPAN/test
 
we load the fastq file and use "readFilesCommand zcat" to map it to hg19

we load the fastq file and use "readFilesCommand zcat" to map it to hg19

In [15]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesCommand zcat SRR3313328.fastq.gz \
     --outFileNamePrefix SRR3313328.
Jan 28 19:55:22 ..... started STAR run
Jan 28 19:55:22 ..... loading genome
Jan 28 19:55:22 ..... started mapping
gzip: gzip: Read2.gz: No such file or directory
Read1.gz: No such file or directory
Jan 28 20:20:08 ..... finished successfully
 
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

In [16]:
 
ls -l SRR3313328.*
-rw-r--r-- 1 r0624871 domain users  332423203 jan 28 20:20 SRR3313328.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users 1936821933 jan 28 20:12 SRR3313328.fastq.gz
-rw-r--r-- 1 r0624871 domain users       1833 jan 28 20:20 SRR3313328.Log.final.out
-rw-r--r-- 1 r0624871 domain users      16167 jan 28 20:20 SRR3313328.Log.out
-rw-r--r-- 1 r0624871 domain users       2960 jan 28 20:20 SRR3313328.Log.progress.out
-rw-r--r-- 1 r0624871 domain users     217886 jan 28 20:20 SRR3313328.SJ.out.tab
 
Use head to check the alignments for each of the chromosomes in the sam file

Use head to check the alignments for each of the chromosomes in the sam file

In [17]:
 
head -40 SRR3313328.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
@SQ	SN:chr9	LN:141213431
@SQ	SN:chr10	LN:135534747
@SQ	SN:chr11	LN:135006516
@SQ	SN:chr12	LN:133851895
@SQ	SN:chr13	LN:115169878
@SQ	SN:chr14	LN:107349540
@SQ	SN:chr15	LN:102531392
@SQ	SN:chr16	LN:90354753
@SQ	SN:chr17	LN:81195210
@SQ	SN:chr18	LN:78077248
@SQ	SN:chr19	LN:59128983
@SQ	SN:chr20	LN:63025520
@SQ	SN:chr21	LN:48129895
@SQ	SN:chr22	LN:51304566
@SQ	SN:chrX	LN:155270560
@SQ	SN:chrY	LN:59373566
@PG	ID:STAR	PN:STAR	VN:STAR_2.5.2b	CL:STAR   --runThreadN 2   --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db   --genomeLoad LoadAndKeep   --readFilesCommand zcat   SRR3313328.fastq.gz      --outFileNamePrefix SRR3313328.
@CO	user command line: STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db --genomeLoad LoadAndKeep --runThreadN 2 --readFilesCommand zcat SRR3313328.fastq.gz --outFileNamePrefix SRR3313328.
 
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.

In [18]:
 
samtools sort -o SRR3313328.bam SRR3313328.Aligned.out.sam
In [19]:
 
samtools index SRR3313328.bam
In [20]:
 
samtools view SRR3313328.bam | head -3
SRR3313328.12286126	99	chr1	23315	3	11M304082N90M	=	662230	638998	CTGAGCCAAGGGAGCTTGTTTGCTGGGAGGCGGGAGATGCAGCCGGGAGGAACAGCTGGGCCATGCGGGAGGCAGAGGCCGGGCCTCCTCAAGTCGGCCTC	BBBBB//<<FBFFFFFFFFFFFFFFFFFFFFBFFF<FFFB<FFFFBFFFF<FFFFFFFFFFFFFFFFFBFFFFFFFFFFFFFFFFFFFFFFFFFFBBFFFF	NH:i:2	HI:i:1	AS:i:151	nM:i:10
SRR3313328.12286126	419	chr1	23315	3	11M304082N90M	=	662230	638998	CTGAGCCAAGGGAGCTTGTTTGCTGGGAGGCGGGAGATGCAGCCGGGAGGAACAGCTGGGCCATGCGGGAGGCAGAGGCCGGGCCTCCTCAAGTCGGCCTC	BBBBB//<<FBFFFFFFFFFFFFFFFFFFFFBFFF<FFFB<FFFFBFFFF<FFFFFFFFFFFFFFFFFBFFFFFFFFFFFFFFFFFFFFFFFFFFBBFFFF	NH:i:2	HI:i:2	AS:i:151	nM:i:10
SRR3313328.11484691	99	chr1	81444	3	99M2S	=	403715	322368	CATACAACCATTCTGTTTCTTATTTTCAGTACCATATTTAATAAATATCAGTTATTCAATACTTTATTTAGACATTTTGTTAGATTATTTTGACCAACTNN	BBBBBFFFFFFFFFFFFFFFFFFFFF<FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF<F<FFFFFF<	NH:i:2	HI:i:1	AS:i:191	nM:i:0
samtools view: writing to standard output failed: Broken pipe
samtools view: error closing standard output: -1
 
### The next few cells repeat the same process to generate indexed bam files for all the 6 fastq files.

The next few cells repeat the same process to generate indexed bam files for all the 6 fastq files.

In [21]:
 
/usr/local/bin/FastQC/fastqc -o . SRR3313327.fastq.gz
Started analysis of SRR3313327.fastq.gz
Approx 5% complete for SRR3313327.fastq.gz
Approx 10% complete for SRR3313327.fastq.gz
Approx 15% complete for SRR3313327.fastq.gz
Approx 20% complete for SRR3313327.fastq.gz
Approx 25% complete for SRR3313327.fastq.gz
Approx 30% complete for SRR3313327.fastq.gz
Approx 35% complete for SRR3313327.fastq.gz
Approx 40% complete for SRR3313327.fastq.gz
Approx 45% complete for SRR3313327.fastq.gz
Approx 50% complete for SRR3313327.fastq.gz
Approx 55% complete for SRR3313327.fastq.gz
Approx 60% complete for SRR3313327.fastq.gz
Approx 65% complete for SRR3313327.fastq.gz
Approx 70% complete for SRR3313327.fastq.gz
Approx 75% complete for SRR3313327.fastq.gz
Approx 80% complete for SRR3313327.fastq.gz
Approx 85% complete for SRR3313327.fastq.gz
Approx 90% complete for SRR3313327.fastq.gz
Approx 95% complete for SRR3313327.fastq.gz
Analysis complete for SRR3313327.fastq.gz
In [22]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesCommand zcat SRR3313327.fastq.gz \
     --outFileNamePrefix SRR3313328.
Jan 28 20:43:41 ..... started STAR run
Jan 28 20:43:41 ..... loading genome
Jan 28 20:43:41 ..... started mapping
gzip: Read1.gz: No such file or directory
gzip: Read2.gz: No such file or directory
Jan 28 21:04:08 ..... finished successfully
In [23]:
 
ls -l SRR3313327.*
-rw-r--r-- 1 r0624871 domain users  248128672 jan 28 21:04 SRR3313327.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users 1807131876 jan 28 20:32 SRR3313327.fastq.gz
-rw-r--r-- 1 r0624871 domain users       1831 jan 28 21:04 SRR3313327.Log.final.out
-rw-r--r-- 1 r0624871 domain users      16167 jan 28 21:04 SRR3313327.Log.out
-rw-r--r-- 1 r0624871 domain users       2488 jan 28 21:04 SRR3313327.Log.progress.out
-rw-r--r-- 1 r0624871 domain users     171730 jan 28 21:04 SRR3313327.SJ.out.tab
In [24]:
 
head -40 SRR3313327.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
@SQ	SN:chr9	LN:141213431
@SQ	SN:chr10	LN:135534747
@SQ	SN:chr11	LN:135006516
@SQ	SN:chr12	LN:133851895
@SQ	SN:chr13	LN:115169878
@SQ	SN:chr14	LN:107349540
@SQ	SN:chr15	LN:102531392
@SQ	SN:chr16	LN:90354753
@SQ	SN:chr17	LN:81195210
@SQ	SN:chr18	LN:78077248
@SQ	SN:chr19	LN:59128983
@SQ	SN:chr20	LN:63025520
@SQ	SN:chr21	LN:48129895
@SQ	SN:chr22	LN:51304566
@SQ	SN:chrX	LN:155270560
@SQ	SN:chrY	LN:59373566
@PG	ID:STAR	PN:STAR	VN:STAR_2.5.2b	CL:STAR   --runThreadN 2   --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db   --genomeLoad LoadAndKeep   --readFilesCommand zcat   SRR3313327.fastq.gz      --outFileNamePrefix SRR3313328.
@CO	user command line: STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db --genomeLoad LoadAndKeep --runThreadN 2 --readFilesCommand zcat SRR3313327.fastq.gz --outFileNamePrefix SRR3313328.
In [25]:
 
samtools sort -o SRR3313327.bam SRR3313327.Aligned.out.sam
In [26]:
 
samtools view SRR3313327.bam | head -3
SRR3313327.30648319	99	chr1	75121	3	101M	=	374454	299434	ATTCACAGCCGAATTCTACCAGAGGTACAAAGAGGAGCTGGTCCCATTCCTTCTGAAACTATTCCAATCAATAGAAAAAGAGGGAGTCCTCCCTAACTCAT	<BBBBFF</F/B<F<FFFFFBFBFFB/</<<BFFFFFFFF<BFFFFFFFBFBFFFBF/<FFFFFFFFBBBFF/FFFB</</FB<<B</<FFFFBBFB7BBB	NH:i:2	HI:i:1	AS:i:183	nM:i:7
SRR3313327.30648319	419	chr1	75121	3	101M	=	374454	299434	ATTCACAGCCGAATTCTACCAGAGGTACAAAGAGGAGCTGGTCCCATTCCTTCTGAAACTATTCCAATCAATAGAAAAAGAGGGAGTCCTCCCTAACTCAT	<BBBBFF</F/B<F<FFFFFBFBFFB/</<<BFFFFFFFF<BFFFFFFFBFBFFFBF/<FFFFFFFFBBBFF/FFFB</</FB<<B</<FFFFBBFB7BBB	NH:i:2	HI:i:2	AS:i:183	nM:i:7
SRR3313327.18842770	99	chr1	88031	1	101M	=	464050	376120	CCCTAATACCAGTAAAGTGAGAAGCAGAGATAAACTAGTCCTAGACAGCCGACTCATGTTGGGGGCAGCCCACTCACAGTGGCCCTGACCCAACTCTAACT	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF	NH:i:4	HI:i:1	AS:i:185	nM:i:6
samtools view: writing to standard output failed: Broken pipe
samtools view: error closing standard output: -1
In [27]:
 
samtools index SRR3313327.bam
In [29]:
 
/usr/local/bin/FastQC/fastqc -o . SRR3313326.fastq.gz
​
Started analysis of SRR3313326.fastq.gz
Approx 5% complete for SRR3313326.fastq.gz
Approx 10% complete for SRR3313326.fastq.gz
Approx 15% complete for SRR3313326.fastq.gz
Approx 20% complete for SRR3313326.fastq.gz
Approx 25% complete for SRR3313326.fastq.gz
Approx 30% complete for SRR3313326.fastq.gz
Approx 35% complete for SRR3313326.fastq.gz
Approx 40% complete for SRR3313326.fastq.gz
Approx 45% complete for SRR3313326.fastq.gz
Approx 50% complete for SRR3313326.fastq.gz
Approx 55% complete for SRR3313326.fastq.gz
Approx 60% complete for SRR3313326.fastq.gz
Approx 65% complete for SRR3313326.fastq.gz
Approx 70% complete for SRR3313326.fastq.gz
Approx 75% complete for SRR3313326.fastq.gz
Approx 80% complete for SRR3313326.fastq.gz
Approx 85% complete for SRR3313326.fastq.gz
Approx 90% complete for SRR3313326.fastq.gz
Approx 95% complete for SRR3313326.fastq.gz
Analysis complete for SRR3313326.fastq.gz
In [30]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesCommand zcat SRR3313326.fastq.gz \
     --outFileNamePrefix SRR3313326.
​
Jan 28 22:01:23 ..... started STAR run
Jan 28 22:01:23 ..... loading genome
Jan 28 22:01:23 ..... started mapping
gzip: Read2.gz: No such file or directory
gzip: Read1.gz: No such file or directory
Jan 28 22:23:06 ..... finished successfully
In [34]:
 
ls -l SRR3313326.*
​
-rw-r--r-- 1 r0624871 domain users  210533570 jan 28 22:23 SRR3313326.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users 1610963351 jan 28 18:35 SRR3313326.fastq.gz
-rw-r--r-- 1 r0624871 domain users       1830 jan 28 22:23 SRR3313326.Log.final.out
-rw-r--r-- 1 r0624871 domain users      16167 jan 28 22:23 SRR3313326.Log.out
-rw-r--r-- 1 r0624871 domain users       2606 jan 28 22:23 SRR3313326.Log.progress.out
-rw-r--r-- 1 r0624871 domain users     157480 jan 28 22:23 SRR3313326.SJ.out.tab
In [35]:
 
head -40 SRR3313326.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
@SQ	SN:chr9	LN:141213431
@SQ	SN:chr10	LN:135534747
@SQ	SN:chr11	LN:135006516
@SQ	SN:chr12	LN:133851895
@SQ	SN:chr13	LN:115169878
@SQ	SN:chr14	LN:107349540
@SQ	SN:chr15	LN:102531392
@SQ	SN:chr16	LN:90354753
@SQ	SN:chr17	LN:81195210
@SQ	SN:chr18	LN:78077248
@SQ	SN:chr19	LN:59128983
@SQ	SN:chr20	LN:63025520
@SQ	SN:chr21	LN:48129895
@SQ	SN:chr22	LN:51304566
@SQ	SN:chrX	LN:155270560
@SQ	SN:chrY	LN:59373566
@PG	ID:STAR	PN:STAR	VN:STAR_2.5.2b	CL:STAR   --runThreadN 2   --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db   --genomeLoad LoadAndKeep   --readFilesCommand zcat   SRR3313326.fastq.gz      --outFileNamePrefix SRR3313326.
@CO	user command line: STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db --genomeLoad LoadAndKeep --runThreadN 2 --readFilesCommand zcat SRR3313326.fastq.gz --outFileNamePrefix SRR3313326.
In [36]:
 
samtools sort -o SRR3313326.bam SRR3313326.Aligned.out.sam
​
In [37]:
 
samtools view SRR3313326.bam | head -3
​
SRR3313326.18199309	163	chr1	82250	3	101M	=	402911	320762	GAGAATTCCACCAAACCTTTAGAAATCAGATCATCCAAAGGCAAATTAACAACCCTCAGCCATTTGAGGCAAAATATTACAATTGAGGCAAGATATACTGT	BBBBBFFFFFFFFFFFFFBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF	NH:i:2	HI:i:1	AS:i:193	nM:i:2
SRR3313326.18199309	355	chr1	82250	3	101M	=	402911	320762	GAGAATTCCACCAAACCTTTAGAAATCAGATCATCCAAAGGCAAATTAACAACCCTCAGCCATTTGAGGCAAAATATTACAATTGAGGCAAGATATACTGT	BBBBBFFFFFFFFFFFFFBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF	NH:i:2	HI:i:2	AS:i:193	nM:i:2
SRR3313326.21297168	99	chr1	89466	3	101M	=	463579	374214	TTCTGATGTAAACTCTCAAAGTTTGAAGGGTATTGTCTTTTCCTGACACATACATTGTAAATAATTTTCTGGCTTACATTTTGACTTTTAATTTCATTCAC	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF<FFFFFFFFFF	NH:i:2	HI:i:1	AS:i:189	nM:i:4
samtools view: writing to standard output failed: Broken pipe
samtools view: error closing standard output: -1
In [38]:
 
samtools index SRR3313326.bam
In [39]:
 
ls -l SRR3313326*[bs]a[mi]
-rw-r--r-- 1 r0624871 domain users 210533570 jan 28 22:23 SRR3313326.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users  18348088 jan 28 22:56 SRR3313326.bam
-rw-r--r-- 1 r0624871 domain users   2183872 jan 28 22:57 SRR3313326.bam.bai
In [ ]:
 
############################
In [31]:
 
/usr/local/bin/FastQC/fastqc -o . SRR3313330.fastq.gz
​
Started analysis of SRR3313330.fastq.gz
Approx 5% complete for SRR3313330.fastq.gz
Approx 10% complete for SRR3313330.fastq.gz
Approx 15% complete for SRR3313330.fastq.gz
Approx 20% complete for SRR3313330.fastq.gz
Approx 25% complete for SRR3313330.fastq.gz
Approx 30% complete for SRR3313330.fastq.gz
Approx 35% complete for SRR3313330.fastq.gz
Approx 40% complete for SRR3313330.fastq.gz
Approx 45% complete for SRR3313330.fastq.gz
Approx 50% complete for SRR3313330.fastq.gz
Approx 55% complete for SRR3313330.fastq.gz
Approx 60% complete for SRR3313330.fastq.gz
Approx 65% complete for SRR3313330.fastq.gz
Approx 70% complete for SRR3313330.fastq.gz
Approx 75% complete for SRR3313330.fastq.gz
Approx 80% complete for SRR3313330.fastq.gz
Approx 85% complete for SRR3313330.fastq.gz
Approx 90% complete for SRR3313330.fastq.gz
Approx 95% complete for SRR3313330.fastq.gz
Analysis complete for SRR3313330.fastq.gz
In [33]:
 
​
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesCommand zcat SRR3313330.fastq.gz \
     --outFileNamePrefix SRR3313330.
Jan 28 22:29:55 ..... started STAR run
Jan 28 22:29:55 ..... loading genome
Jan 28 22:29:55 ..... started mapping
gzip: gzip: Read2.gz: No such file or directory
Read1.gz: No such file or directory
Jan 28 22:47:02 ..... finished successfully
In [42]:
 
 ls -l SRR3313330.*
​
-rw-r--r-- 1 r0624871 domain users  253849858 jan 28 22:47 SRR3313330.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users 1762850004 jan 28 22:06 SRR3313330.fastq.gz
-rw-r--r-- 1 r0624871 domain users       1832 jan 28 22:47 SRR3313330.Log.final.out
-rw-r--r-- 1 r0624871 domain users      16167 jan 28 22:47 SRR3313330.Log.out
-rw-r--r-- 1 r0624871 domain users       2134 jan 28 22:47 SRR3313330.Log.progress.out
-rw-r--r-- 1 r0624871 domain users     166284 jan 28 22:47 SRR3313330.SJ.out.tab
In [43]:
 
head -40 SRR3313330.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
@SQ	SN:chr9	LN:141213431
@SQ	SN:chr10	LN:135534747
@SQ	SN:chr11	LN:135006516
@SQ	SN:chr12	LN:133851895
@SQ	SN:chr13	LN:115169878
@SQ	SN:chr14	LN:107349540
@SQ	SN:chr15	LN:102531392
@SQ	SN:chr16	LN:90354753
@SQ	SN:chr17	LN:81195210
@SQ	SN:chr18	LN:78077248
@SQ	SN:chr19	LN:59128983
@SQ	SN:chr20	LN:63025520
@SQ	SN:chr21	LN:48129895
@SQ	SN:chr22	LN:51304566
@SQ	SN:chrX	LN:155270560
@SQ	SN:chrY	LN:59373566
@PG	ID:STAR	PN:STAR	VN:STAR_2.5.2b	CL:STAR   --runThreadN 2   --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db   --genomeLoad LoadAndKeep   --readFilesCommand zcat   SRR3313330.fastq.gz      --outFileNamePrefix SRR3313330.
@CO	user command line: STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db --genomeLoad LoadAndKeep --runThreadN 2 --readFilesCommand zcat SRR3313330.fastq.gz --outFileNamePrefix SRR3313330.
In [44]:
 
samtools sort -o SRR3313330.bam SRR3313330.Aligned.out.sam
​
In [46]:
 
samtools view SRR3313330.bam | head -3
​
SRR3313330.21422348	99	chr1	89342	3	100M1S	=	463704	374462	CTTACAAATGGATTACACGCATTTTCATGTGCTGTTGGCTACTTATTCATTCAGAAAACATACTAAGTGCTGGCTCTTTTTCATGTCCTTTATCAAGTTTN	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFFFFFFFF<FFFFB	NH:i:2	HI:i:1	AS:i:191	nM:i:2
SRR3313330.21422348	419	chr1	89342	3	100M1S	=	463704	374462	CTTACAAATGGATTACACGCATTTTCATGTGCTGTTGGCTACTTATTCATTCAGAAAACATACTAAGTGCTGGCTCTTTTTCATGTCCTTTATCAAGTTTN	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFFFFFFFF<FFFFB	NH:i:2	HI:i:2	AS:i:191	nM:i:2
SRR3313330.20671409	99	chr1	89415	3	100M1S	=	463631	374316	CTCTTTTTCATGTCCTTTATCAAGTTTGGATCATGTCATTTGCTGTTTTCTTTCTGATGTAAACTCTCAAAGTTTGAAGGGTATTGTCTTTTCCTGACACN	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFFFFFFFF	NH:i:2	HI:i:1	AS:i:191	nM:i:2
samtools view: writing to standard output failed: Broken pipe
samtools view: error closing standard output: -1
In [47]:
 
samtools index SRR3313330.bam
In [48]:
 
ls -l SRR3313326*[bs]a[mi]
-rw-r--r-- 1 r0624871 domain users 210533570 jan 28 22:23 SRR3313326.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users  18348088 jan 28 22:56 SRR3313326.bam
-rw-r--r-- 1 r0624871 domain users   2183872 jan 28 22:57 SRR3313326.bam.bai
In [51]:
 
samtools idxstats SRR3313326.bam
chrM	16571	0	0
chr1	249250621	74492	0
chr2	243199373	72634	0
chr3	198022430	12168	0
chr4	191154276	9246	0
chr5	180915260	20834	0
chr6	171115067	39250	0
chr7	159138663	65998	0
chr8	146364022	15536	0
chr9	141213431	23294	0
chr10	135534747	26468	0
chr11	135006516	14250	0
chr12	133851895	77332	0
chr13	115169878	2938	0
chr14	107349540	24904	0
chr15	102531392	28616	0
chr16	90354753	90312	0
chr17	81195210	15442	0
chr18	78077248	1882	0
chr19	59128983	29422	0
chr20	63025520	5220	0
chr21	48129895	1490	0
chr22	51304566	10690	0
chrX	155270560	32802	0
chrY	59373566	6728	0
*	0	0	0
In [49]:
 
/usr/local/bin/FastQC/fastqc -o . SRR3313329.fastq.gz
​
Started analysis of SRR3313329.fastq.gz
Approx 5% complete for SRR3313329.fastq.gz
Approx 10% complete for SRR3313329.fastq.gz
Approx 15% complete for SRR3313329.fastq.gz
Approx 20% complete for SRR3313329.fastq.gz
Approx 25% complete for SRR3313329.fastq.gz
Approx 30% complete for SRR3313329.fastq.gz
Approx 35% complete for SRR3313329.fastq.gz
Approx 40% complete for SRR3313329.fastq.gz
Approx 45% complete for SRR3313329.fastq.gz
Approx 50% complete for SRR3313329.fastq.gz
Approx 55% complete for SRR3313329.fastq.gz
Approx 60% complete for SRR3313329.fastq.gz
Approx 65% complete for SRR3313329.fastq.gz
Approx 70% complete for SRR3313329.fastq.gz
Approx 75% complete for SRR3313329.fastq.gz
Approx 80% complete for SRR3313329.fastq.gz
Approx 85% complete for SRR3313329.fastq.gz
Approx 90% complete for SRR3313329.fastq.gz
Approx 95% complete for SRR3313329.fastq.gz
Analysis complete for SRR3313329.fastq.gz
In [50]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesCommand zcat SRR3313329.fastq.gz \
     --outFileNamePrefix SRR3313329.
Jan 29 10:55:59 ..... started STAR run
Jan 29 10:55:59 ..... loading genome
Jan 29 10:56:00 ..... started mapping
gzip: gzip: Read2.gz: No such file or directory
Read1.gz: No such file or directory
Jan 29 11:11:42 ..... finished successfully
In [52]:
 
 ls -l SRR3313329.*
​
-rw-r--r-- 1 r0624871 domain users  247654027 jan 29 11:11 SRR3313329.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users 1631125545 jan 28 23:07 SRR3313329.fastq.gz
-rw-r--r-- 1 r0624871 domain users       1833 jan 29 11:11 SRR3313329.Log.final.out
-rw-r--r-- 1 r0624871 domain users      16167 jan 29 11:11 SRR3313329.Log.out
-rw-r--r-- 1 r0624871 domain users       2016 jan 29 11:11 SRR3313329.Log.progress.out
-rw-r--r-- 1 r0624871 domain users     184194 jan 29 11:11 SRR3313329.SJ.out.tab
In [53]:
 
head -40 SRR3313329.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
@SQ	SN:chr9	LN:141213431
@SQ	SN:chr10	LN:135534747
@SQ	SN:chr11	LN:135006516
@SQ	SN:chr12	LN:133851895
@SQ	SN:chr13	LN:115169878
@SQ	SN:chr14	LN:107349540
@SQ	SN:chr15	LN:102531392
@SQ	SN:chr16	LN:90354753
@SQ	SN:chr17	LN:81195210
@SQ	SN:chr18	LN:78077248
@SQ	SN:chr19	LN:59128983
@SQ	SN:chr20	LN:63025520
@SQ	SN:chr21	LN:48129895
@SQ	SN:chr22	LN:51304566
@SQ	SN:chrX	LN:155270560
@SQ	SN:chrY	LN:59373566
@PG	ID:STAR	PN:STAR	VN:STAR_2.5.2b	CL:STAR   --runThreadN 2   --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db   --genomeLoad LoadAndKeep   --readFilesCommand zcat   SRR3313329.fastq.gz      --outFileNamePrefix SRR3313329.
@CO	user command line: STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db --genomeLoad LoadAndKeep --runThreadN 2 --readFilesCommand zcat SRR3313329.fastq.gz --outFileNamePrefix SRR3313329.
In [54]:
 
samtools sort -o SRR3313329.bam SRR3313330.Aligned.out.sam
​
In [55]:
 
samtools index SRR3313329.bam
In [56]:
 
ls -l SRR3313329*[bs]a[mi]
-rw-r--r-- 1 r0624871 domain users 247654027 jan 29 11:11 SRR3313329.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users  22497819 jan 29 11:23 SRR3313329.bam
-rw-r--r-- 1 r0624871 domain users   2295312 jan 29 11:34 SRR3313329.bam.bai
In [57]:
 
samtools view SRR3313329.bam | head -3
SRR3313330.21422348	99	chr1	89342	3	100M1S	=	463704	374462	CTTACAAATGGATTACACGCATTTTCATGTGCTGTTGGCTACTTATTCATTCAGAAAACATACTAAGTGCTGGCTCTTTTTCATGTCCTTTATCAAGTTTN	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFFFFFFFF<FFFFB	NH:i:2	HI:i:1	AS:i:191	nM:i:2
SRR3313330.21422348	419	chr1	89342	3	100M1S	=	463704	374462	CTTACAAATGGATTACACGCATTTTCATGTGCTGTTGGCTACTTATTCATTCAGAAAACATACTAAGTGCTGGCTCTTTTTCATGTCCTTTATCAAGTTTN	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFFFFFFFF<FFFFB	NH:i:2	HI:i:2	AS:i:191	nM:i:2
SRR3313330.20671409	99	chr1	89415	3	100M1S	=	463631	374316	CTCTTTTTCATGTCCTTTATCAAGTTTGGATCATGTCATTTGCTGTTTTCTTTCTGATGTAAACTCTCAAAGTTTGAAGGGTATTGTCTTTTCCTGACACN	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFFFFFFFF	NH:i:2	HI:i:1	AS:i:191	nM:i:2
samtools view: writing to standard output failed: Broken pipe
samtools view: error closing standard output: -1
In [149]:
 
samtools idxstats SRR3313329.bam
chrM	16571	0	0
chr1	249250621	100274	0
chr2	243199373	112460	0
chr3	198022430	14886	0
chr4	191154276	12514	0
chr5	180915260	24170	0
chr6	171115067	28402	0
chr7	159138663	65478	0
chr8	146364022	16006	0
chr9	141213431	30476	0
chr10	135534747	23754	0
chr11	135006516	39044	0
chr12	133851895	104654	0
chr13	115169878	3604	0
chr14	107349540	40802	0
chr15	102531392	25304	0
chr16	90354753	76886	0
chr17	81195210	17140	0
chr18	78077248	2338	0
chr19	59128983	35980	0
chr20	63025520	7090	0
chr21	48129895	2832	0
chr22	51304566	16834	0
chrX	155270560	40010	0
chrY	59373566	5532	0
*	0	0	0
In [120]:
 
cd ~/data/RNAseqPAN/test
​
pwd
/home/luna.kuleuven.be/r0624871/data/RNAseqPAN/test
In [121]:
 
/usr/local/bin/FastQC/fastqc -o . SRR3313331.fastq.gz
​
Started analysis of SRR3313331.fastq.gz
Approx 5% complete for SRR3313331.fastq.gz
Approx 10% complete for SRR3313331.fastq.gz
Approx 15% complete for SRR3313331.fastq.gz
Approx 20% complete for SRR3313331.fastq.gz
Approx 25% complete for SRR3313331.fastq.gz
Approx 30% complete for SRR3313331.fastq.gz
Approx 35% complete for SRR3313331.fastq.gz
Approx 40% complete for SRR3313331.fastq.gz
Approx 45% complete for SRR3313331.fastq.gz
Approx 50% complete for SRR3313331.fastq.gz
Approx 55% complete for SRR3313331.fastq.gz
Approx 60% complete for SRR3313331.fastq.gz
Approx 65% complete for SRR3313331.fastq.gz
Approx 70% complete for SRR3313331.fastq.gz
Approx 75% complete for SRR3313331.fastq.gz
Approx 80% complete for SRR3313331.fastq.gz
Approx 85% complete for SRR3313331.fastq.gz
Approx 90% complete for SRR3313331.fastq.gz
Approx 95% complete for SRR3313331.fastq.gz
Analysis complete for SRR3313331.fastq.gz
In [122]:
 
STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db \
     --genomeLoad LoadAndKeep \
     --runThreadN 2 \
     --readFilesCommand zcat SRR3313331.fastq.gz \
     --outFileNamePrefix SRR3313331.
Jan 29 15:18:23 ..... started STAR run
Jan 29 15:18:23 ..... loading genome
Jan 29 15:18:23 ..... started mapping
gzip: Read2.gz: No such file or directory
gzip: Read1.gz: No such file or directory
Jan 29 15:41:36 ..... finished successfully
In [123]:
 
 ls -l SRR3313331.*
​
-rw-r--r-- 1 r0624871 domain users  269343561 jan 29 15:41 SRR3313331.Aligned.out.sam
-rw-r--r-- 1 r0624871 domain users 1672145671 jan 29 15:11 SRR3313331.fastq.gz
-rw-r--r-- 1 r0624871 domain users       1834 jan 29 15:41 SRR3313331.Log.final.out
-rw-r--r-- 1 r0624871 domain users      16167 jan 29 15:41 SRR3313331.Log.out
-rw-r--r-- 1 r0624871 domain users       2842 jan 29 15:41 SRR3313331.Log.progress.out
-rw-r--r-- 1 r0624871 domain users     193390 jan 29 15:41 SRR3313331.SJ.out.tab
In [124]:
 
head -40 SRR3313331.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
@SQ	SN:chr9	LN:141213431
@SQ	SN:chr10	LN:135534747
@SQ	SN:chr11	LN:135006516
@SQ	SN:chr12	LN:133851895
@SQ	SN:chr13	LN:115169878
@SQ	SN:chr14	LN:107349540
@SQ	SN:chr15	LN:102531392
@SQ	SN:chr16	LN:90354753
@SQ	SN:chr17	LN:81195210
@SQ	SN:chr18	LN:78077248
@SQ	SN:chr19	LN:59128983
@SQ	SN:chr20	LN:63025520
@SQ	SN:chr21	LN:48129895
@SQ	SN:chr22	LN:51304566
@SQ	SN:chrX	LN:155270560
@SQ	SN:chrY	LN:59373566
@PG	ID:STAR	PN:STAR	VN:STAR_2.5.2b	CL:STAR   --runThreadN 2   --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db   --genomeLoad LoadAndKeep   --readFilesCommand zcat   SRR3313331.fastq.gz      --outFileNamePrefix SRR3313331.
@CO	user command line: STAR --genomeDir /mnt/nfs/mfiers/STAR/hg19_star_db --genomeLoad LoadAndKeep --runThreadN 2 --readFilesCommand zcat SRR3313331.fastq.gz --outFileNamePrefix SRR3313331.
In [126]:
 
samtools sort -o SRR3313331.bam SRR3313331.Aligned.out.sam
​
In [127]:
 
samtools index SRR3313331.bam
In [128]:
 
samtools view SRR3313331.bam | head -3
SRR3313331.10986665	99	chr1	85000	3	101M	=	400227	315296	AGACAATTCCACGAAAATTGTTGGGCATTTGAAAACCCAACTTTAAATAAAAGATAAAACATCTAGAGCAAATATCAAGGGAGGAATTAGAGGATTTGAAT	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF	NH:i:2	HI:i:1	AS:i:149	nM:i:8
SRR3313331.10986665	419	chr1	85000	3	101M	=	400227	315296	AGACAATTCCACGAAAATTGTTGGGCATTTGAAAACCCAACTTTAAATAAAAGATAAAACATCTAGAGCAAATATCAAGGGAGGAATTAGAGGATTTGAAT	BBBBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF	NH:i:2	HI:i:2	AS:i:149	nM:i:8
SRR3313331.4360928	99	chr1	86706	3	99M2S	=	398521	311909	ATCTATACATATTGAGGATTAACAGGTGCTAGTAGAAAATATTAACTTTCTTTGTATTAACAGGTGTTAGTAGAAAGTAGTAGTAGGTGCTAAGATAAANN	BBBBBFFFFFFFFFFFFFFBBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF	NH:i:2	HI:i:1	AS:i:188	nM:i:0
samtools view: writing to standard output failed: Broken pipe
samtools view: error closing standard output: -1
In [74]:
 
cd ~/data/RNAseqPAN/test
pwd
/home/luna.kuleuven.be/r0624871/data/RNAseqPAN/test
In [75]:
 
ls -l *gtf
-rw-r--r-- 1 r0624871 domain users 1083754578 jan 29 12:25 gencode.v19.nopseudo.plus.sort.gtf
In [72]:
 
pwd
/home/luna.kuleuven.be/r0624871/data/RNAseqPAN
In [78]:
 
head -9 gencode.v19.nopseudo.plus.sort.gtf
##description: evidence-based annotation of the human genome (GRCh37), version 19 (Ensembl 74)
##provider: GENCODE
##contact: gencode@sanger.ac.uk
##format: gtf
##date: 2013-12-05
chr1	HAVANA	exon	29554	30039	.	+	.	gene_id "ENSG00000243485.2"; transcript_id "ENST00000473358.1"; gene_type "lincRNA"; gene_status "NOVEL"; gene_name "MIR1302-11"; transcript_type "lincRNA"; transcript_status "KNOWN"; transcript_name "MIR1302-11-001"; exon_number 1;  exon_id "ENSE00001947070.1";  level 2; tag "not_best_in_genome_evidence"; havana_gene "OTTHUMG00000000959.2"; havana_transcript "OTTHUMT00000002840.1";
chr1	HAVANA	gene	29554	31109	.	+	.	gene_id "ENSG00000243485.2"; transcript_id "ENSG00000243485.2"; gene_type "lincRNA"; gene_status "NOVEL"; gene_name "MIR1302-11"; transcript_type "lincRNA"; transcript_status "NOVEL"; transcript_name "MIR1302-11"; level 2; havana_gene "OTTHUMG00000000959.2";
chr1	HAVANA	transcript	29554	31097	.	+	.	gene_id "ENSG00000243485.2"; transcript_id "ENST00000473358.1"; gene_type "lincRNA"; gene_status "NOVEL"; gene_name "MIR1302-11"; transcript_type "lincRNA"; transcript_status "KNOWN"; transcript_name "MIR1302-11-001"; level 2; tag "not_best_in_genome_evidence"; havana_gene "OTTHUMG00000000959.2"; havana_transcript "OTTHUMT00000002840.1";
chr1	HAVANA	exon	30267	30667	.	+	.	gene_id "ENSG00000243485.2"; transcript_id "ENST00000469289.1"; gene_type "lincRNA"; gene_status "NOVEL"; gene_name "MIR1302-11"; transcript_type "lincRNA"; transcript_status "KNOWN"; transcript_name "MIR1302-11-002"; exon_number 1;  exon_id "ENSE00001841699.1";  level 2; tag "not_best_in_genome_evidence"; havana_gene "OTTHUMG00000000959.2"; havana_transcript "OTTHUMT00000002841.2";
In [90]:
 
samtools flagstat SRR3313328.bam
1108226 + 0 in total (QC-passed reads + QC-failed reads)
697312 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
1108226 + 0 mapped (100.00% : N/A)
410914 + 0 paired in sequencing
205457 + 0 read1
205457 + 0 read2
410914 + 0 properly paired (100.00% : N/A)
410914 + 0 with itself and mate mapped
0 + 0 singletons (0.00% : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
 
### Create a new folder for feature counts analysis

Create a new folder for feature counts analysis

In [93]:
 
mkdir -p ~/data/RNAseqPAN/FC
​
In [129]:
 
cd ~/data/RNAseqPAN/FC
pwd
​
/home/luna.kuleuven.be/r0624871/data/RNAseqPAN/FC
 
Featurecounts 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 folder
In [95]:
 
ln -sf /mnt/nfs/data/RNA-seq/*.gtf ~/data/RNAseqPAN/FC
ls -l *gtf
lrwxrwxrwx 1 r0624871 domain users 56 jan 29 12:53 gencode.v19.nopseudo.plus.sort.gtf -> /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf
lrwxrwxrwx 1 r0624871 domain users 38 jan 29 12:53 hg18-refflat.gtf -> /mnt/nfs/data/RNA-seq/hg18-refflat.gtf
lrwxrwxrwx 1 r0624871 domain users 37 jan 29 12:53 hg18-refseq.gtf -> /mnt/nfs/data/RNA-seq/hg18-refseq.gtf
lrwxrwxrwx 1 r0624871 domain users 38 jan 29 12:53 hg19-refflat.gtf -> /mnt/nfs/data/RNA-seq/hg19-refflat.gtf
In [130]:
 
ls -l *gtf
lrwxrwxrwx 1 r0624871 domain users 56 jan 29 12:53 gencode.v19.nopseudo.plus.sort.gtf -> /mnt/nfs/data/RNA-seq/gencode.v19.nopseudo.plus.sort.gtf
lrwxrwxrwx 1 r0624871 domain users 38 jan 29 12:53 hg18-refflat.gtf -> /mnt/nfs/data/RNA-seq/hg18-refflat.gtf
lrwxrwxrwx 1 r0624871 domain users 37 jan 29 12:53 hg18-refseq.gtf -> /mnt/nfs/data/RNA-seq/hg18-refseq.gtf
lrwxrwxrwx 1 r0624871 domain users 38 jan 29 12:53 hg19-refflat.gtf -> /mnt/nfs/data/RNA-seq/hg19-refflat.gtf
 
### move bam files to FC folder
​

move bam files to FC folder

In [133]:
 
ls -l *bam
-rw-r--r-- 1 r0624871 domain users 18348088 jan 28 22:56 SRR3313326.bam
-rw-r--r-- 1 r0624871 domain users 21827138 jan 28 21:29 SRR3313327.bam
-rw-r--r-- 1 r0624871 domain users 29716349 jan 28 20:23 SRR3313328.bam
-rw-r--r-- 1 r0624871 domain users 22497819 jan 29 11:23 SRR3313329.bam
-rw-r--r-- 1 r0624871 domain users 22497819 jan 29 10:45 SRR3313330.bam
-rw-r--r-- 1 r0624871 domain users 25599784 jan 29 15:43 SRR3313331.bam
In [143]:
 
pwd
/home/luna.kuleuven.be/r0624871/data/RNAseqPAN/FC
 
### Execute feature counts
​
We 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

Execute feature counts

We 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

In [134]:
 
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
        ==========     _____ _    _ ____  _____  ______          _____  
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \ 
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
	v1.5.0-p1

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 6 BAM files                                      ||
||                           P SRR3313326.bam                                 ||
||                           P SRR3313327.bam                                 ||
||                           P SRR3313328.bam                                 ||
||                           P SRR3313329.bam                                 ||
||                           P SRR3313330.bam                                 ||
||                           P SRR3313331.bam                                 ||
||                                                                            ||
||             Output file : ALL6.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 SRR3313326.bam...                                         ||
||    Paired-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 701948                                                    ||
||    Successfully assigned reads : 738 (0.1%)                                ||
||    Running time : 0.01 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3313327.bam...                                         ||
||    Paired-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 827206                                                    ||
||    Successfully assigned reads : 567 (0.1%)                                ||
||    Running time : 0.01 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3313328.bam...                                         ||
||    Paired-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 1108226                                                   ||
||    Successfully assigned reads : 690 (0.1%)                                ||
||    Running time : 0.02 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3313329.bam...                                         ||
||    Paired-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 846470                                                    ||
||    Successfully assigned reads : 744 (0.1%)                                ||
||    Running time : 0.01 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3313330.bam...                                         ||
||    Paired-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 846470                                                    ||
||    Successfully assigned reads : 744 (0.1%)                                ||
||    Running time : 0.01 minutes                                             ||
||                                                                            ||
|| Process BAM file SRR3313331.bam...                                         ||
||    Paired-end reads are included.                                          ||
||    Assign reads to features...                                             ||
||    Total reads : 898582                                                    ||
||    Successfully assigned reads : 716 (0.1%)                                ||
||    Running time : 0.01 minutes                                             ||
||                                                                            ||
||                         Read assignment finished.                          ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

 
### After executing the featurecounts command, we notice only 0.1% of reads were assigned to the annotation file
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.

After executing the featurecounts command, we notice only 0.1% of reads were assigned to the annotation file

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.

In [135]:
 
head -20 ALL6.counts.summary | column -t
Status                     SRR3313326.bam  SRR3313327.bam  SRR3313328.bam  SRR3313329.bam  SRR3313330.bam  SRR3313331.bam
Assigned                   738             567             690             744             744             716
Unassigned_Ambiguity       30              36              48              26              26              22
Unassigned_MultiMapping    0               0               0               0               0               0
Unassigned_NoFeatures      3506            4713            5722            5166            5166            6124
Unassigned_Unmapped        0               0               0               0               0               0
Unassigned_MappingQuality  697674          821890          1101766         840534          840534          891720
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
 
Create a tsv file for the read counts

Create a tsv file for the read counts

In [137]:
 
cut -f-6 ALL6.counts > ALL6.genedata.tsv
In [138]:
 
head ALL6.genedata.tsv
# Program:featureCounts v1.5.0-p1; Command:"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" 
Geneid	Chr	Start	End	Strand	Length
MIR1302-11	chr1;chr1;chr1	29554;30267;30976	30039;30667;31109	+;+;+	1021
FAM138A	chr1;chr1;chr1	34554;35245;35721	35174;35481;36081	-;-;-	1219
OR4F5	chr1	69091	70008	+	918
RP11-34P13.7	chr1;chr1;chr1;chr1;chr1;chr1;chr1	89295;92091;110953;112700;120721;129055;133374	91629;92240;111357;112804;120932;129223;133566	-;-;-;-;-;-;-	3569
RP11-34P13.8	chr1;chr1	89551;90287	90050;91105	-;-	1319
AL627309.1	chr1;chr1	134901;137621	135802;139379	-;-	2661
RP11-34P13.14	chr1;chr1	139790;140075	139847;140339	-;-	323
RP11-34P13.13	chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1;chr1	141474;146386;155767;164263;165884;168100;168610;169049;172557;173753	143011;149707;155831;164791;165942;168165;168767;169264;172688;173862	-;-;-;-;-;-;-;-;-;-	6195
In [139]:
 
cut -f1,7- ALL6.counts | grep -v '^#' > ALL6.gene.counts
In [140]:
 
head ALL6.gene.counts
Geneid	SRR3313326.bam	SRR3313327.bam	SRR3313328.bam	SRR3313329.bam	SRR3313330.bam	SRR3313331.bam
MIR1302-11	0	0	0	0	0	0
FAM138A	0	0	0	0	0	0
OR4F5	0	0	0	0	0	0
RP11-34P13.7	0	0	0	0	0	0
RP11-34P13.8	0	0	0	0	0	0
AL627309.1	6	1	7	2	2	3
RP11-34P13.14	0	0	0	0	0	0
RP11-34P13.13	0	0	0	0	0	0
RNU6-1100P	0	0	0	0	0	0
In [111]:
 
grep -v '^#' ALL6.gene.counts > ALL6.gene.counts.tsv
 
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.

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.

In [151]:
 
samtools idxstats SRR3313326.bam
chrM	16571	0	0
chr1	249250621	74492	0
chr2	243199373	72634	0
chr3	198022430	12168	0
chr4	191154276	9246	0
chr5	180915260	20834	0
chr6	171115067	39250	0
chr7	159138663	65998	0
chr8	146364022	15536	0
chr9	141213431	23294	0
chr10	135534747	26468	0
chr11	135006516	14250	0
chr12	133851895	77332	0
chr13	115169878	2938	0
chr14	107349540	24904	0
chr15	102531392	28616	0
chr16	90354753	90312	0
chr17	81195210	15442	0
chr18	78077248	1882	0
chr19	59128983	29422	0
chr20	63025520	5220	0
chr21	48129895	1490	0
chr22	51304566	10690	0
chrX	155270560	32802	0
chrY	59373566	6728	0
*	0	0	0
In [152]:
 
samtools idxstats SRR3313331.bam
chrM	16571	0	0
chr1	249250621	109034	0
chr2	243199373	86798	0
chr3	198022430	21082	0
chr4	191154276	16254	0
chr5	180915260	55992	0
chr6	171115067	42172	0
chr7	159138663	72042	0
chr8	146364022	15976	0
chr9	141213431	43946	0
chr10	135534747	29102	0
chr11	135006516	24550	0
chr12	133851895	90100	0
chr13	115169878	4570	0
chr14	107349540	28178	0
chr15	102531392	34062	0
chr16	90354753	84660	0
chr17	81195210	19606	0
chr18	78077248	2878	0
chr19	59128983	40568	0
chr20	63025520	7792	0
chr21	48129895	3506	0
chr22	51304566	17862	0
chrX	155270560	42718	0
chrY	59373566	5134	0
*	0	0	0
 
In 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".

 
## Conclusion 

Conclusion

 
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).
​
​

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).

In [ ]:
 
​