<p style="MARGIN: 0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri">Given an organism (say: human) and a gene name (say: Leptin) I am looking for the location of the gene in the DNA sequence. I then want to download 10KBp upstream. Is anyone aware of code that can help me do this? I understand I can use Ensembl’s web interface but I am working on a project that requires me to pull this data programmatically.</font></p>

<p style="MARGIN: 0in 0in 10pt" class="MsoNormal"><font size="3"><font face="Calibri"><span style="mso-spacerun: yes"> </span>Any pointers would be greatly appreciated.</font></font></p>
<p style="MARGIN: 0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri">Many thanks in advance,</font></p>
<p style="MARGIN: 0in 0in 10pt" class="MsoNormal"><font size="3" face="Calibri">Erik van Renselaar</font></p>