Skip to content

Commit

Permalink
Add .bed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nvelden committed Apr 26, 2024
1 parent 94b7178 commit 0055d86
Show file tree
Hide file tree
Showing 14 changed files with 290 additions and 160 deletions.
4 changes: 2 additions & 2 deletions R/read_genbank.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ read_gbk <- function(path, sections = NULL, features = NULL, origin = TRUE) {
}

# Process each .gbk file in the directory
basename <- sapply(files, function(x) sub("\\.gbk$", "", basename(x)))
basename <- sapply(files, function(x) sub("\\.gbk$|\\.gb$", "", basename(x)))
results <- setNames(lapply(files, function(file) process_gbk(file, sections, features, origin, basename(file))),
basename)

} else if (file.exists(path)) {
basename <- sub("\\.gbk$", "", basename(path))
basename <- sub("\\.gbk$|\\.gb$", "", basename(path))
results[[basename]] <- process_gbk(path, sections, features, origin, basename)
} else {
stop("The specified path does not exist.")
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<p align="center">

<img src="man/figures/logo.png" class="pkgdown-hide" height="150px" align="right"/>

<h1><strong>geneviewer</strong> - Gene Cluster Visualizations in R</h1>

<img src="man/figures/logo.png" class="pkgdown-hide" height="150px" align="right">
<h1><strong>geneviewer</strong> - Gene Cluster Visualizations in R</h1>
</p>

<!-- badges: start -->
Expand All @@ -14,7 +11,7 @@

## geneviewer

**geneviewer** is an R package designed for visualizing gene clusters. It can import data directly from GenBank, GFF and FASTA files, perform BlastP alignments between clusters and visualize the results in gene arrow maps. In addition there are extensive options to customize the gene arrow maps such as adding a legend, labels, links, annotations, customized scales, colors, tooltips and much more. To explore all features visit the [package website](https://nvelden.github.io/geneviewer/articles/geneviewer.html).
**geneviewer** is an R package designed for visualizing gene clusters. It can import data directly from GenBank, GFF, BED and FASTA files, perform BlastP alignments between clusters and visualize the results in gene arrow maps. In addition there are extensive options to customize the gene arrow maps such as adding a legend, labels, links, annotations, customized scales, colors, tooltips and much more. To explore all features visit the [package website](https://nvelden.github.io/geneviewer/articles/geneviewer.html).

## Installation

Expand Down
12 changes: 6 additions & 6 deletions docs/articles/BLASTP.html

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions docs/articles/Examples.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/articles/LoadFastaFiles.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/articles/LoadGFF.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/articles/LoadGenBankFiles.html

Large diffs are not rendered by default.

232 changes: 116 additions & 116 deletions docs/articles/geneviewer.html

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ articles:
LoadGFF: LoadGFF.html
LoadGenBankFiles: LoadGenBankFiles.html
geneviewer: geneviewer.html
last_built: 2024-04-25T14:04Z
last_built: 2024-04-26T13:40Z
urls:
reference: https://nvelden.github.io/geneviewer/reference
article: https://nvelden.github.io/geneviewer/articles
Expand Down
5 changes: 5 additions & 0 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

126 changes: 126 additions & 0 deletions docs/reference/read_bed.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
<url>
<loc>https://nvelden.github.io/geneviewer/reference/protein_blast.html</loc>
</url>
<url>
<loc>https://nvelden.github.io/geneviewer/reference/read_bed.html</loc>
</url>
<url>
<loc>https://nvelden.github.io/geneviewer/reference/read_fasta.html</loc>
</url>
Expand Down

0 comments on commit 0055d86

Please sign in to comment.