> For the complete documentation index, see [llms.txt](https://igb.mit.edu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://igb.mit.edu/bioinformatics-topics/tasks-bioinformatics-methods/ucsc-genome-bioinformatics/obtaining-dna-sequence-from-the-ucsc-database.md).

# Obtaining DNA sequence from the UCSC Database

### Obtaining genomic data from the UCSC database.

* Open the [UCSC browser](http://genome.ucsc.edu/) and navigate to the "Dec. 2013 (GRCh38/hg38)" human assembly.
* Enter the position chr4:133,148,410-133,195,705 and click submit.
* The appropriate view is [here](http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38\&lastVirtModeType=default\&lastVirtModeExtraState=\&virtModeType=default\&virtMode=0\&nonVirtPosition=\&position=chr4%3A133148410-133195705\&hgsid=471358297_U8D9cWC7h1ENj0nI8wAmipk7iCdV).
* Click the View-->DNA link to enter the "Get DNA in Window" page
* Sequence range and formatting adjustments are available, accepting the defaults and clicking "Get DNA" will retrieve the genomic sequence that was present in the browser view.
* Go back to the "Get DNA in Window" page
* Click the “extended case/color options” button and configure the display so that known gene exons are in bold, red and upper case letters.
  * Set default case set to "Lower" with the radio button.
  * Check the boxes for "Toggle Case" and "Bold" and enter 255 in the "Red" box on the GENCODE v24 line.
  * Click submit and view the newly formatted results.

<figure><img src="/files/51ZtJL0MwO8rNiwueRqz" alt=""><figcaption></figcaption></figure>

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://igb.mit.edu/bioinformatics-topics/tasks-bioinformatics-methods/ucsc-genome-bioinformatics/obtaining-dna-sequence-from-the-ucsc-database.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
