View source: R/genomebrowser.R
getAssemblyFromFasta | R Documentation |
genomebrowser
or genomemap
.getAssemblyFromFasta
create assemblies from a FASTA file for their use as parameter of genomebrowser
or genomemap
.
getAssemblyFromFasta(fasta)
fasta |
a "character" string representing the input Fasta file to be added in the genome browser. |
a data frame in BED format ready to use as an assembly in genomebrowser
or genomemap
.
FASTA format is a text-based format for representing either nucleotide sequences or peptide sequences, in which nucleotides or amino acids are represented using single-letter codes.
David Barrios and Carlos Prieto. Bioinformatics, University of Salamanca. See http://d3gb.usal.es/
The ‘D3GB’ Website: http://d3gb.usal.es
genomebrowser
, genomemap
.
# 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)
# Assembly generation
getAssemblyFromFasta(fasta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.