Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvelden/geneviewer
An R package designed for drawing gene arrow maps
https://github.com/nvelden/geneviewer
genetics r
Last synced: 2 months ago
JSON representation
An R package designed for drawing gene arrow maps
- Host: GitHub
- URL: https://github.com/nvelden/geneviewer
- Owner: nvelden
- License: other
- Created: 2023-07-17T00:20:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-10T17:46:33.000Z (4 months ago)
- Last Synced: 2024-09-10T19:57:42.648Z (4 months ago)
- Topics: genetics, r
- Language: R
- Homepage: https://nvelden.github.io/geneviewer/
- Size: 11.3 MB
- Stars: 22
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
README
geneviewer - Gene Cluster Visualizations in R[![R-CMD-check](https://github.com/nvelden/geneviewer/workflows/R-CMD-check/badge.svg)](https://github.com/nvelden/geneviewer/actions) [![CRAN status](https://www.r-pkg.org/badges/version/geneviewer)](https://CRAN.R-project.org/package=geneviewer) ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
## geneviewer
**geneviewer** is an R package for plotting gene clusters and transcripts. It imports data from GenBank, FASTA, and GFF files, performs BlastP 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](https://nvelden.github.io/geneviewer/articles/geneviewer.html).
## Installation
**geneviewer** is still in the development stage which might lead to breaking changes and thus not yet released on CRAN. You can install the development version from [GitHub](https://github.com/) with:
``` r
# 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.
``` r
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](https://nvelden.github.io/geneviewer/articles/Examples.html) section.
## Issues
If you encounter any issues or have feature requests, please open an [Issue](https://github.com/nvelden/geneviewer/issues).