Ucsc Sequence
ucsc_sequence"What is the DNA sequence at [chr:start-end]" / "get the reference bases for [region] in hg38" / "pull the sequence around [variant position]", AUTHORITATIVE reference DNA for a genomic interval from the UCSC assembly, returned as a plain base string with its GC content. Use it to check what the reference allele actually is at a position, to extract primer/probe context, or to pull a promoter or exon sequence. The assembly argument is required because the same coordinates return different bases in hg19 and hg38.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"end": 140753390,
"chrom": "chr7",
"start": 140753330,
"genome": "hg38"
},
"name": "ucsc_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End position, 0-based and EXCLUSIVE (so end - start = length in bases). | |
| chrom | Yes | Chromosome in UCSC naming, e.g. "chr7", "chrX". The "chr" prefix is required. | |
| start | Yes | Start position, 0-BASED and inclusive. The Genome Browser UI and most papers are 1-based, so subtract 1 from a position you copied out of the browser location box. | |
| genome | Yes | REQUIRED. UCSC assembly ID, the genome build your coordinates are in. Human: "hg38" (= GRCh38, current) or "hg19" (= GRCh37, what most older papers, dbSNP dumps and clinical spreadsheets use). Mouse: "mm39"/"mm10". These are DIFFERENT coordinate systems: the same chrom/start/end is valid in every build, so a wrong build returns confident annotations for a different gene instead of an error. Call ucsc_genomes to list the assembly IDs for a species. | |
| revComp | No | Return the reverse complement, for a gene on the minus strand, this is the sense strand. Default false. |