RNA-seq Data
Analysis of RNA-seq requires the use of many types of data. The three most common that we will encounter are:
- Sequence data
- Genome feature data
- Alignment data
We will introduce each data type and their formats in more detail as they enter the workflow, but for now some general notes about the formats we will encounter:
- File formats represent the data in a structured manner.
- Some file formats are not human-readable; they are binary, and we will see what that means when we discuss alignments.
- Many file formats are human readable, but very large. These files should not be viewed in Word or Excel.
FASTQ Files
Raw sequenced reads are stored in FASTQ format. This is a plain text, human readable file format that stores information about each read. For a single read there are four lines:
@A00437:266:HVFMYDSXX:1:1101:1181:1000 1:N:0:AGCCTATC+TGCGTAAC
TTTATTGTTGATGGTTATTTTTTGTTTATGGTTATTTTGTGTTTATGGTTATTTTTTGTTTATGGTTATTTTTTA
+
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
1 |
Begins with @ and has information about the read. From AGC will contain flowcell and barcode information. |
2 |
The RNA sequence. |
3 |
Always begins with + and may contain the same information as line 1. |
4 |
A string of characters representing the quality scores. Always the same number of characters as line 2. |
Base Quality Scores
The fourth line encodes the quality of each nucleotide in the read. The most common encoding is referred to as PHRED-33, and the following maps characters to qualities:
Quality encoding: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHI
| | | | |
Quality score: 0........10........20........30........40
The above example is a rather boring read with all bases having F
, meaning a score of 37, which is good. Each quality score represents the probability that the corresponding nucleotide call is incorrect. The quality score is logarithmic and is calculated as:
Q = -10 x log10(P), where P is the probability that the base call is erroneous
Another way to interpret the scores is in terms of the following table:
10 |
1 in 10 |
90% |
20 |
1 in 100 |
99% |
30 |
1 in 1000 |
99.9% |
40 |
1 in 10000 |
99.99% |
It would clearly be painstaking to go through all the base quality scores of all the millions of reads obtained from a sequencing run, so we typically don’t evaluate the FASTQ files by sight. Instead, we use tools that take in FASTQ files and summarize the base quality scores (and other characteristics) to determine the overall quality of the reads from the sequencer.
Quality Assessment with FastQC
The first step in many high-throughput sequencing analyses is to examine the quality of the raw reads with FastQC. It analyzes various aspects of each FASTQ file and provides a quick impression of the overall quality metrics which are useful to determine before proceeding with downstream analysis. The following modules are present in an easy to read HTML report.
- Read quality score per base (by interpreting the PHRED33 scores)
- Per tile sequencing quality (related to sequencing clusters on the flowcell)
- Read lengths
- GC content
- Adapter content
- Overrepresented sequences
Toward the end of this module, we’ll run FastQC. For now, we’ll discuss the output files it produces and view some examples.
FastQC output files
FastQC outputs an HTML report and a zipped archive of intermediate files. These will appear like this:
sample_A_R1.trimmed_fastqc.html
sample_A_R1.trimmed_fastqc.zip
For most situations, opening the HTML report and inspecting the results will provide the information necessary to make decisions about your data.
First we’ll take a look at some of the figures found in a typical FastQC report, then we’ll view an example of an HTML report and try to make interpretations from this. Finally, we’ll run FastQC to produce some of these files from our example dataset.
Interpreting FastQC
FastQC reports are organized around the the different modules characterizing different aspects of the reads. The FastQC help page has detailed descriptions for each module.
The report summary is a PASS, WARN, FAIL overview of the modules. It’s important to not take them too seriously in all cases as there are a number of assumptions that go into the thresholds that may not apply in your particular experiment.
An important note: For computational reasons, FastQC only evaluates the first 100,000 reads in a FASTQ file. The assumption is that the first 100,000 reads sufficiently represent the full library.
Per base sequence quality
A per base boxplot of the quality scores with helpful coloring for good, fair, and poor qualities. If a sample has quality scores that degrade at the 3’ end of a read (as in the second example below), the sample doesn’t necessarily have to be dropped. Some aligners, e.g. STAR, will automatically trim poor quality read ends.
![](images/fastqc_per_base.png)
An example of a good quality run.
![](images/fastqc_poor_per_base.png)
An example of a poor quality run.
Sequence Duplication
High sequence duplication, indicated by a skew to the right of the blue curve in the plots below, can be caused by low complexity libraries, too many cycles of PCR amplification, or too little starting material.
On the other hand, if the library was prepared with an enrichment step (e.g. ChIP-seq), then sequence duplication might not be unexpected.
![](images/fastqc_duplication.png)
An example of a sample with low sequence duplication levels.
![](images/fastqc_poor_duplication.png)
An example of a sample with high sequence duplication levels.
Overrepresented sequences
Overrepresented sequences are those making up more than 0.1% of the total (of the 100,000 reads sampled). Finding an overrepresented sequence is an indication of something biologically meaningful (e.g. an enrichment step in the library prep process), or it is an issue stemming from the library preparation process (e.g. adapters, a failure to fully remove polyA tails, or contamination).
![](images/fastqc_overrepresented.png)
We see that there is a high number of reads with polyA tails. This could be a result of an inefficient removal of polyA tails.
Adapter Content
Adapter sequence typically is not present in standard RNA-seq libraries. However, if the fragment sizes resulting from library prep are smaller than the read length on the sequencer, then it is possible to get “read-through” of the adapter.
This can be dealt with by adding a step to the workflow that trims the reads of adapter content with a tool such as cutadapt. We will see this in a later module.
Examining a FastQC report
From the zipped folder you downloaded earlier, find the FastQC report sample_A_R1.trimmed_fastqc.html
.
We’ll view this report and try to interpret some of the figures.
Acting on QC - Good or Bad Results?
Good QC on raw reads means that RNA quality, library preparation, and sequencing seem fine to proceed with the next steps of analysis. It does not mean that you will find differentially expressed genes downstream.
The source of bad QC measures are not always easy to determine, and doesn’t necessarily mean the data cannot be used downstream. However, bad QC measures may indicate that hazards lie ahead, and that certain steps upstream of sequencing (sample handling, RNA extraction, library preparation) might need to be altered.
FastQC Exercise
Let’s try running FastQC on our FASTQ input files.
- Navigate to
analysis
directory
- View FastQC help file
- Construct the call to FastQC
- Watch FastQC process the files / gather quality metrics
- View the output of FastQC (the filenames)
# Navigate to analysis directory
cd ~/RSD_Shell/analysis
# View the FastQC help file
fastqc -h
# Make a directory for our output
mkdir out_fastqc
# Contstruct the call to FastQC
fastqc -o out_fastqc/ ../reads/*.fastq.gz
# Watch the output of FastQC
# View the output of FastQC (the filenames)
These materials have been adapted and extended from materials created by the Harvard Chan Bioinformatics Core (HBC). These are open access materials distributed under the terms of the Creative Commons Attribution license (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
LS0tCnRpdGxlOiAiTW9kdWxlIDAyYTogU2VxdWVuY2UgUUMiCmF1dGhvcjogIlVNIEJpb2luZm9ybWF0aWNzIENvcmUiCm91dHB1dDoKICAgICAgICBodG1sX2RvY3VtZW50OgogICAgICAgICAgICBpbm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