Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


The GREAT Programming Interface allows external clients to submit BED data automatically for analysis by GREAT and display in the GREAT user interface. For example, it is used by the UCSC Table Browser to send data to GREAT. Anyone is welcome to use the interface, and we particularly encourage genome browser portals and ChIP-seq peak calling tools to integrate with GREAT through the GREAT Programming Interface.


To submit BED data for analysis by GREAT, a client sends an HTTP GET request to that includes:

  • requestURL (required) - The URL for the BED data to process.
  • requestSpecies (required) - The species assembly (e.g. hg18) corresponding to the BED data.
  • requestName (optional) - The name used to identify the BED data on the GREAT output page. If not given, "external data" is used.
  • requestSender (optional) - The name of the tool submitting the data, which is used as a prefix to requestName to identify the data on the GREAT output page.

Submitting an HTTP GET request to GREAT is as simple as including the necessary parameters in a URL link (see examples).



When GREAT receives a request, it in turn retrieves the BED data at the requestURL via HTTP GET. The requestURL must point to either a BED file or a script that generates BED data (see examples).

  • The requestURL should be HTTP encoded so that it is safe to pass via GET (see examples). To encode a URL, enter it at the URL Decoder/Encoder and choose "Encode."

Submitted BED data

The data submitted to GREAT must be valid BED format as used with the UCSC Genome Browser. Lines that start with "#" are considered comments and are ignored.


Example 1: Simple BED file

In the first example, the client has a BED file available on its server (at that it wishes for GREAT to process.

  1. SRF example data
    chr5 60663738 60663788 SRF.1
    chr5 137828954 137829004 SRF.2
    chr5 137828665 137828715 SRF.3
    chr7 5536799 5536849 SRF.4

To submit this data to GREAT, the client webpage includes a link that sends an HTTP GET request to GREAT. When the link is clicked, the request is sent to GREAT:

<a href="">
Send to GREAT

Example 2: Script that generates BED data

In the second example, the client has a script (at that generates BED data for GREAT to process.

if ($_GET["tf"] h1. "Srf")

Unknown macro: { echo "chr5 60663738 60663788 SRF.1n"; echo "chr5 137828954 137829004 SRF.2n"; echo "chr5 137828665 137828715 SRF.3n"; echo "chr7 5536799 5536849 SRF.4n"; }

else if ($_GET["tf"] "Nrsf")

Unknown macro: { echo "chr1 11017025 11017401 NRSF.1n"; echo "chr6 12605475 12606176 NRSF.2n"; echo "chr8 12680375 12681376 NRSF.3n"; echo "chr4 13416275 13416776 NRSF.4n"; }


Again, to submit this data to GREAT, the client webpage includes a link that sends an HTTP GET request to GREAT. The requestURL in turn includes information for GREAT to submit an HTTP GET request back to the client to obtain the BED data:

<a href="">
Send NRSF data to GREAT

  • No labels