D3GB from a GenBank file in R

This tutorial shows how to create a D3GB genome browser from a GenBank file with the R package. This will create a complete genome browser of Micromonospora lupini. Install the D3GB package and write the following code in R:

library(D3GB)

# Download GenBank file
gbff <- tempfile()
download.file("ftp://ftp.ncbi.nlm.nih.gov/genomes/all/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_Lupini_gbk")


view result