Gene Cluster Visualizations

Provides tools for plotting gene clusters and transcripts by importing data from GenBank, FASTA, and GFF files. It performs global pairwise protein alignments and 'MUMmer' alignments [Needleman and Wunsch (1970) ; Delcher et al. (1999) ] and displays results on gene arrow maps. Extensive customization options are available, including legends, labels, annotations, scales, colors, tooltips, and more.


geneviewer - Gene Cluster Visualizations in R

R-CMD-check CRAN status Metacran downloads License: MIT

geneviewer is an R package for plotting gene clusters and transcripts. It imports data from GenBank, FASTA, and GFF files, performs protein and MUMmer alignments, and displays results on gene arrow maps. The package offers extensive customization options, including legends, labels, annotations, scales, colors, tooltips, and more. To explore all features visit the package website.


Interactive Shiny Dashboard

Try the Gene Cluster Dashboard - a web interface that provides point-and-click access to geneviewer's visualization features. (Allow 1-2 minutes for loading)

Dashboard Repository

Installation

You can install the released version of geneviewer from CRAN with:

install.packages("geneviewer")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("nvelden/geneviewer")

Usage

The below example demonstrates using geneviewer to plot a gene cluster on a genomic sequence, using the start and end positions of each gene. The genes are grouped by class and labels are added using the GC_labels function.

library(geneviewer)

# Data
gene_cluster <- data.frame(
  name = c("ophB1", "ophC", "ophA", "ophD", "ophB2", "ophP", "ophE"),
  start = c(2522, 5286, 9536, 12616, 13183, 19346, 20170),
  end = c(4276, 4718, 10904, 11859, 15046, 16016, 21484),
  class = c("Monooxygenase", "NTF2-like", "Methyltransferase", 
  "O-acyltransferase", "Monooxygenase", "Prolyloligopeptidase", 
  "F-box/RNHI-like")
)

# Chart
GC_chart(gene_cluster, group = "class", height = "100px") %>%
  GC_labels("name")

Examples

For additional examples and the corresponding code to create the plots, please visit the Examples section.

Note: Most of these examples use themes (GC_theme()), patterns (GC_pattern()) or other options that are only available in the development version of geneviewer. Install it with devtools::install_github("nvelden/geneviewer").









Issues

If you encounter any issues or have feature requests, please open an Issue.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("geneviewer")

0.2.0 by Niels van der Velden, 16 hours ago


https://github.com/nvelden/geneviewer


Report a bug at https://github.com/nvelden/geneviewer/issues


Browse source code at https://github.com/cran/geneviewer


Authors: Niels van der Velden [aut, cre] , Mike Bostock [ctb, cph] (Bundled D3 library) , Eli Grey [ctb, cph] (Bundled FileSaver.js library)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports htmlwidgets, fontawesome, magrittr, dplyr, rlang, grDevices, stats, tools, utils

Suggests shiny, pwalign, Biostrings, chromote, htmltools, jsonlite, testthat

System requirements: MUMmer (optional, used by mummer_alignment())


See at CRAN