powered by
This function retrieves a gene sequence from the NCBI database.
getGeneSeq(chr, start, end, organism)
A string that contains the genomic sequence.
Chromosome number, numeric/string
Start position, numeric
End position, numeric
Name of the organism, string
Daniel Fischer
Extracting a gene sequence from NCBI database. For a list of available organism, visit
http://genome.ucsc.edu/cgi-bin/das/dsn. All id="." field are available.
if (FALSE) { # Extracting for Sus Scrofa, build version 3: getGeneSeq(1,2134,14532,"susScr3") getGeneSeq(10,1233312,1233350,"hg38") }
Run the code above in your browser using DataLab