Skip to content

Commit

Permalink
Update documentation and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nvelden committed Jun 6, 2024
1 parent bd4bffb commit 9d3e459
Show file tree
Hide file tree
Showing 74 changed files with 420 additions and 281 deletions.
11 changes: 6 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ Title: Gene Cluster Visualizations in R
Version: 0.1.7
Author: Niels van der Velden
Maintainer: Niels van der Velden <n.s.j.vandervelden@gmail.com>
Description: 'geneviewer' is an R package for plotting gene clusters.
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.
Description: '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.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Expand Down
2 changes: 1 addition & 1 deletion R/transcript.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#'
#' @return A dataframe with the original exons and the calculated introns, sorted
#' by transcript and start position. Each row includes the `start`, `end`,
#' `type` (exon or intron), `transcript`, and `strand` for each segment.
#' `type` (exon, UTR or intron), `transcript`, and `strand` for each segment.
#'
#' @importFrom dplyr mutate filter group_by arrange lead select bind_rows
#' @importFrom rlang .data
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## geneviewer

**geneviewer** is an R package for plotting gene clusters. 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).
**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

Expand Down Expand Up @@ -54,6 +54,10 @@ For additional examples and the corresponding code to create the plots, please v

<hr>

<img src="man/figures/BRCA1_splice_variants.png"/>

<hr>

<img src="man/figures/MUMmer.png"/>

<hr>
Expand Down
6 changes: 3 additions & 3 deletions docs/articles/BLASTP.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@ container.prototype.transcript = function (group, show = true, options = {}) {
const { xPos, yPos, height } = getAttributesForIndex(d, i, styleIntrons, itemStyleIntrons);
const yOffset = d.direction === 'forward' ? -height : +height;
const rotation = this.reverse
? (d.direction === 'forward' ? 180 : 0)
? (d.direction === 'reverse' ? 180 : 0)
: (d.direction === 'forward' ? 0 : 180);
return `rotate(${rotation}, ${xPos}, ${yPos + yOffset}) translate(${xPos}, ${yPos + yOffset})`;
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@ container.prototype.transcript = function (group, show = true, options = {}) {
const { xPos, yPos, height } = getAttributesForIndex(d, i, styleIntrons, itemStyleIntrons);
const yOffset = d.direction === 'forward' ? -height : +height;
const rotation = this.reverse
? (d.direction === 'forward' ? 180 : 0)
? (d.direction === 'reverse' ? 180 : 0)
: (d.direction === 'forward' ? 0 : 180);
return `rotate(${rotation}, ${xPos}, ${yPos + yOffset}) translate(${xPos}, ${yPos + yOffset})`;
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@ container.prototype.transcript = function (group, show = true, options = {}) {
const { xPos, yPos, height } = getAttributesForIndex(d, i, styleIntrons, itemStyleIntrons);
const yOffset = d.direction === 'forward' ? -height : +height;
const rotation = this.reverse
? (d.direction === 'forward' ? 180 : 0)
? (d.direction === 'reverse' ? 180 : 0)
: (d.direction === 'forward' ? 0 : 180);
return `rotate(${rotation}, ${xPos}, ${yPos + yOffset}) translate(${xPos}, ${yPos + yOffset})`;
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@ container.prototype.transcript = function (group, show = true, options = {}) {
const { xPos, yPos, height } = getAttributesForIndex(d, i, styleIntrons, itemStyleIntrons);
const yOffset = d.direction === 'forward' ? -height : +height;
const rotation = this.reverse
? (d.direction === 'forward' ? 180 : 0)
? (d.direction === 'reverse' ? 180 : 0)
: (d.direction === 'forward' ? 0 : 180);
return `rotate(${rotation}, ${xPos}, ${yPos + yOffset}) translate(${xPos}, ${yPos + yOffset})`;
})
Expand Down
Loading

0 comments on commit 9d3e459

Please sign in to comment.