genome_addSequence: Add genome sequence on Fasta format to 'genomebrowser'.

View source: R/genomebrowser.R

genome_addSequenceR Documentation

Add genome sequence on Fasta format to genomebrowser.

Description

genome_addSequence add FASTA sequences to genomeviewer.

Usage

genome_addSequence(gb, fastafile)

Arguments

gb

a genome browser object produced by the function genomebrowser.

fastafile

a "character" string representing the input Fasta file to be added in the genome browser.

Value

No return value, called for side effects

Author(s)

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

See Also

The ‘D3GB’ Website: http://d3gb.usal.es

genomebrowser, genome_addGFF, genome_addTrack, genome_addVCF.

Examples


# Download fasta file
fasta <- tempfile()
download.file(paste0("https://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.
gb <- genomebrowser(getAssemblyFromFasta(fasta))

genome_addSequence(gb,fasta)

plot(gb)


D3GB documentation built on June 22, 2024, 9:35 a.m.