Visualise kmer profiles

vis_immunr_kmer_profile_main(.data, .plot, ...)

Arguments

.data

Kmer data, an output from kmer_profile.

.plot

String specifying the plot type:

- "seqlogo" for traditional sequence logo plots using vis_seqlogo;

- "textlogo" for modified approach to sequence logo plots via text labels using vis_textlogo;

...

Other arguments passed to vis_textlogo or vis_seqlogo, depending on the ".plot" argument.

Value

A ggplot2 object.

Examples

data(immdata)
getKmers(immdata$data[[1]], 5) %>%
  kmer_profile() %>%
  vis("seqlogo")
#> Warning: Warning: removed 5 non-amino acid symbol(s): A
#> Please make sure your data doesn't have them in the future.