This package enhances the sequence alignment workflow of Biostrings package by providing alignment visualization using ggplot.

Install

devtools::github_install("hannzhang/align")

Dependencies

    Biostrings,
    ggplot2,

Example Workflow

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")

Sample visualizations

alt text{width=70%}



hannzhang/align documentation built on May 25, 2019, 9:24 a.m.