Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The first order of business after receiving sequencing data should be to check your data quality. This often-overlooked step helps guide the manner in which you process the data, and can prevent many headaches.

FastQC

FastQC is a tool that produces a quality analysis report on FASTQ files.

...

  1. The Per base sequence quality report, which can help you decide if sequence trimming is needed before alignment.

Image Added

2. The Per Sequence Quality Score report, which can tell you if a subset of your reads just have poor quality scores. These reads can be completely filtered from analysis.

Image Added

3. The Sequence Duplication Levels report, which helps you evaluate library enrichment / complexity. But note that different experiment types are expected to have vastly different duplication profiles.

 Image Added

  1. The Overrepresented Sequences report, which helps evaluate adapter contamination.

...

titleA couple of other things to note about FastQC
  1. Image Added

Note: For many of its reports, FastQC analyzes only the first 200,000 sequences in order to keep processing and memory requirements down.

...

Running FastQC

FastQC is not currently available from the TACC module system, but the command-line version has been installed in the $BI/bin/FastQC directory (downloaded from the Babraham Bioinformatics web site; interactive GUI versions are also available for Windows and Macintosh).FastQC creates a sub-directory for each analyzed FASTQ file, so we should copy the file we want to look at locally first. iis available on lonestar as a module.

Here's how to run FastQC using the version we installedon our sample data:

Code Block
titleRunning FastQC example
module load fastqc

fastqc data/SRR030257Sample1_1R1.fastq

Exercise: FastQC results

...

Expand
titleAnswer
No Format
titlels -l shows something like this
directory structure FILL IN!
The Sample_Yeast_L005_R1.cat.fastq.gz file is what we analyzed, so FastQC created the other two items. Sample_Yeast_L005_R1.cat_fastqc is a directory (the "d" in "drwxrwxr-x"), so use ls Sample_Yeast_L005_R1.cat_fastqc to see what's in it. Sample_Yeast_L005_R1.cat_fastqc.zip is just a Zipped (compressed) version of the whole directory.
drwxrwx--- 4 daras G-801020  32768 May 16 14:03 Sample1_R1_fastqc
-rw-rw---- 1 daras G-801020 186116 May 16 13:58 Sample1_R1_fastqc.zip

Looking at FastQC output

You can't run a web browser directly from your "dumb terminal" command line environment. The FastQC results have to be placed where a web browser can access them. We put a copy at this URL:

Code Block
titleFastQC results URL
http://web.corral.tacc.utexas.edu/BioITeam/ 
rnaseq_course/fastqc_exercise/Sample1_R1_fastqc/fastqc_report.html

Exercise: Should we trim this data?

...

Expand
titleAnswer

The Per base sequence quality report does not look good. The data should probably be trimmed (to 40 or 50 bp) before alignmentshows that trimming the last 10 bp or so would not be a bad idea.

Let's look at tools to do such manipulations to fastqc files, if we have to.