creatGenePathwayPostGenePathwayPost
Creat Gene Pathway
Add gene within pathway: - **gene_id**: - **pathway_id**: a pathway id liked to pathway model - **rxn_id**: not required, an reaction ID - **ec**: not required, an EC number - **protein_name**: not required, a datbase of reference pathway
/post/gene_pathway
Usage and SDK Samples
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://virtserver.swaggerhub.com/evolu-tion/MeTRN-API/1.0.0/post/gene_pathway"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AddingMeTRNInformationApi;
import java.io.File;
import java.util.*;
public class AddingMeTRNInformationApiExample {
public static void main(String[] args) {
AddingMeTRNInformationApi apiInstance = new AddingMeTRNInformationApi();
Gene_pathwayIn body = ; // Gene_pathwayIn |
try {
apiInstance.creatGenePathwayPostGenePathwayPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling AddingMeTRNInformationApi#creatGenePathwayPostGenePathwayPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AddingMeTRNInformationApi;
public class AddingMeTRNInformationApiExample {
public static void main(String[] args) {
AddingMeTRNInformationApi apiInstance = new AddingMeTRNInformationApi();
Gene_pathwayIn body = ; // Gene_pathwayIn |
try {
apiInstance.creatGenePathwayPostGenePathwayPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling AddingMeTRNInformationApi#creatGenePathwayPostGenePathwayPost");
e.printStackTrace();
}
}
}
Gene_pathwayIn *body = ; //
AddingMeTRNInformationApi *apiInstance = [[AddingMeTRNInformationApi alloc] init];
// Creat Gene Pathway
[apiInstance creatGenePathwayPostGenePathwayPostWith:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var MeTrnApi = require('me_trn_api');
var api = new MeTrnApi.AddingMeTRNInformationApi()
var body = ; // {{Gene_pathwayIn}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.creatGenePathwayPostGenePathwayPost(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class creatGenePathwayPostGenePathwayPostExample
{
public void main()
{
var apiInstance = new AddingMeTRNInformationApi();
var body = new Gene_pathwayIn(); // Gene_pathwayIn |
try
{
// Creat Gene Pathway
apiInstance.creatGenePathwayPostGenePathwayPost(body);
}
catch (Exception e)
{
Debug.Print("Exception when calling AddingMeTRNInformationApi.creatGenePathwayPostGenePathwayPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAddingMeTRNInformationApi();
$body = ; // Gene_pathwayIn |
try {
$api_instance->creatGenePathwayPostGenePathwayPost($body);
} catch (Exception $e) {
echo 'Exception when calling AddingMeTRNInformationApi->creatGenePathwayPostGenePathwayPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AddingMeTRNInformationApi;
my $api_instance = WWW::SwaggerClient::AddingMeTRNInformationApi->new();
my $body = WWW::SwaggerClient::Object::Gene_pathwayIn->new(); # Gene_pathwayIn |
eval {
$api_instance->creatGenePathwayPostGenePathwayPost(body => $body);
};
if ($@) {
warn "Exception when calling AddingMeTRNInformationApi->creatGenePathwayPostGenePathwayPost: $@\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.AddingMeTRNInformationApi()
body = # Gene_pathwayIn |
try:
# Creat Gene Pathway
api_instance.creat_gene_pathway_post_gene_pathway_post(body)
except ApiException as e:
print("Exception when calling AddingMeTRNInformationApi->creatGenePathwayPostGenePathwayPost: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |