geom_seed: geom_seed

View source: R/geom_seed.R

geom_seedR Documentation

geom_seed

Description

Highlighting the seed in miRNA sequences

Usage

geom_seed(seed, star = FALSE)

Arguments

seed

a character string.Specifying the miRNA seed sequence like 'GAGGUAG'.

star

a logical value indicating whether asterisks should be displayed.

Value

a ggplot layer

Author(s)

Lang Zhou

Examples

miRNA_sequences <- system.file("extdata/seedSample.fa", package="ggmsa")
ggmsa(miRNA_sequences, font = 'DroidSansMono', 
      color = "Chemistry_NT", none_bg = TRUE) +
geom_seed(seed = "GAGGUAG", star = FALSE)
ggmsa(miRNA_sequences, font = 'DroidSansMono', 
      color = "Chemistry_NT") +
geom_seed(seed = "GAGGUAG", star = TRUE)

YuLab-SMU/ggmsa documentation built on Dec. 23, 2024, 7:54 p.m.