Description Usage Arguments Value Examples
View source: R/plot_overrep_kmer.R
Create a box plot of the log2(observed/expected) ratio across the length of the sequence as well as top overrepresented kmers. Only ratios greater than 2 are included in the box plot. Default is 20 bins across the length of the sequence and the top 2 overrepresented kmers, but this can be changed by the user.
1 | plot_overrep_kmer(overkm, bins = 20, top_num = 2, output_file = NA)
|
overkm |
data frame with columns pos, obsexp_ratio, and kmer |
bins |
number of intervals across the length of the sequence |
top_num |
number of most overrepresented kmers to plot |
output_file |
File to write plot to. Will not write to file if NA. Default NA. |
A box plot of the log2(observed/expected ratio) across the length of the sequence
1 2 3 4 | infile <- system.file("extdata", "test.fq.gz",
package = "qckitfastq")
over_km <- overrep_kmer(infile,k=4)
plot_overrep_kmer(over_km)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.