RNA_Seq Analysis in R, propmapped function issue I'm currently trying to learn RNA-seq data analysis and differential expression in R. I've been using the Combine lab tutorial.
Everything was running well until the tutorial asked to use the propmapped function (on this page) on my BAM files and then view the promapped proportion for each sample. In this tutorial we should be getting promapped proportion ranging from 0.05 to 0.150, however in my case I have no reads that align to my mapped genome (promapped = 0 in my case, for each sample). I don't know why as I've been using the data they provided for this tutorial.
I was wondering if someone could follow the first few steps of this tutorial until the propmapped step and tell me if they eventually get the right proportion of reads or not after the propmapped function.
This could tell me if the tutorial is the culprit or not.
There must be a problem in the BAM files you are using. Here are steps I would do to figure where exactly is the problem.

Check the data you have downloaded. The tutorial is using 12 fastq.gz files (SRR1552444 - SRR1552455). You can check on sra how big they are supposed to be (For example SRR1552444 is supposed to be an ~1.7Gb file) and if your downloaded files are about the same. Check if the files are fine (In the terminal you can type zcat data/SRR1552444.fastq.gz | head to check the first few reads). If the files are 0 sized or somehow corrupted, you need to redownload them.

Check if your mapping reference looks alright (size wise, look at the first few lines) and if the reference is indexed (there is a .fai in the directory).

Check the size of the BAM files, they also need to be in the range of a few hundred Mb to a few Gb. I expect these will be corrupted for sure, otherwise, you would get your numbers. You might also want to check if they are indexed (although this should not be a problem, I suspect they will get indexed automatically). If there is nothing wrong the bamfiles, you might want to check another tool to summarise a bamfile (like samtools flagstat) to check if at the end the problem really is in propmapped. If that's the case.


This should at least help you to zoom to the core of your problem if not resolve it.