Quantcast
Channel: Easy Guides
Viewing all articles
Browse latest Browse all 183

fastqcr: An R Package Facilitating Quality Controls of Sequencing Data for Large Numbers of Samples

$
0
0


Introduction

High throughput sequencing data can contain hundreds of millions of sequences (also known as reads).

The raw sequencing reads may contain PCR primers, adaptors, low quality bases, duplicates and other contaminants coming from the experimental protocols. As these may affect the results of downstream analysis, it’s essential to perform some quality control (QC) checks to ensure that the raw data looks good and there are no problems in your data.

The FastQC tool, written by Simon Andrews at the Babraham Institute, is the most widely used tool to perform quality control for high throughput sequence data. To learn more about the FastQC tool, see this Video Tuorial.

It produces, for each sample, an html report and a ‘zip’ file, which contains a file called fastqc_data.txt and summary.txt.

If you have hundreds of samples, you’re not going to open up each HTML page. You need some way of looking at these data in aggregate.

Therefore, we developed the fastqcr R package, which contains helper functions to easily and automatically parse, aggregate and analyze FastQC reports for large numbers of samples.

Additionally, the fastqcr package provides a convenient solution for building a multi-QC report and a one-sample FastQC report with the result interpretations. The online documentation is available at: http://www.sthda.com/english/rpkgs/fastqcr/.

Examples of QC reports, generated automatically by the fastqcr R package, include:

Main functions in the fastqcr package

In this article, we’ll demonstrate how to perform a quality control of sequencing data. We start by describing how to install and use the FastQC tool. Finally, we’ll describe the fastqcr R package to easily aggregate and analyze FastQC reports for large numbers of samples.


Contents:


Installation and loading fastqcr

  • fastqcr can be installed from CRAN as follow:
install.packages("fastqcr")
  • Or, install the latest version from GitHub:
if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/fastqcr")
  • Load fastqcr:
library("fastqcr")

Quick Start

library(fastqcr)

# Aggregating Multiple FastQC Reports into a Data Frame 
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# Demo QC directory containing zipped FASTQC reports
qc.dir <- system.file("fastqc_results", package = "fastqcr")
qc <- qc_aggregate(qc.dir)
qc

# Inspecting QC Problems
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

# See which modules failed in the most samples
qc_fails(qc, "module")
# Or, see which samples failed the most
qc_fails(qc, "sample")

# Building Multi QC Reports
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
qc_report(qc.dir, result.file = "multi-qc-report" )

# Building One-Sample QC Reports (+ Interpretation)
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
qc.file <- system.file("fastqc_results", "S1_fastqc.zip", package = "fastqcr")
qc_report(qc.file, result.file = "one-sample-report",
          interpret = TRUE)

Main Functions

1) Installing and Running FastQC

  • fastqc_install(): Install the latest version of FastQC tool on Unix systems (MAC OSX and Linux)

  • fastqc(): Run the FastQC tool from R.

2) Aggregating and Summarizing Multiple FastQC Reports

  • qc <- qc_aggregate(): Aggregate multiple FastQC reports into a data frame.

  • summary(qc): Generates a summary of qc_aggregate.

  • qc_stats(qc): General statistics of FastQC reports.

3) Inspecting Problems

  • qc_fails(qc): Displays samples or modules that failed.

  • qc_warns(qc): Displays samples or modules that warned.

  • qc_problems(qc): Union of qc_fails() and qc_warns(). Display which samples or modules that failed or warned.

4) Importing and Plotting FastQC Reports

  • qc_read(): Read FastQC data into R.

  • qc_plot(qc): Plot FastQC data

5) Building One-Sample and Multi-QC Reports

  • qc_report(): Create an HTML file containing FastQC reports of one or multiple files. Inputs can be either a directory containing multiple FastQC reports or a single sample FastQC report.

6) Others

  • qc_unzip(): Unzip all zipped files in the qc.dir directory.

Installing FastQC from R

You can install automatically the FastQC tool from R as follow:

fastqc_install()

Running FastQC from R

The supported file formats by FastQC include:

  • FASTQ
  • gzip compressed FASTQ

Suppose that your working directory is organized as follow:

  • home
    • Documents
      • FASTQ

where, FASTQ is the directory containing your FASTQ files, for which you want to perform the quality control check.

To run FastQC from R, type this:

fastqc(fq.dir = "~/Documents/FASTQ", # FASTQ files directory
       qc.dir = "~/Documents/FASTQC", # Results direcory
       threads = 4                    # Number of threads
       )

FastQC Reports

For each sample, FastQC performs a series of tests called analysis modules.

These modules include:

  • Basic Statistics,
  • Per base sequence quality,
  • Per tile sequence quality
  • Per sequence quality scores,
  • Per base sequence content,
  • Per sequence GC content,
  • Per base N content,
  • Sequence Length Distribution,
  • Sequence Duplication Levels,
  • Overrepresented sequences,
  • Adapter Content
  • Kmer content

The interpretation of these modules are provided in the official documentation of the FastQC tool.

Aggregating Reports

Here, we provide an R function qc_aggregate() to walk the FastQC result directory, find all the FASTQC zipped output folders, read the fastqc_data.txt and the summary.txt files, and aggregate the information into a data frame.

The fastqc_data.txt file contains the raw data and statistics while the summary.txt file summarizes which tests have been passed.

In the example below, we’ll use a demo FastQC output directory available in the fastqcr package.

library(fastqcr)
# Demo QC dir
qc.dir <- system.file("fastqc_results", package = "fastqcr")
qc.dir
## [1] "/Library/Frameworks/R.framework/Versions/3.3/Resources/library/fastqcr/fastqc_results"
# List of files in the directory
list.files(qc.dir)
## [1] "S1_fastqc.zip""S2_fastqc.zip""S3_fastqc.zip""S4_fastqc.zip""S5_fastqc.zip"

The demo QC directory contains five zipped folders corresponding to the FastQC output for 5 samples.

Aggregating FastQC reports:

qc <- qc_aggregate(qc.dir)
qc

The aggregated report looks like this:

samplemodulestatustot.seqseq.lengthpct.gcpct.dup
S4Per tile sequence qualityPASS6725534135-764919.89
S3Per base sequence qualityPASS6725534135-764922.14
S3Per base N contentPASS6725534135-764922.14
S5Per base sequence contentFAIL6501196235-764818.15
S2Sequence Duplication LevelsPASS5029958735-764815.70
S1Per base sequence contentFAIL5029958735-764817.24
S1Overrepresented sequencesPASS5029958735-764817.24
S3Basic StatisticsPASS6725534135-764922.14
S1Basic StatisticsPASS5029958735-764817.24
S4Overrepresented sequencesPASS6725534135-764919.89

Column names:

  • sample: sample names
  • module: fastqc modules
  • status: fastqc module status for each sample
  • tot.seq: total sequences (i.e.: the number of reads)
  • seq.length: sequence length
  • pct.gc: percentage of GC content
  • pct.dup: percentage of duplicate reads

The table shows, for each sample, the names of tested FastQC modules, the status of the test, as well as, some general statistics including the number of reads, the length of reads, the percentage of GC content and the percentage of duplicate reads.

Once you have the aggregated data you can use the dplyr package to easily inspect modules that failed or warned in samples. For example, the following R code shows samples with warnings and/or failures:

library(dplyr)
qc %>%
  select(sample, module, status) %>%    
  filter(status %in% c("WARN", "FAIL")) %>%
  arrange(sample)
samplemodulestatus
S1Per base sequence contentFAIL
S1Per sequence GC contentWARN
S1Sequence Length DistributionWARN
S2Per base sequence contentFAIL
S2Per sequence GC contentWARN
S2Sequence Length DistributionWARN
S3Per base sequence contentFAIL
S3Per sequence GC contentFAIL
S3Sequence Length DistributionWARN
S4Per base sequence contentFAIL
S4Per sequence GC contentFAIL
S4Sequence Length DistributionWARN
S5Per base sequence contentFAIL
S5Per sequence GC contentWARN
S5Sequence Length DistributionWARN

In the next section, we’ll describe some easy-to-use functions, available in the fastqcr package, for analyzing the aggregated data.

Summarizing Reports

We start by presenting a summary and general statistics of the aggregated data.

QC Summary

  • R function: summary()
  • Input data: aggregated data from qc_aggregate()
# Summary of qc
summary(qc)
modulenb_samplesnb_failnb_passnb_warnfailedwarned
Adapter Content5050NANA
Basic Statistics5050NANA
Kmer Content5050NANA
Overrepresented sequences5050NANA
Per base N content5050NANA
Per base sequence content5500S1, S2, S3, S4, S5NA
Per base sequence quality5050NANA
Per sequence GC content5203S3, S4S1, S2, S5
Per sequence quality scores5050NANA
Per tile sequence quality5050NANA
Sequence Duplication Levels5050NANA
Sequence Length Distribution5005NAS1, S2, S3, S4, S5

Column names:

  • module: fastqc modules
  • nb_samples: the number of samples tested
  • nb_pass, nb_fail, nb_warn: the number of samples that passed, failed and warned, respectively.
  • failed, warned: the name of samples that failed and warned, respectively.

The table shows, for each FastQC module, the number and the name of samples that failed or warned.

General statistics

  • R function: qc_stats()
  • Input data: aggregated data from qc_aggregate()
qc_stats(qc)
samplepct.duppct.gctot.seqseq.length
S117.24485029958735-76
S215.70485029958735-76
S322.14496725534135-76
S419.89496725534135-76
S518.15486501196235-76

Column names:

  • pct.dup: the percentage of duplicate reads,
  • pct.gc: the percentage of GC content,
  • tot.seq: total sequences or the number of reads and
  • seq.length: sequence length or the length of reads.

The table shows, for each sample, some general statistics such as the total number of reads, the length of reads, the percentage of GC content and the percentage of duplicate reads

Inspecting Problems

Once you’ve got this aggregated data, it’s easy to figure out what (if anything) is wrong with your data.

1) R functions. You can inspect problems per either modules or samples using the following R functions:

  • qc_fails(qc): Displays samples or modules that failed.
  • qc_warns(qc): Displays samples or modules that warned.
  • qc_problems(qc): Union of qc_fails() and qc_warns(). Display which samples or modules that failed or warned.

2) Input data: aggregated data from qc_aggregate()

3) Output data: Returns samples or FastQC modules with failures or warnings. By default, these functions return a compact output format. If you want a stretched format, specify the argument compact = FALSE.

The format and the interpretation of the outputs depend on the additional argument element, which value is one of c(“sample”, “module”).

  • If element = “sample” (default), results are samples with failed and/or warned modules. The results contain the following columns:
    • sample (sample names),
    • nb_problems (the number of modules with problems),
    • module (the name of modules with problems).
  • If element = “module”, results are modules that failed and/or warned in the most samples. The results contain the following columns:
    • module (the name of module with problems),
    • nb_problems (the number of samples with problems),
    • sample (the name of samples with problems)

Per Module Problems

  • Modules that failed in the most samples:
# See which module failed in the most samples
qc_fails(qc, "module")
modulenb_problemssample
Per base sequence content5S1, S2, S3, S4, S5
Per sequence GC content2S3, S4

For each module, the number of problems (failures) and the name of samples, that failed, are shown.

  • Modules that warned in the most samples:
# See which module warned in the most samples
qc_warns(qc, "module")
modulenb_problemssample
Sequence Length Distribution5S1, S2, S3, S4, S5
Per sequence GC content3S1, S2, S5
  • Modules that failed or warned: Union of qc_fails() and qc_warns()
# See which modules failed or warned.
qc_problems(qc, "module")
modulenb_problemssample
Per base sequence content5S1, S2, S3, S4, S5
Per sequence GC content5S1, S2, S3, S4, S5
Sequence Length Distribution5S1, S2, S3, S4, S5

The output above is in a compact format. For a stretched format, type this:

qc_problems(qc, "module", compact = FALSE)
modulenb_problemssamplestatus
Per base sequence content5S1FAIL
Per base sequence content5S2FAIL
Per base sequence content5S3FAIL
Per base sequence content5S4FAIL
Per base sequence content5S5FAIL
Per sequence GC content5S3FAIL
Per sequence GC content5S4FAIL
Per sequence GC content5S1WARN
Per sequence GC content5S2WARN
Per sequence GC content5S5WARN
Sequence Length Distribution5S1WARN
Sequence Length Distribution5S2WARN
Sequence Length Distribution5S3WARN
Sequence Length Distribution5S4WARN
Sequence Length Distribution5S5WARN

In the the stretched format each row correspond to a unique sample. Additionally, the status of each module is specified.

It’s also possible to display problems for one or more specified modules. For example,

qc_problems(qc, "module",  name = "Per sequence GC content")
modulenb_problemssamplestatus
Per sequence GC content5S3FAIL
Per sequence GC content5S4FAIL
Per sequence GC content5S1WARN
Per sequence GC content5S2WARN
Per sequence GC content5S5WARN

Note that, partial matching of name is allowed. For example, name = “Per sequence GC content” equates to name = “GC content”.

qc_problems(qc, "module",  name = "GC content")

Per Sample Problems

  • Samples with one or more failed modules
# See which samples had one or more failed modules
qc_fails(qc, "sample")
samplenb_problemsmodule
S32Per base sequence content, Per sequence GC content
S42Per base sequence content, Per sequence GC content
S11Per base sequence content
S21Per base sequence content
S51Per base sequence content

For each sample, the number of problems (failures) and the name of modules, that failed, are shown.

  • Samples with failed or warned modules:
# See which samples had one or more module with failure or warning
qc_problems(qc, "sample", compact = FALSE)
samplenb_problemsmodulestatus
S13Per base sequence contentFAIL
S13Per sequence GC contentWARN
S13Sequence Length DistributionWARN
S23Per base sequence contentFAIL
S23Per sequence GC contentWARN
S23Sequence Length DistributionWARN
S33Per base sequence contentFAIL
S33Per sequence GC contentFAIL
S33Sequence Length DistributionWARN
S43Per base sequence contentFAIL
S43Per sequence GC contentFAIL
S43Sequence Length DistributionWARN
S53Per base sequence contentFAIL
S53Per sequence GC contentWARN
S53Sequence Length DistributionWARN

To specify the name of a sample of interest, type this:

qc_problems(qc, "sample", name = "S1")
samplenb_problemsmodulestatus
S13Per base sequence contentFAIL
S13Per sequence GC contentWARN
S13Sequence Length DistributionWARN

Building an HTML Report

The function qc_report() can be used to build a report of FastQC outputs. It creates an HTML file containing FastQC reports of one or multiple samples.

Inputs can be either a directory containing multiple FastQC reports or a single sample FastQC report.

Create a Multi-QC Report

We’ll build a multi-qc report for the following demo QC directory:

# Demo QC Directory
qc.dir <- system.file("fastqc_results", package = "fastqcr")
qc.dir
## [1] "/Library/Frameworks/R.framework/Versions/3.3/Resources/library/fastqcr/fastqc_results"
# Build a report
qc_report(qc.dir, result.file = "~/Desktop/multi-qc-result",
          experiment = "Exome sequencing of colon cancer cell lines")

An example of report is available at: fastqcr multi-qc report

Create a One-Sample Report

We’ll build a report for the following demo QC file:

 qc.file <- system.file("fastqc_results", "S1_fastqc.zip", package = "fastqcr")
qc.file
## [1] "/Library/Frameworks/R.framework/Versions/3.3/Resources/library/fastqcr/fastqc_results/S1_fastqc.zip"
  • One-Sample QC report with plot interpretations:
 qc_report(qc.file, result.file = "one-sample-report-with-interpretation",
   interpret = TRUE)

An example of report is available at: One sample QC report with interpretation

  • One-Sample QC report without plot interpretations:
 qc_report(qc.file, result.file = "one-sample-report",
   interpret = FALSE)

An example of report is available at: One sample QC report without interpretation

Importing and Plotting a FastQC QC Report

We’ll visualize the output for sample 1:

# Demo file
qc.file <- system.file("fastqc_results", "S1_fastqc.zip",  package = "fastqcr")
qc.file
## [1] "/Library/Frameworks/R.framework/Versions/3.3/Resources/library/fastqcr/fastqc_results/S1_fastqc.zip"

We start by reading the output using the function qc_read(), which returns a list of tibbles containing the data for specified modules:

# Read all modules
qc <- qc_read(qc.file)
# Elements contained in the qc object
names(qc)
##  [1] "summary""basic_statistics""per_base_sequence_quality""per_tile_sequence_quality"    
##  [5] "per_sequence_quality_scores""per_base_sequence_content""per_sequence_gc_content""per_base_n_content"           
##  [9] "sequence_length_distribution""sequence_duplication_levels""overrepresented_sequences""adapter_content"              
## [13] "kmer_content""total_deduplicated_percentage"

The function qc_plot() is used to visualized the data of a specified module. Allowed values for the argument modules include one or the combination of:

  • “Summary”,
  • “Basic Statistics”,
  • “Per base sequence quality”,
  • “Per sequence quality scores”,
  • “Per base sequence content”,
  • “Per sequence GC content”,
  • “Per base N content”,
  • “Sequence Length Distribution”,
  • “Sequence Duplication Levels”,
  • “Overrepresented sequences”,
  • “Adapter Content”
qc_plot(qc, "Per sequence GC content")

qc_plot(qc, "Per base sequence quality")

qc_plot(qc, "Per sequence quality scores")

qc_plot(qc, "Per base sequence content")

qc_plot(qc, "Sequence duplication levels")
fastqcrfastqcrfastqcrfastqcrfastqcr

fastqcr

Interpreting FastQC Reports

  • Summary shows a summary of the modules which were tested, and the status of the test results:
    • normal results (PASS),
    • slightly abnormal (WARN: warning)
    • or very unusual (FAIL: failure).

Some experiments may be expected to produce libraries which are biased in particular ways. You should treat the summary evaluations therefore as pointers to where you should concentrate your attention and understand why your library may not look normal.

qc_plot(qc, "summary")
statusmodulesample
PASSBasic StatisticsS1.fastq
PASSPer base sequence qualityS1.fastq
PASSPer tile sequence qualityS1.fastq
PASSPer sequence quality scoresS1.fastq
FAILPer base sequence contentS1.fastq
WARNPer sequence GC contentS1.fastq
PASSPer base N contentS1.fastq
WARNSequence Length DistributionS1.fastq
PASSSequence Duplication LevelsS1.fastq
PASSOverrepresented sequencesS1.fastq
PASSAdapter ContentS1.fastq
PASSKmer ContentS1.fastq
  • Basic statistics shows basic data metrics such as:
    • Total sequences: the number of reads (total sequences),
    • Sequence length: the length of reads (minimum - maximum)
    • %GC: GC content
qc_plot(qc, "Basic statistics")
MeasureValue
FilenameS1.fastq
File typeConventional base calls
EncodingSanger / Illumina 1.9
Total Sequences50299587
Sequences flagged as poor quality0
Sequence length35-76
%GC48
  • Per base sequence quality plot depicts the quality scores across all bases at each position in the reads. The background color delimits 3 different zones: very good quality (green), reasonable quality (orange) and poor quality (red). A good sample will have qualities all above 28:
qc_plot(qc, "Per base sequence quality")
fastqcr

fastqcr

Problems:

  • warning if the median for any base is less than 25.
  • failure if the median for any base is less than 20.

Common reasons for problems:

  • Degradation of (sequencing chemistry) quality over the duration of long runs. Remedy: Quality trimming.

  • Short loss of quality earlier in the run, which then recovers to produce later good quality sequence. Can be explained by a transient problem with the run (bubbles in the flowcell for example). In these cases trimming is not advisable as it will remove later good sequence, but you might want to consider masking bases during subsequent mapping or assembly.

  • Library with reads of varying length. Warning or error is generated because of very low coverage for a given base range. Before committing to any action, check how many sequences were responsible for triggering an error by looking at the sequence length distribution module results.

  • Per sequence quality scores plot shows the frequencies of quality scores in a sample. It allows you to see if a subset of your sequences have low quality values. If the reads are of good quality, the peak on the plot should be shifted to the right as far as possible (quality > 27).
qc_plot(qc, "Per sequence quality scores")
fastqcr

fastqcr

Problems:

  • warning if the most frequently observed mean quality is below 27 - this equates to a 0.2% error rate.
  • failure if the most frequently observed mean quality is below 20 - this equates to a 1% error rate.

Common reasons for problems:

General loss of quality within a run. Remedy: For long runs this may be alleviated through quality trimming.

  • Per base sequence content shows the four nucleotides’ proportions for each position. In a random library you expect no nucleotide bias and the lines should be almost parallel with each other. In a good sequence composition, the difference between A and T, or G and C is < 10% in any position.
qc_plot(qc, "Per base sequence content")
fastqcr

fastqcr

It’s worth noting that some types of library will always produce biased sequence composition, normally at the start of the read. For example, in RNA-Seq data, it is common to have bias at the beginning of the reads. This occurs during RNA-Seq library preparation, when “random” primers are annealed to the start of sequences. These primers are not truly random, and it leads to a variation at the beginning of the reads. We can remove these primers using a trim adaptors tool.

Problems:

  • warning if the difference between A and T, or G and C is greater than 10% in any position.
  • failure if the difference between A and T, or G and C is greater than 20% in any position.

Common reasons for problems:

  • Overrepresented sequences: adapter dimers or rRNA

  • Biased selection of random primers for RNA-seq. Nearly all RNA-Seq libraries will fail this module because of this bias, but this is not a problem which can be fixed by processing, and it doesn’t seem to adversely affect the ability to measure expression.

  • Biased composition libraries: Some libraries are inherently biased in their sequence composition. For example, library treated with sodium bisulphite, which will then converted most of the cytosines to thymines, meaning that the base composition will be almost devoid of cytosines and will thus trigger an error, despite this being entirely normal for that type of library.

  • Library which has been aggressively adapter trimmed.

  • Per sequence GC content plot displays GC distribution over all sequences. In a random library you expect a roughly normal GC content distribution. An unusually sharped or shifted distribution could indicate a contamination or some systematic biases:
qc_plot(qc, "Per sequence GC content")
fastqcr

fastqcr

You can generate the theoretical GC content curves files using an R package called fastqcTheoreticalGC written by Mike Love.

  • Per base N content. If a sequencer is unable to make a base call with sufficient confidence then it will normally substitute an N rather than a conventional base call. This module plots out the percentage of base calls at each position for which an N was called.
qc_plot(qc, "Per base N content")
fastqcr

fastqcr

Problems:

  • warning if any position shows an N content of >5%.
  • failure if any position shows an N content of >20%.

Common reasons for problems:

  • General loss of quality.
  • Very biased sequence composition in the library.
  • Sequence length distribution module reports if all sequences have the same length or not. For some sequencing platforms it is entirely normal to have different read lengths so warnings here can be ignored. In many cases this will produce a simple graph showing a peak only at one size. This module will raise an error if any of the sequences have zero length.
qc_plot(qc, "Sequence length distribution")
fastqcr

fastqcr

  • Sequence duplication levels. This module counts the degree of duplication for every sequence in a library and creates a plot showing the relative number of sequences with different degrees of duplication. A high level of duplication is more likely to indicate some kind of enrichment bias (eg PCR over amplification).
qc_plot(qc, "Sequence duplication levels")
fastqcr

fastqcr

Problems:

  • warning if non-unique sequences make up more than 20% of the total.
  • failure if non-unique sequences make up more than 50% of the total.

Common reasons for problems:

  • Technical duplicates arising from PCR artifacts

  • Biological duplicates which are natural collisions where different copies of exactly the same sequence are randomly selected.

In RNA-seq data, duplication levels can reach even 40%. Nevertheless, while analyzing transcriptome sequencing data, we should not remove these duplicates because we do not know whether they represent PCR duplicates or high gene expression of our samples.

  • Overrepresented sequences section gives information about primer or adaptor contaminations. Finding that a single sequence is very overrepresented in the set either means that it is highly biologically significant, or indicates that the library is contaminated, or not as diverse as you expected. This module lists all of the sequence which make up more than 0.1% of the total.
qc_plot(qc, "Overrepresented sequences")
fastqcr

fastqcr

Problems:

  • warning if any sequence is found to represent more than 0.1% of the total.
  • failure if any sequence is found to represent more than 1% of the total.

Common reasons for problems:

small RNA libraries where sequences are not subjected to random fragmentation, and the same sequence may naturally be present in a significant proportion of the library.

  • Adapter content module checks the presence of read-through adapter sequences. It is useful to know if your library contains a significant amount of adapter in order to be able to assess whether you need to adapter trim or not.
qc_plot(qc, "Adapter content")
fastqcr

fastqcr

Problems:

  • warning if any sequence is present in more than 5% of all reads.
  • failure if any sequence is present in more than 10% of all reads.

A warning or failure means that the sequences will need to be adapter trimmed before proceeding with any downstream analysis.

  • K-mer content
qc_plot(qc, "Kmer content")
fastqcr

fastqcr

Infos

This analysis has been performed using R software (ver. 3.3.2).


Viewing all articles
Browse latest Browse all 183

Trending Articles