Plots: Group Kmers and Represent them as Motif Logos

Description Usage Arguments Value Functions See Also Examples

Description

Kmers of interest can be collapsed or grouped by their levenshtein distance (>2) to simplify enriched/depleted kmer outputs. These functions help visualize how kmers are grouped as well as provide PWM which can be visualized using ggseqlogo.

Usage

1
2
3
(kmers, title = "")

kmer2tree(kmers, title = "")

Arguments

kmers

character list of kmers of the length.

title

string for plot titles defaults to no title.

Value

a tree, seqotif plots or a named list of PWMs

Functions

See Also

kmer_compare, ggseqlogo, msaClustalW

Examples

1
2
3
4
5
6
7
enriched_sixmers <- c("AAGGAA", "ACACAC", "AGAAGG", "AGAGAG", "AGAGGG",
"AGGAAG", "AGGAGG", "AGGGAG", "CACACA", "GAAGGA", "GAGAAG", "GAGAGA",
"GAGGAG", "GAGGGA", "GAGGGG", "GGAAGG", "GGAGGA", "GGAGGG", "GGGAGG")
(enriched_sixmers, "My Plot Title")
kmer2tree(enriched_sixmers, "My Tree Title")
kmer_PWMs <- kmer2PWM(enriched_sixmers)
kmer_PWMs

TaliaferroLab/FeatureReachR documentation built on Aug. 15, 2021, 2:21 p.m.