Description Usage Arguments Methods and Functions Author(s) See Also Examples
These functions allow to plot or retrieve summary statistics for
quality assessment objects generated by the qa2
function of the
ShortRead
package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ## S4 method for signature 'QA'
overview(x, ...)
## S4 method for signature 'QAReadQuality'
plot(x, y, subset=NULL, ...)
## S4 method for signature 'QANucleotideByCycle'
plot(x, y, dnaCol=c("#1F78B4",
"#33A02C", "#B2DF8A", "#A6CEE3", "#E31A1C"), subset=NULL, ...)
## S4 method for signature 'QAQualityByCycle'
plot(x, y, type="levelplot", subset=NULL, ...)
## S4 method for signature 'QANucleotideUse'
plot(x, y, dnaCol=c("#1F78B4", "#33A02C",
"#B2DF8A", "#A6CEE3", "#E31A1C"), subset=NULL, ...)
## S4 method for signature 'QAQualityUse'
plot(x, y, subset=NULL, ...)
## S4 method for signature 'QASequenceUse'
plot(x, y, ...)
## S4 method for signature 'QAQualityUse'
plotDensity(x, xlab="Used base-call quality",
ylab="density", col, pal=brewer.pal(8, "Set1"), lty=1, subset=NULL, ...)
## S4 method for signature 'QANucleotideUse'
table(x, ...)
## S4 method for signature 'QAFrequentSequence'
table(x, ...)
## S4 method for signature 'QAAdapterContamination'
table(x, ...)
|
(in alphabetic order)
... |
Additional arguments. |
col |
Allows to specify the colors for the individual sequencing runs manually. |
dnaCol |
The colors that for the individual nucleotides (A, C, G, T and N). |
lty |
For |
pal |
Vector of colors that can be used to define the colors for the individual sequencing runs. Colors might be recycled. |
subset |
Generate the plot for a subset of data. Argument |
type |
For |
x |
The QA object (see function |
xlab |
For |
y |
Not used by any of the functions. |
ylab |
For |
Returns a data.frame
with some information about the
analyzed fastq files.
Creates a plot summarizing the quality information from the
corresponding QA object (see qa2
for a
full list of QA objects).
plotDensity
Draws a density plot representing the signal distribution.
returns summary statistics for the corresponding QA object:
For QAFrequentSequence
:
A data.frame
with columns Id
, Records
,
Seq_count
and Sequence
for the sample ID, the number
of records (reads) for that sample, the number of occurences of
the sequence and the sequence.
For QANucleotideUse
:
A data.frame
with the total count of nucleotides as
well as the percentage of nucleotide use in all sequences of
the sample.
Johannes Rainer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | #############
## Examples:
##
## Perform a quality assessment on a fastq file:
dirpath <- system.file(package="SeqUtils", "extdata")
fastqs <- dir(dirpath, "example.fastq.gz", full=TRUE)
## collating the quality controls:
coll <- QACollate(
QAFastqSource(con=fastqs, n=10e+06),
QAReadQuality(),
QAAdapterContamination(),
QANucleotideUse(),
QAQualityUse(),
QASequenceUse(),
QAFrequentSequence(n=10),
QANucleotideByCycle(),
QAQualityByCycle()
)
## perform the quality control
qualy <- qa2(coll, verbose = TRUE)
############
## overview
overview(qualy)
############
## distribution of average base call quality per read
plot(qualy$QAReadQuality)
############
## nucleotide quality by cycle:
plot(qualy$QANucleotideByCycle)
###########
## base call quality by cycle
plot(qualy$QAQualityByCycle)
plot(qualy$QAQualityByCycle, type="boxplot")
###########
## nucleotide use
plot(qualy$QANucleotideUse)
## in addition return the table with the actual values (and percentages)
table(qualy$QANucleotideUse)
##########
## base call quality use
plot(qualy$QAQualityUse)
## plot the base call quality as density distributions
plotDensity(qualy$QAQualityUse)
##########
## sequence use
plot(qualy$QASequenceUse)
#########
## frequent sequence
table(qualy$QAFrequentSequence)
#########
## adapter contamination
table(qualy$QAAdapterContamination)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.