This package enhances the sequence alignment workflow of Biostrings package by providing alignment visualization using ggplot.
devtools::github_install("hannzhang/align")
Biostrings, ggplot2,
First, draw the x and y axis for the plot.
draw_compare(x, y)
Align the two inputs sequences. In this example, i will randomly choose two inputs.
align("ACTCGCAATATGVTAGGVVAG", "ACTTTATGCTATGCGC")
Call getColor to give different colors for each nucleotide.
getColor("A") getColor("C") getColor("G") getColor("T")
{width=70%}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.