gbk2genomebrowser: Generates an interactive genome browser.

Description Usage Arguments Value Author(s) Examples

View source: R/genomebrowser.R

Description

gbk2genomebrowser creates an interactive genome browser from a GenBank file.

Usage

1
gbk2genomebrowser(gbkfile, server = FALSE, dir = "GenomeBrowser")

Arguments

gbkfile

a "character" string representing the input GenBank file to be represented in the genome browser.

server

a logical value to enable (TRUE) or disable (FALSE) the server mode. Server mode: designed to be shared as a website. Resulting folder should be added to the Apache applications directory and enable writting permissions. In this way the genome browser will be working as a web site. Local mode: the genome browser will be functional on your local machine.

dir

a "character" string representing the directory where the graph will be saved.

Value

The function creates a folder in the working directory of your computer with an HTML document (index.html) which contains the graph. This file can be directly opened with Firefox. If you want to open this file stored in your local machine with other Web browser, please visit the help section on the D3GB Web site (http://d3gb.usal.es).

Author(s)

David Barrios and Carlos Prieto. Bioinformatics, University of Salamanca. See http://d3gb.usal.es/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# Download GenBank file
gbff <- tempfile()
download.file(paste0("ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/297/395/",
"GCF_000297395.2_ASM29739v2/GCF_000297395.2_ASM29739v2_genomic.gbff.gz"),gbff)

# Genome browser generation.
# It creates a genome browser ready to be viewed in Firefox.
# For a server version, ready to be shared with Apache as a Website, set the parameter server=True
gb <- gbk2genomebrowser(gbff, dir = "Micromonospora_gbk")

## End(Not run)

D3GB documentation built on May 2, 2019, 9:42 a.m.