Description Usage Arguments Details Value Examples
Plot the Per Sequence GC Content for a set of FASTQC files
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 73 74 | plotGcContent(
x,
usePlotly = FALSE,
labels,
theoreticalGC = TRUE,
gcType = c("Genome", "Transcriptome"),
species = "Hsapiens",
GCobject,
Fastafile,
n = 1e+06,
...
)
## S4 method for signature 'ANY'
plotGcContent(
x,
usePlotly = FALSE,
labels,
theoreticalGC = TRUE,
gcType = c("Genome", "Transcriptome"),
species = "Hsapiens",
GCobject,
Fastafile,
n = 1e+06,
...
)
## S4 method for signature 'character'
plotGcContent(
x,
usePlotly = FALSE,
labels,
theoreticalGC = TRUE,
gcType = c("Genome", "Transcriptome"),
species = "Hsapiens",
GCobject,
Fastafile,
n = 1e+06,
...
)
## S4 method for signature 'FastqcData'
plotGcContent(
x,
usePlotly = FALSE,
labels,
theoreticalGC = TRUE,
gcType = c("Genome", "Transcriptome"),
species = "Hsapiens",
GCobject,
Fastafile,
n = 1e+06,
counts = FALSE,
lineCols = c("red", "blue"),
...
)
## S4 method for signature 'FastqcDataList'
plotGcContent(
x,
usePlotly = FALSE,
labels,
theoreticalGC = TRUE,
gcType = c("Genome", "Transcriptome"),
species = "Hsapiens",
GCobject,
Fastafile,
n = 1e+06,
plotType = c("heatmap", "line", "cdf"),
pwfCols,
cluster = FALSE,
dendrogram = FALSE,
...
)
|
x |
Can be a |
usePlotly |
|
labels |
An optional named vector of labels for the file names. All filenames must be present in the names. File extensions are dropped by default. |
theoreticalGC |
|
gcType |
|
species |
|
GCobject |
an object of class GCTheoretical. Defaults to the gcTheoretical object supplied with the package |
Fastafile |
a fasta file contains DNA sequences to generate theoretical GC content |
n |
number of simulated reads to generate theoretical GC content from
|
... |
Used to pass various potting parameters to theme. |
counts |
|
lineCols |
Colors for observed and theoretical GC lines in single plots |
plotType |
Takes values "line", "heatmap" or "cdf" |
pwfCols |
Object of class |
cluster |
|
dendrogram |
|
Makes plots for GC_Content. When applied to a single FastqcData object a simple line plot will be drawn, with Theoretical GC content overlaid if desired.
When applied to multiple FastQC reports, the density at each GC content bin
can be shown as a heatmap by setting theoreticalGC = FALSE
. By
default the difference in observed and expected theoretical GC is shown.
Species and genome/transcriptome should also be set if utilising the
theoretical GC content.
As an alternative to a heatmap, a series of overlaid distributions can be
shown by setting plotType = "line"
.
Can produce a static ggplot2 object or an interactive plotly object.
A ggplot2 or plotly object
1 2 3 4 5 6 7 8 9 10 11 12 | # Get the files included with the package
packageDir <- system.file("extdata", package = "ngsReports")
fl <- list.files(packageDir, pattern = "fastqc.zip", full.names = TRUE)
# Load the FASTQC data as a FastqcDataList object
fdl <- FastqcDataList(fl)
# The default plot for a FastqcDataList
plotGcContent(fdl)
# Plot a single FastqcData object
plotGcContent(fdl[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.