The goal of CNVMotif is to explore, analyze and visualize the copy number variation (CNV) motifs in cancer genomics.
You can install the released version of {CNVMotif} from
CRAN with:
install.packages("CNVMotif")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("ShixiangWang/CNVMotif")
library(CNVMotif)
library(ggseqlogo)
#> Warning: package 'ggseqlogo' was built under R version 4.0.1
data(ggseqlogo_sample)
## Same as ggseqlogo()
p1 <- ggseqlogo2(seqs_dna[[1]])
p1
## Extra feature
idor <- as.character(1:4)
names(idor) <- c("A", "C", "G", "T")
p2 <- ggseqlogo2(seqs_dna[[1]], idor = idor)
p2