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("https://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.
gb <- gbk2genomebrowser(gbff)

# It creates a genome browser ready to be viewed in your browser.
plot(gb)


view result