RatGTEx REST API

EQTL

dyneqtlGet

Fetch information for one gene-variant pair in one tissue


/dyneqtl

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/dyneqtl?geneId=&tissueSiteDetailId=&variantId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EQTLApi;

import java.io.File;
import java.util.*;

public class EQTLApiExample {

    public static void main(String[] args) {
        
        EQTLApi apiInstance = new EQTLApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        String tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
        String variantId = variantId_example; // String | Variant ID
        try {
            inline_response_200 result = apiInstance.dyneqtlGet(geneId, tissueSiteDetailId, variantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EQTLApi#dyneqtlGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EQTLApi;

public class EQTLApiExample {

    public static void main(String[] args) {
        EQTLApi apiInstance = new EQTLApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        String tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
        String variantId = variantId_example; // String | Variant ID
        try {
            inline_response_200 result = apiInstance.dyneqtlGet(geneId, tissueSiteDetailId, variantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EQTLApi#dyneqtlGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID
String *tissueSiteDetailId = tissueSiteDetailId_example; // Tissue ID
String *variantId = variantId_example; // Variant ID

EQTLApi *apiInstance = [[EQTLApi alloc] init];

[apiInstance dyneqtlGetWith:geneId
    tissueSiteDetailId:tissueSiteDetailId
    variantId:variantId
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.EQTLApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID
var tissueSiteDetailId = tissueSiteDetailId_example; // {{String}} Tissue ID
var variantId = variantId_example; // {{String}} Variant ID

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.dyneqtlGet(geneId, tissueSiteDetailId, variantId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class dyneqtlGetExample
    {
        public void main()
        {

            var apiInstance = new EQTLApi();
            var geneId = geneId_example;  // String | Ensembl gene ID
            var tissueSiteDetailId = tissueSiteDetailId_example;  // String | Tissue ID
            var variantId = variantId_example;  // String | Variant ID

            try
            {
                inline_response_200 result = apiInstance.dyneqtlGet(geneId, tissueSiteDetailId, variantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EQTLApi.dyneqtlGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEQTLApi();
$geneId = geneId_example; // String | Ensembl gene ID
$tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
$variantId = variantId_example; // String | Variant ID

try {
    $result = $api_instance->dyneqtlGet($geneId, $tissueSiteDetailId, $variantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EQTLApi->dyneqtlGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EQTLApi;

my $api_instance = WWW::SwaggerClient::EQTLApi->new();
my $geneId = geneId_example; # String | Ensembl gene ID
my $tissueSiteDetailId = tissueSiteDetailId_example; # String | Tissue ID
my $variantId = variantId_example; # String | Variant ID

eval { 
    my $result = $api_instance->dyneqtlGet(geneId => $geneId, tissueSiteDetailId => $tissueSiteDetailId, variantId => $variantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EQTLApi->dyneqtlGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EQTLApi()
geneId = geneId_example # String | Ensembl gene ID
tissueSiteDetailId = tissueSiteDetailId_example # String | Tissue ID
variantId = variantId_example # String | Variant ID

try: 
    api_response = api_instance.dyneqtl_get(geneId, tissueSiteDetailId, variantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EQTLApi->dyneqtlGet: %s\n" % e)

Parameters

Query parameters
Name Description
geneId*
String
Ensembl gene ID
Required
tissueSiteDetailId*
String
Tissue ID
Required
variantId*
String
Variant ID
Required

Responses

Status: 200 - Success


eqtlGet

Fetch conditionally independent cis-eQTLs in any tissue for a gene


/eqtl

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/eqtl?geneId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EQTLApi;

import java.io.File;
import java.util.*;

public class EQTLApiExample {

    public static void main(String[] args) {
        
        EQTLApi apiInstance = new EQTLApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        try {
            inline_response_200_1 result = apiInstance.eqtlGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EQTLApi#eqtlGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EQTLApi;

public class EQTLApiExample {

    public static void main(String[] args) {
        EQTLApi apiInstance = new EQTLApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        try {
            inline_response_200_1 result = apiInstance.eqtlGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EQTLApi#eqtlGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID

EQTLApi *apiInstance = [[EQTLApi alloc] init];

[apiInstance eqtlGetWith:geneId
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.EQTLApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eqtlGet(geneId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class eqtlGetExample
    {
        public void main()
        {

            var apiInstance = new EQTLApi();
            var geneId = geneId_example;  // String | Ensembl gene ID

            try
            {
                inline_response_200_1 result = apiInstance.eqtlGet(geneId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EQTLApi.eqtlGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEQTLApi();
$geneId = geneId_example; // String | Ensembl gene ID

try {
    $result = $api_instance->eqtlGet($geneId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EQTLApi->eqtlGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EQTLApi;

my $api_instance = WWW::SwaggerClient::EQTLApi->new();
my $geneId = geneId_example; # String | Ensembl gene ID

eval { 
    my $result = $api_instance->eqtlGet(geneId => $geneId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EQTLApi->eqtlGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EQTLApi()
geneId = geneId_example # String | Ensembl gene ID

try: 
    api_response = api_instance.eqtl_get(geneId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EQTLApi->eqtlGet: %s\n" % e)

Parameters

Query parameters
Name Description
geneId*
String
Ensembl gene ID
Required

Responses

Status: 200 - Success


singleTissueEqtlGet

Fetch all significant cis-variants in all tissues for a gene


/singleTissueEqtl

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/singleTissueEqtl?geneId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EQTLApi;

import java.io.File;
import java.util.*;

public class EQTLApiExample {

    public static void main(String[] args) {
        
        EQTLApi apiInstance = new EQTLApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        try {
            inline_response_200_6 result = apiInstance.singleTissueEqtlGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EQTLApi#singleTissueEqtlGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EQTLApi;

public class EQTLApiExample {

    public static void main(String[] args) {
        EQTLApi apiInstance = new EQTLApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        try {
            inline_response_200_6 result = apiInstance.singleTissueEqtlGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EQTLApi#singleTissueEqtlGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID

EQTLApi *apiInstance = [[EQTLApi alloc] init];

[apiInstance singleTissueEqtlGetWith:geneId
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.EQTLApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.singleTissueEqtlGet(geneId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class singleTissueEqtlGetExample
    {
        public void main()
        {

            var apiInstance = new EQTLApi();
            var geneId = geneId_example;  // String | Ensembl gene ID

            try
            {
                inline_response_200_6 result = apiInstance.singleTissueEqtlGet(geneId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EQTLApi.singleTissueEqtlGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiEQTLApi();
$geneId = geneId_example; // String | Ensembl gene ID

try {
    $result = $api_instance->singleTissueEqtlGet($geneId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EQTLApi->singleTissueEqtlGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EQTLApi;

my $api_instance = WWW::SwaggerClient::EQTLApi->new();
my $geneId = geneId_example; # String | Ensembl gene ID

eval { 
    my $result = $api_instance->singleTissueEqtlGet(geneId => $geneId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EQTLApi->singleTissueEqtlGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EQTLApi()
geneId = geneId_example # String | Ensembl gene ID

try: 
    api_response = api_instance.single_tissue_eqtl_get(geneId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EQTLApi->singleTissueEqtlGet: %s\n" % e)

Parameters

Query parameters
Name Description
geneId*
String
Ensembl gene ID
Required

Responses

Status: 200 - Success


Expression

medianGeneExpressionGet

Fetch median expression (TPM) for one or more genes in one or more tissues


/medianGeneExpression

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/medianGeneExpression?geneId=&tissueSiteDetailId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ExpressionApi;

import java.io.File;
import java.util.*;

public class ExpressionApiExample {

    public static void main(String[] args) {
        
        ExpressionApi apiInstance = new ExpressionApi();
        array[String] geneId = ; // array[String] | One or more Ensembl gene IDs.
        array[String] tissueSiteDetailId = ; // array[String] | One or more tissue IDs. If omitted, all tissues are included.
        try {
            inline_response_200_5 result = apiInstance.medianGeneExpressionGet(geneId, tissueSiteDetailId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExpressionApi#medianGeneExpressionGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ExpressionApi;

public class ExpressionApiExample {

    public static void main(String[] args) {
        ExpressionApi apiInstance = new ExpressionApi();
        array[String] geneId = ; // array[String] | One or more Ensembl gene IDs.
        array[String] tissueSiteDetailId = ; // array[String] | One or more tissue IDs. If omitted, all tissues are included.
        try {
            inline_response_200_5 result = apiInstance.medianGeneExpressionGet(geneId, tissueSiteDetailId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExpressionApi#medianGeneExpressionGet");
            e.printStackTrace();
        }
    }
}
array[String] *geneId = ; // One or more Ensembl gene IDs.
array[String] *tissueSiteDetailId = ; // One or more tissue IDs. If omitted, all tissues are included. (optional)

ExpressionApi *apiInstance = [[ExpressionApi alloc] init];

[apiInstance medianGeneExpressionGetWith:geneId
    tissueSiteDetailId:tissueSiteDetailId
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.ExpressionApi()
var geneId = ; // {{array[String]}} One or more Ensembl gene IDs.
var opts = { 
  'tissueSiteDetailId':  // {{array[String]}} One or more tissue IDs. If omitted, all tissues are included.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.medianGeneExpressionGet(geneId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class medianGeneExpressionGetExample
    {
        public void main()
        {

            var apiInstance = new ExpressionApi();
            var geneId = new array[String](); // array[String] | One or more Ensembl gene IDs.
            var tissueSiteDetailId = new array[String](); // array[String] | One or more tissue IDs. If omitted, all tissues are included. (optional) 

            try
            {
                inline_response_200_5 result = apiInstance.medianGeneExpressionGet(geneId, tissueSiteDetailId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ExpressionApi.medianGeneExpressionGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiExpressionApi();
$geneId = ; // array[String] | One or more Ensembl gene IDs.
$tissueSiteDetailId = ; // array[String] | One or more tissue IDs. If omitted, all tissues are included.

try {
    $result = $api_instance->medianGeneExpressionGet($geneId, $tissueSiteDetailId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExpressionApi->medianGeneExpressionGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ExpressionApi;

my $api_instance = WWW::SwaggerClient::ExpressionApi->new();
my $geneId = []; # array[String] | One or more Ensembl gene IDs.
my $tissueSiteDetailId = []; # array[String] | One or more tissue IDs. If omitted, all tissues are included.

eval { 
    my $result = $api_instance->medianGeneExpressionGet(geneId => $geneId, tissueSiteDetailId => $tissueSiteDetailId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExpressionApi->medianGeneExpressionGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ExpressionApi()
geneId =  # array[String] | One or more Ensembl gene IDs.
tissueSiteDetailId =  # array[String] | One or more tissue IDs. If omitted, all tissues are included. (optional)

try: 
    api_response = api_instance.median_gene_expression_get(geneId, tissueSiteDetailId=tissueSiteDetailId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExpressionApi->medianGeneExpressionGet: %s\n" % e)

Parameters

Query parameters
Name Description
geneId*
array[String]
One or more Ensembl gene IDs.
Required
tissueSiteDetailId
array[String]
One or more tissue IDs. If omitted, all tissues are included.

Responses

Status: 200 - Success


topExpressedGeneGet

Fetch 50 genes with highest median expression in a tissue


/topExpressedGene

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/topExpressedGene?filterMtGene=&tissueSiteDetailId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ExpressionApi;

import java.io.File;
import java.util.*;

public class ExpressionApiExample {

    public static void main(String[] args) {
        
        ExpressionApi apiInstance = new ExpressionApi();
        String tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
        Boolean filterMtGene = true; // Boolean | Whether mitochondrial genes should be omitted from the top gene list
        try {
            inline_response_200_8 result = apiInstance.topExpressedGeneGet(tissueSiteDetailId, filterMtGene);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExpressionApi#topExpressedGeneGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ExpressionApi;

public class ExpressionApiExample {

    public static void main(String[] args) {
        ExpressionApi apiInstance = new ExpressionApi();
        String tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
        Boolean filterMtGene = true; // Boolean | Whether mitochondrial genes should be omitted from the top gene list
        try {
            inline_response_200_8 result = apiInstance.topExpressedGeneGet(tissueSiteDetailId, filterMtGene);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExpressionApi#topExpressedGeneGet");
            e.printStackTrace();
        }
    }
}
String *tissueSiteDetailId = tissueSiteDetailId_example; // Tissue ID
Boolean *filterMtGene = true; // Whether mitochondrial genes should be omitted from the top gene list (optional)

ExpressionApi *apiInstance = [[ExpressionApi alloc] init];

[apiInstance topExpressedGeneGetWith:tissueSiteDetailId
    filterMtGene:filterMtGene
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.ExpressionApi()
var tissueSiteDetailId = tissueSiteDetailId_example; // {{String}} Tissue ID
var opts = { 
  'filterMtGene': true // {{Boolean}} Whether mitochondrial genes should be omitted from the top gene list
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.topExpressedGeneGet(tissueSiteDetailId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class topExpressedGeneGetExample
    {
        public void main()
        {

            var apiInstance = new ExpressionApi();
            var tissueSiteDetailId = tissueSiteDetailId_example;  // String | Tissue ID
            var filterMtGene = true;  // Boolean | Whether mitochondrial genes should be omitted from the top gene list (optional) 

            try
            {
                inline_response_200_8 result = apiInstance.topExpressedGeneGet(tissueSiteDetailId, filterMtGene);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ExpressionApi.topExpressedGeneGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiExpressionApi();
$tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
$filterMtGene = true; // Boolean | Whether mitochondrial genes should be omitted from the top gene list

try {
    $result = $api_instance->topExpressedGeneGet($tissueSiteDetailId, $filterMtGene);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExpressionApi->topExpressedGeneGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ExpressionApi;

my $api_instance = WWW::SwaggerClient::ExpressionApi->new();
my $tissueSiteDetailId = tissueSiteDetailId_example; # String | Tissue ID
my $filterMtGene = true; # Boolean | Whether mitochondrial genes should be omitted from the top gene list

eval { 
    my $result = $api_instance->topExpressedGeneGet(tissueSiteDetailId => $tissueSiteDetailId, filterMtGene => $filterMtGene);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExpressionApi->topExpressedGeneGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ExpressionApi()
tissueSiteDetailId = tissueSiteDetailId_example # String | Tissue ID
filterMtGene = true # Boolean | Whether mitochondrial genes should be omitted from the top gene list (optional)

try: 
    api_response = api_instance.top_expressed_gene_get(tissueSiteDetailId, filterMtGene=filterMtGene)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExpressionApi->topExpressedGeneGet: %s\n" % e)

Parameters

Query parameters
Name Description
filterMtGene
Boolean
Whether mitochondrial genes should be omitted from the top gene list
tissueSiteDetailId*
String
Tissue ID
Required

Responses

Status: 200 - Success


Reference

exonGet

Fetch a gene's exons


/exon

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/exon?geneId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferenceApi;

import java.io.File;
import java.util.*;

public class ReferenceApiExample {

    public static void main(String[] args) {
        
        ReferenceApi apiInstance = new ReferenceApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        try {
            inline_response_200_2 result = apiInstance.exonGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#exonGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferenceApi;

public class ReferenceApiExample {

    public static void main(String[] args) {
        ReferenceApi apiInstance = new ReferenceApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        try {
            inline_response_200_2 result = apiInstance.exonGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#exonGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID

ReferenceApi *apiInstance = [[ReferenceApi alloc] init];

[apiInstance exonGetWith:geneId
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.ReferenceApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.exonGet(geneId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class exonGetExample
    {
        public void main()
        {

            var apiInstance = new ReferenceApi();
            var geneId = geneId_example;  // String | Ensembl gene ID

            try
            {
                inline_response_200_2 result = apiInstance.exonGet(geneId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferenceApi.exonGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiReferenceApi();
$geneId = geneId_example; // String | Ensembl gene ID

try {
    $result = $api_instance->exonGet($geneId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferenceApi->exonGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferenceApi;

my $api_instance = WWW::SwaggerClient::ReferenceApi->new();
my $geneId = geneId_example; # String | Ensembl gene ID

eval { 
    my $result = $api_instance->exonGet(geneId => $geneId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferenceApi->exonGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ReferenceApi()
geneId = geneId_example # String | Ensembl gene ID

try: 
    api_response = api_instance.exon_get(geneId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferenceApi->exonGet: %s\n" % e)

Parameters

Query parameters
Name Description
geneId*
String
Ensembl gene ID
Required

Responses

Status: 200 - Success


geneGet

Fetch metadata for one or more genes


/gene

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/gene?geneId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferenceApi;

import java.io.File;
import java.util.*;

public class ReferenceApiExample {

    public static void main(String[] args) {
        
        ReferenceApi apiInstance = new ReferenceApi();
        array[String] geneId = ; // array[String] | One or more Ensembl gene IDs or gene symbols (they can be mixed)
        try {
            inline_response_200_3 result = apiInstance.geneGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#geneGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferenceApi;

public class ReferenceApiExample {

    public static void main(String[] args) {
        ReferenceApi apiInstance = new ReferenceApi();
        array[String] geneId = ; // array[String] | One or more Ensembl gene IDs or gene symbols (they can be mixed)
        try {
            inline_response_200_3 result = apiInstance.geneGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#geneGet");
            e.printStackTrace();
        }
    }
}
array[String] *geneId = ; // One or more Ensembl gene IDs or gene symbols (they can be mixed)

ReferenceApi *apiInstance = [[ReferenceApi alloc] init];

[apiInstance geneGetWith:geneId
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.ReferenceApi()
var geneId = ; // {{array[String]}} One or more Ensembl gene IDs or gene symbols (they can be mixed)

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.geneGet(geneId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class geneGetExample
    {
        public void main()
        {

            var apiInstance = new ReferenceApi();
            var geneId = new array[String](); // array[String] | One or more Ensembl gene IDs or gene symbols (they can be mixed)

            try
            {
                inline_response_200_3 result = apiInstance.geneGet(geneId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferenceApi.geneGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiReferenceApi();
$geneId = ; // array[String] | One or more Ensembl gene IDs or gene symbols (they can be mixed)

try {
    $result = $api_instance->geneGet($geneId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferenceApi->geneGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferenceApi;

my $api_instance = WWW::SwaggerClient::ReferenceApi->new();
my $geneId = []; # array[String] | One or more Ensembl gene IDs or gene symbols (they can be mixed)

eval { 
    my $result = $api_instance->geneGet(geneId => $geneId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferenceApi->geneGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ReferenceApi()
geneId =  # array[String] | One or more Ensembl gene IDs or gene symbols (they can be mixed)

try: 
    api_response = api_instance.gene_get(geneId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferenceApi->geneGet: %s\n" % e)

Parameters

Query parameters
Name Description
geneId*
array[String]
One or more Ensembl gene IDs or gene symbols (they can be mixed)
Required

Responses

Status: 200 - Success


ldGet

Fetch LD scores between all cis-window variants for a gene


/ld

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/ld?geneId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferenceApi;

import java.io.File;
import java.util.*;

public class ReferenceApiExample {

    public static void main(String[] args) {
        
        ReferenceApi apiInstance = new ReferenceApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        try {
            inline_response_200_4 result = apiInstance.ldGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#ldGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferenceApi;

public class ReferenceApiExample {

    public static void main(String[] args) {
        ReferenceApi apiInstance = new ReferenceApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        try {
            inline_response_200_4 result = apiInstance.ldGet(geneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#ldGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID

ReferenceApi *apiInstance = [[ReferenceApi alloc] init];

[apiInstance ldGetWith:geneId
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.ReferenceApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ldGet(geneId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class ldGetExample
    {
        public void main()
        {

            var apiInstance = new ReferenceApi();
            var geneId = geneId_example;  // String | Ensembl gene ID

            try
            {
                inline_response_200_4 result = apiInstance.ldGet(geneId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferenceApi.ldGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiReferenceApi();
$geneId = geneId_example; // String | Ensembl gene ID

try {
    $result = $api_instance->ldGet($geneId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferenceApi->ldGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferenceApi;

my $api_instance = WWW::SwaggerClient::ReferenceApi->new();
my $geneId = geneId_example; # String | Ensembl gene ID

eval { 
    my $result = $api_instance->ldGet(geneId => $geneId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferenceApi->ldGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ReferenceApi()
geneId = geneId_example # String | Ensembl gene ID

try: 
    api_response = api_instance.ld_get(geneId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferenceApi->ldGet: %s\n" % e)

Parameters

Query parameters
Name Description
geneId*
String
Ensembl gene ID
Required

Responses

Status: 200 - Success


tissueInfoGet

Fetch metadata for all tissues


/tissueInfo

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/tissueInfo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferenceApi;

import java.io.File;
import java.util.*;

public class ReferenceApiExample {

    public static void main(String[] args) {
        
        ReferenceApi apiInstance = new ReferenceApi();
        try {
            inline_response_200_7 result = apiInstance.tissueInfoGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#tissueInfoGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferenceApi;

public class ReferenceApiExample {

    public static void main(String[] args) {
        ReferenceApi apiInstance = new ReferenceApi();
        try {
            inline_response_200_7 result = apiInstance.tissueInfoGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#tissueInfoGet");
            e.printStackTrace();
        }
    }
}

ReferenceApi *apiInstance = [[ReferenceApi alloc] init];

[apiInstance tissueInfoGetWithCompletionHandler: 
              ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.ReferenceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.tissueInfoGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class tissueInfoGetExample
    {
        public void main()
        {

            var apiInstance = new ReferenceApi();

            try
            {
                inline_response_200_7 result = apiInstance.tissueInfoGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferenceApi.tissueInfoGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiReferenceApi();

try {
    $result = $api_instance->tissueInfoGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferenceApi->tissueInfoGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferenceApi;

my $api_instance = WWW::SwaggerClient::ReferenceApi->new();

eval { 
    my $result = $api_instance->tissueInfoGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferenceApi->tissueInfoGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ReferenceApi()

try: 
    api_response = api_instance.tissue_info_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferenceApi->tissueInfoGet: %s\n" % e)

Parameters

Responses

Status: 200 - Success


variantGet

Fetch information for one or more variants


/variant

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v1/variant?variantId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferenceApi;

import java.io.File;
import java.util.*;

public class ReferenceApiExample {

    public static void main(String[] args) {
        
        ReferenceApi apiInstance = new ReferenceApi();
        array[String] variantId = ; // array[String] | Variant ID
        try {
            inline_response_200_9 result = apiInstance.variantGet(variantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#variantGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferenceApi;

public class ReferenceApiExample {

    public static void main(String[] args) {
        ReferenceApi apiInstance = new ReferenceApi();
        array[String] variantId = ; // array[String] | Variant ID
        try {
            inline_response_200_9 result = apiInstance.variantGet(variantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#variantGet");
            e.printStackTrace();
        }
    }
}
array[String] *variantId = ; // Variant ID

ReferenceApi *apiInstance = [[ReferenceApi alloc] init];

[apiInstance variantGetWith:variantId
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtExRestApi = require('rat_gt_ex_rest_api');

var api = new RatGtExRestApi.ReferenceApi()
var variantId = ; // {{array[String]}} Variant ID

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.variantGet(variantId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class variantGetExample
    {
        public void main()
        {

            var apiInstance = new ReferenceApi();
            var variantId = new array[String](); // array[String] | Variant ID

            try
            {
                inline_response_200_9 result = apiInstance.variantGet(variantId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferenceApi.variantGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiReferenceApi();
$variantId = ; // array[String] | Variant ID

try {
    $result = $api_instance->variantGet($variantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferenceApi->variantGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferenceApi;

my $api_instance = WWW::SwaggerClient::ReferenceApi->new();
my $variantId = []; # array[String] | Variant ID

eval { 
    my $result = $api_instance->variantGet(variantId => $variantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferenceApi->variantGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ReferenceApi()
variantId =  # array[String] | Variant ID

try: 
    api_response = api_instance.variant_get(variantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferenceApi->variantGet: %s\n" % e)

Parameters

Query parameters
Name Description
variantId*
array[String]
Variant ID
Required

Responses

Status: 200 - Success