Description Usage Arguments Value See Also Examples
Create a quick overview of the kmers mapped to a region around the given position.
1 | kmr_plot_map(kmers, snp_pos)
|
kmers |
a GenomicRange object |
snp_pos |
a position on the sequence |
ggbio plot
Other kmer_help:
kmr_compare()
,
kmr_length_fasta()
,
kmr_map_kmers()
,
kmr_plot_response()
,
kmr_position_coverage()
,
kmr_response()
,
kmr_scan_k_min()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | if (interactive()) {
fa <- system.file("testdata/phix174.fasta", package = "kmerize")
a <- system.file("testdata/phix174-pe_w_err_5k_30q.fastq.gz",
package = "kmerize")
b <- system.file("testdata/phix174_m-pe_w_err_5k_30q.fastq.gz",
package = "kmerize")
x <- kmr_scan_k_min(a, b, k = 9, min_kmers = 3, cleanup = FALSE)
rr <- kmr_read_rds(x$kmer_tbl)
kmap <- kmr_map_kmers(rr, genome = fa, "phi-X174")
kmr_plot_map(kmap, snp_pos = 911)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.