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/v2/dyneqtl?geneId=&genome=&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 genome = genome_example; // String | Genome build (rn6 or rn7)
        String tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
        String variantId = variantId_example; // String | Variant ID
        try {
            inline_response_200 result = apiInstance.dyneqtlGet(geneId, genome, 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 genome = genome_example; // String | Genome build (rn6 or rn7)
        String tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
        String variantId = variantId_example; // String | Variant ID
        try {
            inline_response_200 result = apiInstance.dyneqtlGet(geneId, genome, 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 *genome = genome_example; // Genome build (rn6 or rn7)
String *tissueSiteDetailId = tissueSiteDetailId_example; // Tissue ID
String *variantId = variantId_example; // Variant ID

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

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

var api = new RatGtexRestApi.EQTLApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)
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, genome, 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 genome = genome_example;  // String | Genome build (rn6 or rn7)
            var tissueSiteDetailId = tissueSiteDetailId_example;  // String | Tissue ID
            var variantId = variantId_example;  // String | Variant ID

            try
            {
                inline_response_200 result = apiInstance.dyneqtlGet(geneId, genome, 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
$genome = genome_example; // String | Genome build (rn6 or rn7)
$tissueSiteDetailId = tissueSiteDetailId_example; // String | Tissue ID
$variantId = variantId_example; // String | Variant ID

try {
    $result = $api_instance->dyneqtlGet($geneId, $genome, $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 $genome = genome_example; # String | Genome build (rn6 or rn7)
my $tissueSiteDetailId = tissueSiteDetailId_example; # String | Tissue ID
my $variantId = variantId_example; # String | Variant ID

eval { 
    my $result = $api_instance->dyneqtlGet(geneId => $geneId, genome => $genome, 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
genome = genome_example # String | Genome build (rn6 or rn7)
tissueSiteDetailId = tissueSiteDetailId_example # String | Tissue ID
variantId = variantId_example # String | Variant ID

try: 
    api_response = api_instance.dyneqtl_get(geneId, genome, 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
genome*
String
Genome build (rn6 or rn7)
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/v2/eqtl?geneId=&genome="
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 genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_1 result = apiInstance.eqtlGet(geneId, genome);
            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
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_1 result = apiInstance.eqtlGet(geneId, genome);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EQTLApi#eqtlGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID
String *genome = genome_example; // Genome build (rn6 or rn7)

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

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

var api = new RatGtexRestApi.EQTLApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.eqtlGet(geneId, genome, 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
            var genome = genome_example;  // String | Genome build (rn6 or rn7)

            try
            {
                inline_response_200_1 result = apiInstance.eqtlGet(geneId, genome);
                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
$genome = genome_example; // String | Genome build (rn6 or rn7)

try {
    $result = $api_instance->eqtlGet($geneId, $genome);
    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
my $genome = genome_example; # String | Genome build (rn6 or rn7)

eval { 
    my $result = $api_instance->eqtlGet(geneId => $geneId, genome => $genome);
    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
genome = genome_example # String | Genome build (rn6 or rn7)

try: 
    api_response = api_instance.eqtl_get(geneId, genome)
    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
genome*
String
Genome build (rn6 or rn7)
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/v2/singleTissueEqtl?geneId=&genome="
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 genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_6 result = apiInstance.singleTissueEqtlGet(geneId, genome);
            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
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_6 result = apiInstance.singleTissueEqtlGet(geneId, genome);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EQTLApi#singleTissueEqtlGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID
String *genome = genome_example; // Genome build (rn6 or rn7)

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

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

var api = new RatGtexRestApi.EQTLApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.singleTissueEqtlGet(geneId, genome, 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
            var genome = genome_example;  // String | Genome build (rn6 or rn7)

            try
            {
                inline_response_200_6 result = apiInstance.singleTissueEqtlGet(geneId, genome);
                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
$genome = genome_example; // String | Genome build (rn6 or rn7)

try {
    $result = $api_instance->singleTissueEqtlGet($geneId, $genome);
    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
my $genome = genome_example; # String | Genome build (rn6 or rn7)

eval { 
    my $result = $api_instance->singleTissueEqtlGet(geneId => $geneId, genome => $genome);
    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
genome = genome_example # String | Genome build (rn6 or rn7)

try: 
    api_response = api_instance.single_tissue_eqtl_get(geneId, genome)
    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
genome*
String
Genome build (rn6 or rn7)
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/v2/medianGeneExpression?geneId=&genome=&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.
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        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, genome, 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.
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        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, genome, 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.
String *genome = genome_example; // Genome build (rn6 or rn7)
array[String] *tissueSiteDetailId = ; // One or more tissue IDs. If omitted, all tissues are included. (optional)

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

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

var api = new RatGtexRestApi.ExpressionApi()
var geneId = ; // {{array[String]}} One or more Ensembl gene IDs.
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)
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, genome, 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 genome = genome_example;  // String | Genome build (rn6 or rn7)
            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, genome, 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.
$genome = genome_example; // String | Genome build (rn6 or rn7)
$tissueSiteDetailId = ; // array[String] | One or more tissue IDs. If omitted, all tissues are included.

try {
    $result = $api_instance->medianGeneExpressionGet($geneId, $genome, $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 $genome = genome_example; # String | Genome build (rn6 or rn7)
my $tissueSiteDetailId = []; # array[String] | One or more tissue IDs. If omitted, all tissues are included.

eval { 
    my $result = $api_instance->medianGeneExpressionGet(geneId => $geneId, genome => $genome, 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.
genome = genome_example # String | Genome build (rn6 or rn7)
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, genome, 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
genome*
String
Genome build (rn6 or rn7)
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/v2/topExpressedGene?filterMtGene=&genome=&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 genome = genome_example; // String | Genome build (rn6 or rn7)
        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_9 result = apiInstance.topExpressedGeneGet(genome, 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 genome = genome_example; // String | Genome build (rn6 or rn7)
        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_9 result = apiInstance.topExpressedGeneGet(genome, tissueSiteDetailId, filterMtGene);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExpressionApi#topExpressedGeneGet");
            e.printStackTrace();
        }
    }
}
String *genome = genome_example; // Genome build (rn6 or rn7)
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:genome
    tissueSiteDetailId:tissueSiteDetailId
    filterMtGene:filterMtGene
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtexRestApi = require('rat_gtex_rest_api');

var api = new RatGtexRestApi.ExpressionApi()
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)
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(genome, 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 genome = genome_example;  // String | Genome build (rn6 or rn7)
            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_9 result = apiInstance.topExpressedGeneGet(genome, 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();
$genome = genome_example; // String | Genome build (rn6 or rn7)
$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($genome, $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 $genome = genome_example; # String | Genome build (rn6 or rn7)
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(genome => $genome, 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()
genome = genome_example # String | Genome build (rn6 or rn7)
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(genome, 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
genome*
String
Genome build (rn6 or rn7)
Required
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/v2/exon?geneId=&genome="
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
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_2 result = apiInstance.exonGet(geneId, genome);
            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
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_2 result = apiInstance.exonGet(geneId, genome);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#exonGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID
String *genome = genome_example; // Genome build (rn6 or rn7)

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

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

var api = new RatGtexRestApi.ReferenceApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.exonGet(geneId, genome, 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
            var genome = genome_example;  // String | Genome build (rn6 or rn7)

            try
            {
                inline_response_200_2 result = apiInstance.exonGet(geneId, genome);
                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
$genome = genome_example; // String | Genome build (rn6 or rn7)

try {
    $result = $api_instance->exonGet($geneId, $genome);
    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
my $genome = genome_example; # String | Genome build (rn6 or rn7)

eval { 
    my $result = $api_instance->exonGet(geneId => $geneId, genome => $genome);
    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
genome = genome_example # String | Genome build (rn6 or rn7)

try: 
    api_response = api_instance.exon_get(geneId, genome)
    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
genome*
String
Genome build (rn6 or rn7)
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/v2/gene?geneId=&genome="
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)
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_3 result = apiInstance.geneGet(geneId, genome);
            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)
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_3 result = apiInstance.geneGet(geneId, genome);
            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)
String *genome = genome_example; // Genome build (rn6 or rn7)

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

[apiInstance geneGetWith:geneId
    genome:genome
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtexRestApi = require('rat_gtex_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 genome = genome_example; // {{String}} Genome build (rn6 or rn7)

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.geneGet(geneId, genome, 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)
            var genome = genome_example;  // String | Genome build (rn6 or rn7)

            try
            {
                inline_response_200_3 result = apiInstance.geneGet(geneId, genome);
                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)
$genome = genome_example; // String | Genome build (rn6 or rn7)

try {
    $result = $api_instance->geneGet($geneId, $genome);
    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)
my $genome = genome_example; # String | Genome build (rn6 or rn7)

eval { 
    my $result = $api_instance->geneGet(geneId => $geneId, genome => $genome);
    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)
genome = genome_example # String | Genome build (rn6 or rn7)

try: 
    api_response = api_instance.gene_get(geneId, genome)
    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
genome*
String
Genome build (rn6 or rn7)
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/v2/ld?geneId=&genome="
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
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_4 result = apiInstance.ldGet(geneId, genome);
            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
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_4 result = apiInstance.ldGet(geneId, genome);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#ldGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID
String *genome = genome_example; // Genome build (rn6 or rn7)

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

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

var api = new RatGtexRestApi.ReferenceApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ldGet(geneId, genome, 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
            var genome = genome_example;  // String | Genome build (rn6 or rn7)

            try
            {
                inline_response_200_4 result = apiInstance.ldGet(geneId, genome);
                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
$genome = genome_example; // String | Genome build (rn6 or rn7)

try {
    $result = $api_instance->ldGet($geneId, $genome);
    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
my $genome = genome_example; # String | Genome build (rn6 or rn7)

eval { 
    my $result = $api_instance->ldGet(geneId => $geneId, genome => $genome);
    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
genome = genome_example # String | Genome build (rn6 or rn7)

try: 
    api_response = api_instance.ld_get(geneId, genome)
    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
genome*
String
Genome build (rn6 or rn7)
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/v2/tissueInfo?genome="
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 genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_8 result = apiInstance.tissueInfoGet(genome);
            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();
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_8 result = apiInstance.tissueInfoGet(genome);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#tissueInfoGet");
            e.printStackTrace();
        }
    }
}
String *genome = genome_example; // Genome build (rn6 or rn7)

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

[apiInstance tissueInfoGetWith:genome
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtexRestApi = require('rat_gtex_rest_api');

var api = new RatGtexRestApi.ReferenceApi()
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.tissueInfoGet(genome, 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();
            var genome = genome_example;  // String | Genome build (rn6 or rn7)

            try
            {
                inline_response_200_8 result = apiInstance.tissueInfoGet(genome);
                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();
$genome = genome_example; // String | Genome build (rn6 or rn7)

try {
    $result = $api_instance->tissueInfoGet($genome);
    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();
my $genome = genome_example; # String | Genome build (rn6 or rn7)

eval { 
    my $result = $api_instance->tissueInfoGet(genome => $genome);
    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()
genome = genome_example # String | Genome build (rn6 or rn7)

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

Parameters

Query parameters
Name Description
genome*
String
Genome build (rn6 or rn7)
Required

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/v2/variant?genome=&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();
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        array[String] variantId = ; // array[String] | Variant ID
        try {
            inline_response_200_10 result = apiInstance.variantGet(genome, 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();
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        array[String] variantId = ; // array[String] | Variant ID
        try {
            inline_response_200_10 result = apiInstance.variantGet(genome, variantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferenceApi#variantGet");
            e.printStackTrace();
        }
    }
}
String *genome = genome_example; // Genome build (rn6 or rn7)
array[String] *variantId = ; // Variant ID

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

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

var api = new RatGtexRestApi.ReferenceApi()
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)
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(genome, 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 genome = genome_example;  // String | Genome build (rn6 or rn7)
            var variantId = new array[String](); // array[String] | Variant ID

            try
            {
                inline_response_200_10 result = apiInstance.variantGet(genome, 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();
$genome = genome_example; // String | Genome build (rn6 or rn7)
$variantId = ; // array[String] | Variant ID

try {
    $result = $api_instance->variantGet($genome, $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 $genome = genome_example; # String | Genome build (rn6 or rn7)
my $variantId = []; # array[String] | Variant ID

eval { 
    my $result = $api_instance->variantGet(genome => $genome, 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()
genome = genome_example # String | Genome build (rn6 or rn7)
variantId =  # array[String] | Variant ID

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

Parameters

Query parameters
Name Description
genome*
String
Genome build (rn6 or rn7)
Required
variantId*
array[String]
Variant ID
Required

Responses

Status: 200 - Success


SQTL

sqtlGet

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


/sqtl

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://ratgtex.org/api/v2/sqtl?geneId=&genome="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SQTLApi;

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

public class SQTLApiExample {

    public static void main(String[] args) {
        
        SQTLApi apiInstance = new SQTLApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_7 result = apiInstance.sqtlGet(geneId, genome);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SQTLApi#sqtlGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SQTLApi;

public class SQTLApiExample {

    public static void main(String[] args) {
        SQTLApi apiInstance = new SQTLApi();
        String geneId = geneId_example; // String | Ensembl gene ID
        String genome = genome_example; // String | Genome build (rn6 or rn7)
        try {
            inline_response_200_7 result = apiInstance.sqtlGet(geneId, genome);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SQTLApi#sqtlGet");
            e.printStackTrace();
        }
    }
}
String *geneId = geneId_example; // Ensembl gene ID
String *genome = genome_example; // Genome build (rn6 or rn7)

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

[apiInstance sqtlGetWith:geneId
    genome:genome
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RatGtexRestApi = require('rat_gtex_rest_api');

var api = new RatGtexRestApi.SQTLApi()
var geneId = geneId_example; // {{String}} Ensembl gene ID
var genome = genome_example; // {{String}} Genome build (rn6 or rn7)

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

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

            var apiInstance = new SQTLApi();
            var geneId = geneId_example;  // String | Ensembl gene ID
            var genome = genome_example;  // String | Genome build (rn6 or rn7)

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

$api_instance = new Swagger\Client\ApiSQTLApi();
$geneId = geneId_example; // String | Ensembl gene ID
$genome = genome_example; // String | Genome build (rn6 or rn7)

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

my $api_instance = WWW::SwaggerClient::SQTLApi->new();
my $geneId = geneId_example; # String | Ensembl gene ID
my $genome = genome_example; # String | Genome build (rn6 or rn7)

eval { 
    my $result = $api_instance->sqtlGet(geneId => $geneId, genome => $genome);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SQTLApi->sqtlGet: $@\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.SQTLApi()
geneId = geneId_example # String | Ensembl gene ID
genome = genome_example # String | Genome build (rn6 or rn7)

try: 
    api_response = api_instance.sqtl_get(geneId, genome)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SQTLApi->sqtlGet: %s\n" % e)

Parameters

Query parameters
Name Description
geneId*
String
Ensembl gene ID
Required
genome*
String
Genome build (rn6 or rn7)
Required

Responses

Status: 200 - Success