View source: R/plotAlignment.R
plotAlignment | R Documentation |
Generate MSA alignment figures from the results of alignSeq()
plotAlignment(msa)
msa |
An msa object obtained from |
Multiple sequence alignment plot.
The function utilizes ggmsa package for visualizations. Further details on ggmsa can be found at the link mentioned below. https://cran.r-project.org/web/packages/ggmsa/vignettes/ggmsa.html
library(ggmsa)
file_path <- system.file("extdata", "IGH_sequencing", package = "LymphoSeq2")
study_table <- LymphoSeq2::readImmunoSeq(path = file_path, threads = 1)
study_table <- LymphoSeq2::topSeqs(study_table, top = 100)
nucleotide_table <- LymphoSeq2::productiveSeq(study_table,
aggregate = "junction")
msa <- LymphoSeq2::alignSeq(nucleotide_table,
repertoire_id = "IGH_MVQ92552A_BL",
type = "junction_aa", method = "ClustalW"
)
LymphoSeq2::plotAlignment(msa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.