Description Usage Arguments Value Author(s) Examples
View source: R/genomebrowser.R
gbk2genomebrowser
creates an interactive genome browser from a GenBank file.
1 | gbk2genomebrowser(gbkfile, server = FALSE, dir = "GenomeBrowser")
|
gbkfile |
a "character" string representing the input GenBank file to be represented in the genome browser. |
server |
a logical value to enable ( |
dir |
a "character" string representing the directory where the graph will be saved. |
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).
David Barrios and Carlos Prieto. Bioinformatics, University of Salamanca. See http://d3gb.usal.es/
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.