Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.82 KB

PairsimApi.md

File metadata and controls

60 lines (40 loc) · 1.82 KB

BioLinkApi.PairsimApi

All URIs are relative to https://localhost/api

Method HTTP request Description
getPairSimJaccardResource GET /pair/sim/jaccard/{id1}/{id2}/ Get pairwise similarity

getPairSimJaccardResource

getPairSimJaccardResource(id2, id1, opts)

Get pairwise similarity

Example

var BioLinkApi = require('bio_link_api');

var apiInstance = new BioLinkApi.PairsimApi();

var id2 = "id2_example"; // String | id, e.g. NCBIGene:1200; ZFIN:ZDB-GENE-980528-2059; UniProtKB:P12644

var id1 = "id1_example"; // String | id, e.g. NCBIGene:10891; ZFIN:ZDB-GENE-980526-166; UniProtKB:Q15465

var opts = { 
  'objectCategory': "objectCategory_example" // String | e.g. disease, phenotype, gene. Two subjects will be compared based on overlap between associations to objects in this category
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.getPairSimJaccardResource(id2, id1, opts, callback);

Parameters

Name Type Description Notes
id2 String id, e.g. NCBIGene:1200; ZFIN:ZDB-GENE-980528-2059; UniProtKB:P12644
id1 String id, e.g. NCBIGene:10891; ZFIN:ZDB-GENE-980526-166; UniProtKB:Q15465
objectCategory String e.g. disease, phenotype, gene. Two subjects will be compared based on overlap between associations to objects in this category [optional]

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json