Description Usage Arguments Value Author(s) See Also Examples
View source: R/genomebrowser.R
genome_addSequence
add FASTA sequences to genomeviewer
.
1 | genome_addSequence(gb, fastafile)
|
gb |
a genome browser object produced by the function |
fastafile |
a "character" string representing the input Fasta file to be added in the genome browser. |
The function add genome sequence on Fasta format to genomebrowser
.
David Barrios and Carlos Prieto. Bioinformatics, University of Salamanca. See http://d3gb.usal.es/
The ‘D3GB’ Website: http://d3gb.usal.es
genomebrowser
, genome_addGFF
, genome_addTrack
, genome_addVCF
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Download fasta file
fasta <- 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.fna.gz"),fasta)
# 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 <- genomebrowser(getAssemblyFromFasta(fasta), dir = "Micromonospora_sequence")
genome_addSequence(gb,fasta)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.