Given a GRanges and a reference genome returns the sequences for all the ranges as in fasta format.
To be used in this form:
GR2fasta(GR, org, fastaFile=NULL)
org: an object of class BSgenome
fastaFile: character or NULL; an optional file name for the file to be written on disk
For each range in the gr GRanges , the unmasked reference sequenced is retrieved. All the sequences are returned in fasta format, named by the genomic ranges in UCSC format, and optionally written on disk.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.